# FLUX Video Upscale (`black-forest-labs/flux-video-upscale`): API > black-forest-labs/flux-video-upscale is a video generation model from Black Forest Labs you can call on the OceanToken API. Endpoint: `POST https://api.oceantoken.ai/v1/videos`. Auth: `Authorization: Bearer $OCEANTOKEN_API_KEY`. OpenAI-compatible; the OpenAI SDKs work with base URL https://api.oceantoken.ai/v1. The call creates a job: poll `GET /v1/videos/{video_id}`, then download `GET /v1/videos/{video_id}/content`. ## Request parameters - `model` (string; required): This model's ID. - `prompt` (string; required): What happens in the clip. - `duration` (integer; 4 to 10; default 5): Length in whole seconds. `seconds` is accepted too. - `resolution` (string; 720p): Output resolution; lower is faster and cheaper. - `aspect_ratio` (string; 16:9): Output aspect ratio. - `input_references` (array; required): The source video this model changes (exactly one): `[{"type": "video_url", "video_url": {"url": ...}}]`. It does not make a video from text alone. ## Example: Edit a video ```bash curl https://api.oceantoken.ai/v1/videos \ -H "Authorization: Bearer $OCEANTOKEN_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "model": "black-forest-labs/flux-video-upscale", "prompt": "Turn the scene into night; keep everything else", "duration": 5, "resolution": "720p", "input_references": [ { "type": "video_url", "video_url": { "url": "https://example.com/source.mp4" } } ] }' # then poll GET https://api.oceantoken.ai/v1/videos/{id} until "status" is "completed" ``` ```python import os, time, uuid import requests BASE = "https://api.oceantoken.ai/v1" headers = {"Authorization": f"Bearer {os.environ['OCEANTOKEN_API_KEY']}"} job = requests.post( f"{BASE}/videos", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "model": "black-forest-labs/flux-video-upscale", "prompt": "Turn the scene into night; keep everything else", "duration": 5, "resolution": "720p", "input_references": [ { "type": "video_url", "video_url": {"url": "https://example.com/source.mp4"}, }, ], }, ).json() while job["status"] in ("queued", "in_progress"): time.sleep(15) job = requests.get(f"{BASE}/videos/{job['id']}", headers=headers).json() print(job["status"], job.get("content_url")) # the MP4, valid for 24 hours ``` ## Response - `id` (string): The job's ID; poll it. - `status` (string; queued, in_progress, completed, failed): Where the job is. - `seconds` (string): Length of the clip. - `size` (string or null): The `size` the request asked for (width x height), not measured from the file; null when the request named a `resolution` instead. - `content_url` (string): Once completed: the MP4, valid for 24 hours. - `error` (object): On a failed job: `code` and `message`. ```json { "id": "video_...", "object": "video", "status": "completed", "model": "black-forest-labs/flux-video-upscale", "seconds": "5", "size": null, "created_at": 1792000000, "completed_at": 1792000095, "content_url": "https://...", "error": null } ``` ## More - Model page: https://docs.oceantoken.ai/models/black-forest-labs/flux-video-upscale - This spec as JSON (with a JSON Schema of the request): https://docs.oceantoken.ai/models/black-forest-labs/flux-video-upscale/spec.json - Guide: https://docs.oceantoken.ai/guides/video - All models: https://docs.oceantoken.ai/llms.txt