# Lucy Edit [Fast]

> Lucy Edit Fast is a rapid, localized video editing model that lets you modify specific elements like objects, or backgrounds in just 10 seconds.


## Overview

- **Endpoint**: `https://fal.run/decart/lucy-edit/fast`
- **Model ID**: `decart/lucy-edit/fast`
- **Category**: video-to-video
- **Kind**: inference
**Description**: Lucy Edit Fast is a high-speed, localized video editing model designed for rapid creative exploration. Built on Decart’s Lucy Edit architecture, it enables precise, object-level modifications - such as adding or removing elements, altering clothing, or replacing backgrounds - while preserving lighting, motion, and realism. This variant delivers edits in just 10 seconds, offering faster iteration at lower cost with only minimal quality trade-offs.

**Tags**: edit, video-edit



## Pricing

Your request will cost **$0.04** per video second for 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_):
  Text description of the desired video content
  - Examples: "Change her jacket to formal brown jacket"

- **`video_url`** (`string`, _required_):
  URL of the video to edit
  - Examples: "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.mp4"

- **`sync_mode`** (`boolean`, _optional_):
  If set to true, the function will wait for the video to be generated
  and uploaded before returning the response. This will increase the
  latency of the function but it allows you to get the video directly
  in the response without going through the CDN.
  - Default: `false`

- **`enhance_prompt`** (`boolean`, _optional_):
  Whether to enhance the prompt for better results. Default value: `true`
  - Default: `true`



**Required Parameters Example**:

```json
{
  "prompt": "Change her jacket to formal brown jacket",
  "video_url": "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.mp4"
}
```

**Full Example**:

```json
{
  "prompt": "Change her jacket to formal brown jacket",
  "video_url": "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.mp4",
  "enhance_prompt": true
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`File`, _required_):
  The generated video
  - Examples: {"file_size":819791,"file_name":"generated_video.mp4","content_type":"video/mp4","url":"https://v3b.fal.media/files/b/koala/Q24io3IIZNRvszEBUdb6Z_generated_video.mp4"}



**Example Response**:

```json
{
  "video": {
    "file_size": 819791,
    "file_name": "generated_video.mp4",
    "content_type": "video/mp4",
    "url": "https://v3b.fal.media/files/b/koala/Q24io3IIZNRvszEBUdb6Z_generated_video.mp4"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/decart/lucy-edit/fast \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "Change her jacket to formal brown jacket",
     "video_url": "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.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(
    "decart/lucy-edit/fast",
    arguments={
        "prompt": "Change her jacket to formal brown jacket",
        "video_url": "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.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("decart/lucy-edit/fast", {
  input: {
    prompt: "Change her jacket to formal brown jacket",
    video_url: "https://v3b.fal.media/files/b/elephant/p8aXM3bMaj_Nzbk5RfEoa_original-lucy-fast-coffee.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/decart/lucy-edit/fast)
- [API Documentation](https://fal.ai/models/decart/lucy-edit/fast/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=decart/lucy-edit/fast)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
