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

# Doubao Seedance 2.5 Flash

> Generate, edit and extend videos with Doubao Seedance 2.5 Flash using 480p or 720p output.

Doubao Seedance 2.5 Flash is ByteDance's faster variant of Seedance 2.5. It supports text-to-video, first-frame and first/last-frame generation, multimodal references, video editing, and video extension.

`POST https://api.mixroute.ai/v1/video/generations`

Keep `model`, `prompt`, and `asset` at the top level. Put the provider fields in `metadata`. For text-only requests, use `asset: false` and include a text item in `metadata.content` that matches `prompt`. Use `asset: true` when sending reference media.

> [!NOTE]
>
> Flash does not support Draft. Omit `metadata.draft` and do not include a `draft_task` item. For Draft previews, use the [standard Doubao Seedance 2.5 route](https://mixroute.ai/docs/model-api/bytedance/doubao-seedance-2-5.md).

## Parameters and limits

| Field | Value |
| - | - |
| `model` | `doubao-seedance-2-5-flash-261115` |
| `metadata.resolution` | `480p` / `720p` (default) |
| `metadata.duration` | 4–30 seconds, or `-1` (default) to select the length automatically. |
| `metadata.ratio` | `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `21:9`, or `adaptive` (default). |
| `metadata.generate_audio` | `true` (default) enables synchronized audio; `false` produces a silent video. |
| `metadata.output_format` | `mp4` (default) or `mov`; video output is 24 fps. |
| `metadata.omni_reference_task_type` | Optional for multimodal input: `auto` (default), `reference`, `edit`, or `extend`. |

## Input modes

* For frame conditioning, use `first_frame` or `first_frame` and `last_frame`. Set `metadata.ratio` to `adaptive`. Do not mix frame roles with `reference_*` roles.
* For multimodal input, use `reference_image`, `reference_video`, or `reference_audio`. Per request: up to 10 images, 5 video clips, and 5 audio clips. Audio-only references are supported. The total duration of reference videos and the total duration of reference audio must each be at most 30 seconds.
* For video editing, include a `reference_video` of 4–30 seconds, set `metadata.ratio` to `adaptive`, and set `metadata.duration` to `-1`. Video extension also requires a `reference_video` and `adaptive` ratio.

## Request examples

Set `MIXROUTE_API_KEY` to your MixRoute API key. For the editing example, replace the example URL with an accessible source video.

### Text-to-video

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/video/generations" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "doubao-seedance-2-5-flash-261115",
  "prompt": "A red ceramic mug turns slowly on a white tabletop in soft daylight.",
  "asset": false,
  "metadata": {
    "content": [
      {
        "type": "text",
        "text": "A red ceramic mug turns slowly on a white tabletop in soft daylight."
      }
    ],
    "duration": 4,
    "resolution": "480p",
    "ratio": "16:9",
    "generate_audio": false
  }
}'
```

### Edit a video

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/video/generations" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "doubao-seedance-2-5-flash-261115",
  "prompt": "Replace the white tabletop with a light wood surface. Keep the mug and camera motion unchanged.",
  "asset": true,
  "metadata": {
    "content": [
      {
        "type": "text",
        "text": "Replace the white tabletop with a light wood surface. Keep the mug and camera motion unchanged."
      },
      {
        "type": "video_url",
        "video_url": {
          "url": "https://example.com/source.mp4"
        },
        "role": "reference_video"
      }
    ],
    "omni_reference_task_type": "edit",
    "duration": -1,
    "resolution": "720p",
    "ratio": "adaptive",
    "generate_audio": false
  }
}'
```

## Query the task

Replace `MIXROUTE_TASK_ID` with the task ID returned by submission. Wait for success before retrieving the video URL. See [Query Video Task](https://mixroute.ai/docs/api-reference/endpoint/query-video-task.md) for statuses and response fields.

```bash theme={null}
curl "https://api.mixroute.ai/v1/video/generations/MIXROUTE_TASK_ID" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY"
```

See the [Doubao API](https://mixroute.ai/docs/api-reference/endpoint/doubao.md) for shared parameters and [Seedance media limits](https://mixroute.ai/docs/api-reference/endpoint/seedance.md) for input formats and sizes. For current pricing, see the [Model Marketplace](https://console.mixroute.ai/models).


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