> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
> Use this file to discover all available pages before exploring further.

# Video

> Generate, animate, and continue video with FLUX 3. Edit existing footage with the separate FLUX Video Edit [fast] tool.

![FLUX 3 Motion from a single line artwork](https://cdn.sanity.io/images/2gpum2i6/production/8559a03b362942fe81cd9de2c2c6e633cbc1b494-2400x1166.png)

FLUX 3

# Video

Generate, animate, and continue video with FLUX 3, with
synchronized audio in the same call.

<ul />

## Quickstart

FLUX 3 video is asynchronous: you **submit** a request, get back a `polling_url`,
and **poll** it until the clip is `Ready`. For the full field list and response
schema, see the [API reference](https://docs.bfl.ml/api-reference/utility/generate-a-video-with-flux-3.md).

```python Python theme={null}
import os, time, requests

BFL_API_KEY = os.environ["BFL_API_KEY"]

# 1. Submit: returns an id and a polling_url
submit = requests.post(
    "https://api.bfl.ai/v1/flux-3-video",
    headers={"x-key": BFL_API_KEY, "Content-Type": "application/json"},
    json={
        "mode": "t2v",
        "prompt": "a fox running through dawn mist",
        "generate_audio": True,
    },
).json()

# 2. Poll the returned URL until the job is Ready
while True:
    time.sleep(2)
    result = requests.get(submit["polling_url"], headers={"x-key": BFL_API_KEY}).json()
    if result["status"] == "Ready":
        print(result["result"]["sample"])   # signed .mp4 URL
        break
    if result["status"] in ("Error", "Request Moderated", "Content Moderated"):
        raise RuntimeError(result["status"])
```

```bash cURL theme={null}
# 1. Submit: returns an id and a polling_url
curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
  -H "x-key: $BFL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "t2v",
    "prompt": "a fox running through dawn mist",
    "generate_audio": true
  }'

# 2. Poll the polling_url from the response until "status": "Ready"
curl -s "$POLLING_URL" -H "x-key: $BFL_API_KEY"
```

## Modes

Each `/v1/flux-3-video` request names a `mode`. Media fields and accepted parameter values depend
on that mode; check the API reference before reusing a request across modes.

* **Text-to-Video** (`t2v`): prompt only.
* **Image-to-Video** (`i2v`): add `keyframes`: one image is the opening frame, `[a, b]` pins start and end, and up to ten frames pinned to timestamps become a storyboard.
* **Video Continuation** (`v2v`): add `start_video`; the clip continues from its final frames.

For editing, use the separate FLUX Video Edit \[fast] tool at
`/v1/flux-tools/video-edit-v1`, documented on its [own page](https://docs.bfl.ml/flux_tools/flux_video_edit.md).
Send `video` and `prompt`, not a `mode`.

<video src="https://cdn.sanity.io/files/2gpum2i6/production/fc743c980a0259403ccec6c9a705f9e412e6f81b.mp4" autoPlay loop playsInline preload="metadata" aria-label="Text-to-video example" />

`t2v`: Generate a video with audio

<video src="https://cdn.sanity.io/files/2gpum2i6/production/9b7469e7f349b4f26fe9809b9faa13567504aa84.mp4" autoPlay loop playsInline preload="metadata" aria-label="Image-to-video example" />

`i2v`: Animate an image and use multiple keyframes

<video src="https://cdn.sanity.io/files/2gpum2i6/production/08c30d095b03c80ebec84e8a547c3ea694c2efca.mp4" autoPlay loop playsInline preload="metadata" aria-label="Video continuation example" />

`v2v`: Extend your clip

## Parameters

Full schema and per-field constraints live in the [API reference](https://docs.bfl.ml/api-reference/utility/generate-a-video-with-flux-3.md).

| Field | Required | |
| - | - | - |
| `mode` | always | `t2v`, `i2v`, `v2v`, or `draft_enhance`. |
| `prompt` | always | What to generate. |
| `keyframes` | for `i2v` | One image starts the clip, two pin start and end, `[seconds, image]` pairs pin exact times. URL or base64. |
| `start_video` | for `v2v` | The clip to continue from, mp4 as URL or base64. |
| `draft_cache` | for `draft_enhance` | The bundle from a prior draft; reproduces that generation at full quality. |
| `resolution` | | `hd` (default), `fhd`, `qhd`, or `uhd`. See [Resolution](#resolution). |
| `duration` | | Whole seconds, 5 to 20, or `auto` (default). |
| `aspect_ratio` | | `auto` (default), `21:9`, `2:1`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, or `9:21`. |
| `generate_audio` | | On by default. Set `false` for a silent clip. |
| `safety_tolerance` | | 0 (strictest) to 4, default 2. |
| `draft` | | Set `true` for a fast hd preview; the result includes a `draft_cache` bundle. |
| `version` | | `latest` (default): always tracks the current release. |

### Resolution

`hd` is delivered straight off the generation. `fhd`, `qhd`, and `uhd` run the
same generation and finish it with the video upsampler on a larger canvas, so
the shot is identical across all four and only the delivered size differs.

| Aspect ratio | `hd` | `fhd` | `qhd` | `uhd` |
| - | - | - | - | - |
| 21:9 | 1440 × 608 | 2176 × 928 | 2912 × 1248 | 4352 × 1856 |
| 2:1 | 1344 × 672 | 2016 × 1024 | 2720 × 1376 | 4032 × 2048 |
| 16:9 | 1280 × 704 | 1920 × 1088 | 2560 × 1440 | 3840 × 2176 |
| 4:3 | 1088 × 800 | 1632 × 1216 | 2176 × 1632 | 3264 × 2432 |
| 1:1 | 960 × 960 | 1440 × 1440 | 1920 × 1920 | 2880 × 2880 |
| 3:4 | 800 × 1088 | 1216 × 1632 | 1632 × 2176 | 2432 × 3264 |
| 9:16 | 704 × 1280 | 1088 × 1920 | 1440 × 2560 | 2176 × 3840 |
| 9:21 | 608 × 1440 | 928 × 2176 | 1248 × 2912 | 1856 × 4352 |

Dimensions are multiples of 32, so a class does not always land on the round
number its name suggests: `uhd` at 16:9 delivers 3840 × 2176 rather than
3840 × 2160, the same way `fhd` delivers 1920 × 1088. Crop the delivered frame
if you need an exact standard size.

Drafts always render at `hd`: sending `draft: true` with any other resolution
is rejected. `draft_enhance` accepts all four classes and defaults to `fhd`, so
the delivery size is chosen when you commit a draft, not when you preview it.

## Use cases

Deeply customizable, and built for use cases, visual styles, and aspect ratios
far beyond conventional cinematic output.

### Text to video

Generate a clip from words alone: FLUX 3 handles everything from a single line to a densely directed brief, filling in framing, motion, and mood wherever you leave them open.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "t2v",
>     "prompt": "a fox running through dawn mist",
>     "generate_audio": true
>   }'
> ```

### Image to video

Animate from images you pin. A single still becomes the exact opening frame, a start-and-end pair interpolates the motion between them, and several frames spread across the clip.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "i2v",
>     "prompt": "push forward through the trees",
>     "keyframes": "https://example.com/still.jpg"
>   }'
> ```

### Multiple scenes

Block several shots and camera angles in one generation. Character, look, and continuity hold across hard cuts, with a single audio bed carrying through.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "t2v",
>     "prompt": "SHOT ONE: wide aerial of a desert highway at dawn. HARD CUT. SHOT TWO: interior close-up of the driver. HARD CUT. SHOT THREE: the car shrinks into the heat haze. One music bed across all shots.",
>     "duration": 10
>   }'
> ```

### Multilingual dialogue

On-camera speech in many languages, with accurate accents and tight lipsync. Quote the line in your prompt and the character says it.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "t2v",
>     "prompt": "A presenter speaks to the lens: \"Storm season is here.\" Clean studio lighting.",
>     "generate_audio": true
>   }'
> ```

### Broad range of styles

Specify the visual style in the prompt: live action, animation, or motion graphics.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "t2v",
>     "prompt": "2D hand-drawn animation of a fox leaping through a paper-cut forest, bold flat colors",
>     "aspect_ratio": "16:9"
>   }'
> ```

### Text and typography

Describe the words and their placement to generate titles, signs, or lower-thirds within the video.

Previous clip

Next clip

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "t2v",
>     "prompt": "Bold kinetic title card, the word \"FLUX\" assembling from light streaks on a dark stage",
>     "aspect_ratio": "16:9"
>   }'
> ```

### Keyframes

Provide ordered keyframes to guide a continuous shot through specific poses and compositions. FLUX 3 generates the motion between them.

> [tab] Example 1
>
> ![Keyframe: Start (0:00)](https://cdn.sanity.io/images/2gpum2i6/production/809c8dc93242314493c4ae613e9ebfba26b7b14f-2752x1536.jpg)
>
> Start (0:00)
>
> ![Keyframe: Key 2 (0:03)](https://cdn.sanity.io/images/2gpum2i6/production/716f9cad904a337d7d54cbe3fa69d8cc8fb6fde5-2752x1536.jpg)
>
> Key 2 (0:03)
>
> ![Keyframe: Key 3 (0:07)](https://cdn.sanity.io/images/2gpum2i6/production/b4855f2bcf674551255248f4f30a2f213ed34e68-2752x1536.jpg)
>
> Key 3 (0:07)
>
> ![Keyframe: End (0:10)](https://cdn.sanity.io/images/2gpum2i6/production/b591a58d3a4a94472dbb7e69f3f40859cc6d3731-2752x1536.jpg)
>
> End (0:10)
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/afc86a790f1a835db3cff62e58dd658c3d47fc59.mp4" autoPlay loop playsInline preload="metadata" aria-label="Keyframes interpolation: example 1" />

> [tab] Example 2
>
> ![Keyframe: Start](https://cdn.sanity.io/images/2gpum2i6/production/358bebb751c3867f0901e30124f3883e76ab7bbb-2752x1536.jpg)
>
> Start
>
> ![Keyframe: Key 2](https://cdn.sanity.io/images/2gpum2i6/production/54cea0c9d4713e182e6efca23af4aaded1692eeb-1280x704.jpg)
>
> Key 2
>
> ![Keyframe: Key 3](https://cdn.sanity.io/images/2gpum2i6/production/7bae0d042e4439dc663ef4c9a9e742a0ea7d7ba2-2752x1536.jpg)
>
> Key 3
>
> ![Keyframe: End](https://cdn.sanity.io/images/2gpum2i6/production/5e23500b2d474706664f50d049b773881bdf08df-2752x1536.jpg)
>
> End
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/3f5235ad7fc4479887c52b832e0b53162443192a.mp4" autoPlay loop playsInline preload="metadata" aria-label="Keyframes interpolation: example 2" />

> [tab] Example 3
>
> ![Keyframe: Start (0:00)](https://cdn.sanity.io/images/2gpum2i6/production/8ceb96c14c79c734374de4eca3ee56ba6c122cb9-2752x1536.jpg)
>
> Start (0:00)
>
> ![Keyframe: Key 2 (0:03)](https://cdn.sanity.io/images/2gpum2i6/production/46eba9ae12d22d874b38bbdb4912d8b5ce0ae174-2752x1536.jpg)
>
> Key 2 (0:03)
>
> ![Keyframe: Key 3 (0:07)](https://cdn.sanity.io/images/2gpum2i6/production/e3dfbe33f753a1ce8b3cae684dd4b6a623a41508-2752x1536.jpg)
>
> Key 3 (0:07)
>
> ![Keyframe: End (0:10)](https://cdn.sanity.io/images/2gpum2i6/production/49e52bc3ba7be3391053bd0a44b65312955acbc6-2752x1536.jpg)
>
> End (0:10)
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/44b47fe10cbc6e12254a62e551039f6fdbe0344c.mp4" autoPlay loop playsInline preload="metadata" aria-label="Keyframes interpolation: example 3" />

> [tab] Example 4
>
> ![Keyframe: Start (0:00)](https://cdn.sanity.io/images/2gpum2i6/production/a0250de4e82156784a473cbc3d80962eec182f67-2752x1536.jpg)
>
> Start (0:00)
>
> ![Keyframe: Key 2 (0:03)](https://cdn.sanity.io/images/2gpum2i6/production/0fb824a0f323555e7bf638ba15297560929f5910-2752x1536.jpg)
>
> Key 2 (0:03)
>
> ![Keyframe: Key 3 (0:07)](https://cdn.sanity.io/images/2gpum2i6/production/b53d1ad12728e294e24ac379f9911fa6d23394df-2752x1536.jpg)
>
> Key 3 (0:07)
>
> ![Keyframe: End (0:10)](https://cdn.sanity.io/images/2gpum2i6/production/5f041547138189029876ea4e578ab1f563fad5f4-2752x1536.jpg)
>
> End (0:10)
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/f5b698d51ec802449f9facb5d57ab62b5dd1c68c.mp4" autoPlay loop playsInline preload="metadata" aria-label="Keyframes interpolation: example 4" />

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "i2v",
>     "prompt": "a seed grows into a tree through the seasons",
>     "duration": 10,
>     "keyframes": [[0, "https://example.com/seed.png"], [4.5, "https://example.com/sapling.png"], [10, "https://example.com/tree.png"]]
>   }'
> ```

### Video continuation

Feed an existing clip and FLUX 3 picks up from its final frames, carrying momentum, framing, and scene logic forward without a cut.

> [tab] Elephants
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/08c30d095b03c80ebec84e8a547c3ea694c2efca.mp4" poster="https://cdn.sanity.io/images/2gpum2i6/production/2b51df2fc7e43550f57b1cb72fe64b6122197de7-1280x704.jpg" autoPlay loop playsInline preload="metadata" aria-label="Elephants: video continuation" />
>
> Scrub — original clip then FLUX 3 continuation
>
> Original 
>
> /
>
> FLUX 3 continuation +

> [tab] Penguin
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/c3251e7b67573784027544e16752c517eb73f7b7.mp4" poster="https://cdn.sanity.io/images/2gpum2i6/production/43a63bebd9601c5748797cd2aa6e71785dbf8b23-1280x704.jpg" autoPlay loop playsInline preload="metadata" aria-label="Penguin: video continuation" />
>
> Scrub — original clip then FLUX 3 continuation
>
> Original 
>
> /
>
> FLUX 3 continuation +

> [tab] Iguazú Falls
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/69c7cd8f26d64630880b5e330581cb2312f0645c.mp4" poster="https://cdn.sanity.io/images/2gpum2i6/production/ab596e488b835529ccb40b0d3ba26be1ae8b9dd6-1280x704.jpg" autoPlay loop playsInline preload="metadata" aria-label="Iguazú Falls: video continuation" />
>
> Scrub — original clip then FLUX 3 continuation
>
> Original 
>
> /
>
> FLUX 3 continuation +

> [tab] Giraffe
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/d1368e9ad2193e8e85b0165b6fa793e4920546f1.mp4" poster="https://cdn.sanity.io/images/2gpum2i6/production/42c4ae3bab1aca4a3f86e387526daf501c635d64-1280x704.jpg" autoPlay loop playsInline preload="metadata" aria-label="Giraffe: video continuation" />
>
> Scrub — original clip then FLUX 3 continuation
>
> Original 
>
> /
>
> FLUX 3 continuation +

> [tab] SUV drift
>
> <video src="https://cdn.sanity.io/files/2gpum2i6/production/8f587923157cc33e6558fdd4d6c0a96ff6a6fdc8.mp4" poster="https://cdn.sanity.io/images/2gpum2i6/production/a1de57d82c1f75869133b4557b81faf3a935f75c-1280x704.jpg" autoPlay loop playsInline preload="metadata" aria-label="SUV drift: video continuation" />
>
> Scrub — original clip then FLUX 3 continuation
>
> Original 
>
> /
>
> FLUX 3 continuation +

> [accordion] Example API call
>
> ```bash cURL theme={null}
> curl -s -X POST https://api.bfl.ai/v1/flux-3-video \
>   -H "x-key: $BFL_API_KEY" -H "Content-Type: application/json" \
>   -d '{
>     "mode": "v2v",
>     "prompt": "she takes his hand and pulls him laughing through the lantern-lit alley, the camera chasing them",
>     "start_video": "https://example.com/clip.mp4",
>     "duration": 10
>   }'
> ```

### Video editing

The example below requests two changes to an existing clip: remove the
pedestrians and add pigeons around the fountain.

<video src="https://cdn.sanity.io/files/2gpum2i6/production/5b163e044b56fb0db536693a4aa97e737ddfbad3.mp4" autoPlay muted playsInline preload="auto" aria-label="Edited" />

<video src="https://cdn.sanity.io/files/2gpum2i6/production/a38495a2841be9a8d2827d48df5f17aec7b5ac98.mp4" autoPlay muted playsInline preload="auto" aria-label="Source" />

Source

Edited

Remove all the pedestrians and add a flock of pigeons around the fountain.

FLUX Video Edit \[fast] takes the source clip as `video` and the edit instruction as
`prompt` at `POST /v1/flux-tools/video-edit-v1`. Poll the returned `polling_url`
until `Ready` and download `result.sample`. Twelve edits on one clip, the
request fields, limits and pricing are on the
[FLUX Video Edit page](https://docs.bfl.ml/flux_tools/flux_video_edit.md).

## Keep exploring

> [card] [Prompting Guide](https://docs.bfl.ml/guides/prompting_video_text_to_video.md)
>
> Prompt formats, the schema, camera language, and audio.

> [card] [API reference](https://docs.bfl.ml/api-reference/utility/generate-a-video-with-flux-3.md)
>
> The full flux-3-video request contract: modes, fields, and constraints.

> [card] [Playground](https://playground.bfl.ai)
>
> Try FLUX 3 in your browser: no setup required.

> [card] [FLUX 3 overview](https://docs.bfl.ml/flux_3/flux3_overview.md)
>
> One request shape across image, video, and synchronized audio.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.