# Flux 3 Edit Video

> FLUX.3 is Black Forest Labs' frontier video model. This endpoint edits an existing video from natural-language instructions, applying targeted changes while preserving the rest of the scene.


## Overview

- **Endpoint**: `https://fal.run/blackforestlabs/flux-3/edit-video`
- **Model ID**: `blackforestlabs/flux-3/edit-video`
- **Category**: video-to-video
- **Kind**: inference
**Tags**: stylized, transform, lipsync



## Pricing

Your request will be charged at **$0.03** per second of generated video (720p). 

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`prompt`** (`string`, _required_):
  The text prompt describing how to change the input video. The clip is re-rendered preserving motion, timing, and framing.
  - Examples: "Make it snow heavily; give the scene a cold winter palette."

- **`safety_tolerance`** (`integer`, _optional_):
  The safety tolerance level for the generated video. 0 is the strictest and 4 is the most permissive. Default value: `2`
  - Default: `2`
  - Range: `0` to `4`

- **`video_url`** (`string`, _required_):
  URL of the input video. MP4, under 50 MB and under 15 seconds.
  - Examples: "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"



**Required Parameters Example**:

```json
{
  "prompt": "Make it snow heavily; give the scene a cold winter palette.",
  "video_url": "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"
}
```

**Full Example**:

```json
{
  "prompt": "Make it snow heavily; give the scene a cold winter palette.",
  "safety_tolerance": 2,
  "video_url": "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`File`, _required_):
  The generated video.
  - Examples: {"url":"https://storage.googleapis.com/falserverless/example_outputs/veo3-i2v-output.mp4"}

- **`seed`** (`integer`, _required_):
  The seed used for the generation.



**Example Response**:

```json
{
  "video": {
    "url": "https://storage.googleapis.com/falserverless/example_outputs/veo3-i2v-output.mp4"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/blackforestlabs/flux-3/edit-video \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "Make it snow heavily; give the scene a cold winter palette.",
     "video_url": "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "blackforestlabs/flux-3/edit-video",
    arguments={
        "prompt": "Make it snow heavily; give the scene a cold winter palette.",
        "video_url": "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("blackforestlabs/flux-3/edit-video", {
  input: {
    prompt: "Make it snow heavily; give the scene a cold winter palette.",
    video_url: "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/blackforestlabs/flux-3/edit-video)
- [API Documentation](https://fal.ai/models/blackforestlabs/flux-3/edit-video/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=blackforestlabs/flux-3/edit-video)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
