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

# Seedance 2.5 Flash video generation

> Seedance 2.5 Flash video generation: the cost-efficient Seedance 2.5 tier, up to 30 seconds per task at 480p / 720p, with reference / edit / extend modes.

Seedance 2.5 Flash is the tier of the Seedance 2.5 series that balances speed and cost. It keeps 2.5's joint audio-video generation, multi-shot stories of up to 30 seconds in one task, and the reference / edit / extend modes, while generating faster and costing less, at 480p / 720p with up to 10 images, 5 videos and 5 audio clips as references. It suits batch short videos, e-commerce assets and fast creative iteration.

Set `model` to `seedance-2.5-flash`; everything else is in the [shared guide](https://docs.dreamto.ai/en/video/seedance-2-0.md).

## Parameters

Out-of-range values return 400; no task is created and nothing is billed.

| Field | Default | Allowed for this model |
| - | - | - |
| `model` | — | `seedance-2.5-flash` |
| `duration` | `-1` (smart duration) | Integer `4`–`30` seconds, or `-1` for smart duration |
| `resolution` | `720p` | `480p` / `720p` |
| `ratio` | `adaptive` | `adaptive` / `16:9` / `9:16` / `1:1` / `4:3` / `3:4` / `21:9` |
| `generate_audio` | `true` | `true` / `false` |
| `omni_reference_task_type` | omitted (derived) | `auto` / `reference` / `edit` / `extend` |

All parameters: [Create video task](https://docs.dreamto.ai/en/api-reference/seedance-2-5-flash/create-task.md).

## Reference media

| Type | Limit for this model | Purpose |
| - | - | - |
| Image `image_url` | 10 | First frame / last frame / reference |
| Video `video_url` | 5 | Reference video (edit / extend) |
| Audio `audio_url` | 5 | Reference audio |

Media can be public `http(s)` URLs, `asset://<asset Id>`, or inline Base64 `data:<kind>/<format>;base64,<data>` (the kind matches the item, e.g. `data:image/png;base64,...` for `image_url`; up to 45 MB each after decoding and 64 MB for the whole request body; the gateway stores it as a URL before submitting, so prefer URLs for large videos and audio); exceeding a limit fails the task.

## Quick start

Create a task and poll it; when `status` is `succeeded`, read `content.video_url`.

```bash cURL theme={null}
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.5-flash",
    "content": [
      {
        "type": "text",
        "text": "A city street after rain, neon reflected in the puddles; a low-angle camera follows a bicycle slowly riding past"
      }
    ],
    "ratio": "16:9",
    "duration": 5,
    "resolution": "720p"
  }'

# 2. Get the task (use the id returned above)
curl "https://api.dreamto.ai/api/v3/contents/generations/tasks/task_8c1d2e3f4a5b6c7d8e9f0a1b" \
  -H "Authorization: Bearer $DREAMTO_API_KEY"
```

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

import requests

URL = "https://api.dreamto.ai/api/v3/contents/generations/tasks"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "seedance-2.5-flash",
    "content": [
        {
            "type": "text",
            "text": "A city street after rain, neon reflected in the puddles; a low-angle camera follows a bicycle slowly riding past"
        }
    ],
    "ratio": "16:9",
    "duration": 5,
    "resolution": "720p"
}

resp = requests.post(URL, headers=HEADERS, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["id"]

while True:
    task = requests.get(f"{URL}/{task_id}", headers=HEADERS, timeout=30).json()
    if task["status"] == "succeeded":
        print(task["content"]["video_url"])
        break
    if task["status"] == "failed":
        raise RuntimeError(task["error"]["message"])
    time.sleep(5)
```

```javascript Node.js theme={null}
const URL = "https://api.dreamto.ai/api/v3/contents/generations/tasks";
const headers = {
  Authorization: `Bearer ${process.env.DREAMTO_API_KEY}`,
  "Content-Type": "application/json",
};

const payload = {
  "model": "seedance-2.5-flash",
  "content": [
    {
      "type": "text",
      "text": "A city street after rain, neon reflected in the puddles; a low-angle camera follows a bicycle slowly riding past"
    }
  ],
  "ratio": "16:9",
  "duration": 5,
  "resolution": "720p"
};

const created = await fetch(URL, { method: "POST", headers, body: JSON.stringify(payload) });
if (!created.ok) throw new Error(JSON.stringify(await created.json()));
const { id } = await created.json();

for (;;) {
  const task = await (await fetch(`${URL}/${id}`, { headers })).json();
  if (task.status === "succeeded") {
    console.log(task.content.video_url);
    break;
  }
  if (task.status === "failed") throw new Error(task.error.message);
  await new Promise((r) => setTimeout(r, 5000));
}
```

## Examples

* [Text to video](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/text-to-video.md)
* [Image to video (first frame)](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/image-to-video.md)
* [First and last frame](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/first-last-frame.md)
* [Multi-image reference](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/multi-image-reference.md)
* [Video editing](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/video-edit.md)
* [Video extension](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/video-extend.md)
* [Reference audio](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/reference-audio.md)
* [Web search](https://docs.dreamto.ai/en/video/models/seedance-2-5-flash/scenarios/web-search.md)

## Common errors

| Case | HTTP | Returns |
| - | - | - |
| `duration` outside 4–30 or not an integer | 400 | `duration must be an integer from 4 to 30 seconds, or -1 (smart duration)` |
| `resolution` not in `480p` / `720p` | 400 | `resolution must be one of: 480p, 720p` |
| Sending a field this model does not support: `camera_fixed` / `real_person_mode` / `draft` / `bitrate_mode` / `task_nickname` | 400 | `<field> is not supported by this model` |
| Invalid Base64 media data | 400 | `content[n].image_url.url is not valid base64 data` |
| Base64 media over 45 MB after decoding | 400 | `content[n].video_url.url exceeds 45 MB; use an http/https URL` |
| Model not enabled for your account | 404 | `error.code` is `not_found` |

All codes: [Errors](https://docs.dreamto.ai/en/errors.md).


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