# Seedance 2.5

> Draft completion endpoint for Seedance 2.5 - submit a draft id to regenerate the task at 1080p.


## Overview

- **Endpoint**: `https://fal.run/bytedance/seedance-2.5/draft/complete`
- **Model ID**: `bytedance/seedance-2.5/draft/complete`
- **Category**: unknown
- **Kind**: inference


## Pricing

- **Price**: $0.0214 per 1000 tokens

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:


- **`draft_id`** (`string`, _required_):
  The draft_id returned with draft enabled. Valid for seven days and only for the original caller.

- **`resolution`** (`string`, _optional_):
  Completed drafts only support 1080p output. Default value: `"1080p"`
  - Default: `"1080p"`

- **`codec`** (`CodecEnum`, _optional_):
  'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265. Default value: `"auto"`
  - Default: `"auto"`
  - Options: `"auto"`, `"H264"`, `"H265"`
  - Examples: "auto", "H264", "H265"



**Required Parameters Example**:

```json
{
  "draft_id": ""
}
```

**Full Example**:

```json
{
  "draft_id": "",
  "resolution": "1080p",
  "codec": "auto"
}
```


### Output Schema

The API returns the following output format:

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

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

- **`draft_id`** (`string`, _optional_):
  The draft ID, or null when draft mode is disabled. Complete this draft within seven days using the same account.



**Example Response**:

```json
{
  "video": {
    "url": "https://storage.googleapis.com/falserverless/example_outputs/bytedance/seedance_2/output.mp4"
  },
  "seed": 42
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/bytedance/seedance-2.5/draft/complete \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "draft_id": ""
   }'
```

### 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(
    "bytedance/seedance-2.5/draft/complete",
    arguments={
        "draft_id": ""
    },
    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("bytedance/seedance-2.5/draft/complete", {
  input: {
    draft_id: ""
  },
  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/bytedance/seedance-2.5/draft/complete)
- [API Documentation](https://fal.ai/models/bytedance/seedance-2.5/draft/complete/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=bytedance/seedance-2.5/draft/complete)

### 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`
