Seedance 2.5 Flash API
Generates 480p and 720p video. Pricing depends on whether the request includes an input video. Both resolutions share the same rate.
- Model:
dreamina-seedance-2.5-flash - Provider: bytedance
- Type: video
POST /v1/videos/generations
Submit a video task.
First-frame image to video
Required parameters: model, prompt, first_frame_url
Available parameters: model, prompt, first_frame_url, duration, resolution, generate_audio, wait
Text to video
Required parameters: model, prompt
Available parameters: model, prompt, duration, resolution, generate_audio, wait
Request parameters
| Parameter | Type | Required | Description |
|---|
model | string | Yes | Exact model identifier. Options: dreamina-seedance-2.5-flash |
prompt | string | Yes | Scene or motion prompt in the shorthand request. Omit it when content carries the text. |
duration | integer | No | Reported output duration in seconds. |
resolution | string | No | Reported output resolution. Options: 480p / 720p |
first_frame_url | string | No | Public HTTPS URL of the first frame. Omit it for text-to-video. |
generate_audio | boolean | No | Whether audio generation was enabled. |
wait | boolean | No | False returns the async task. Use the task-query endpoint for the result. |
reference_videos | array | No | Public video URLs for reference-video generation. Include them only for that workflow. |
## Usage
- Save the returned `id` and query it with the same account. On HTTP 202, continue polling the task.
- Poll every few seconds while the state is `pending`, `submitted`, or `processing`.
- `succeeded`, `failed`, `timeout`, and `canceled` are terminal. Preserve the ID and review an `unknown` state. On failure, read `error.code` and `error.message`.
- A nonempty native `content` array takes precedence for text and assets. Its first-frame object uses `type: "image_url"`, `role: "first_frame"`, and `image_url.url`.
- Save the resulting file promptly because the URL can expire. The platform exposes 480p and 720p output for this model.
[BytePlus parameter reference](https://console.byteplus.com/ark/region:ap-southeast-1/docs/create-video-generation-task-api) · Reviewed on November 19, 2026.
## Complete nested field reference
Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero.
### Request headers
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `Content-Type` | string | Yes | JSON request-body content type. |
### Request body
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `model` | string | Yes | Exact model identifier. Values: dreamina-seedance-2.5-flash |
| `prompt` | string | Yes | Scene or motion prompt in the shorthand request. Omit it when content carries the text. |
| `duration` | integer | No | Reported output duration in seconds. Default: 5; Minimum: 4; Maximum: 30 |
| `resolution` | string | No | Reported output resolution. Values: 480p, 720p; Default: "720p" |
| `first_frame_url` | string | No | Public HTTPS URL of the first frame. Omit it for text-to-video. |
| `generate_audio` | boolean | No | Whether audio generation was enabled. |
| `wait` | boolean | No | False returns the async task. Use the task-query endpoint for the result. Default: false |
| `reference_videos` | array[string] | No | Public video URLs for reference-video generation. Include them only for that workflow. |
### Response 202
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | Yes | Opaque task ID. Preserve it unchanged. |
| `model` | string | Yes | Exact model identifier. |
| `status` | string | Yes | Task status. Only succeeded indicates a generated video. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown |
| `created_at` | integer | Yes | Creation time as Unix seconds. |
### Error response structure
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `error` | object | No | Request error details. |
| `error.code` | string | No | Machine-readable error code. |
| `error.message` | string | No | Human-readable error message. |
Request example
curl --request POST https://api.router.ai/v1/videos/generations \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "dreamina-seedance-2.5-flash",
"prompt": "Generate a short clip of a paper boat moving across a still pond.",
"first_frame_url": "https://example.invalid/materials/paper-boat.jpg",
"duration": 4,
"resolution": "480p",
"generate_audio": false,
"wait": false
}'
Endpoint reference: Aliyun Wan video generation
GET /v1/videos/generations/{id}
Query a video task.
## Usage
- Save the returned `id` and query it with the same account. On HTTP 202, continue polling the task.
- Poll every few seconds while the state is `pending`, `submitted`, or `processing`.
- `succeeded`, `failed`, `timeout`, and `canceled` are terminal. Preserve the ID and review an `unknown` state. On failure, read `error.code` and `error.message`.
- A nonempty native `content` array takes precedence for text and assets. Its first-frame object uses `type: "image_url"`, `role: "first_frame"`, and `image_url.url`.
- Save the resulting file promptly because the URL can expire. The platform exposes 480p and 720p output for this model.
[BytePlus parameter reference](https://console.byteplus.com/ark/region:ap-southeast-1/docs/create-video-generation-task-api) · Reviewed on November 19, 2026.
## Complete nested field reference
Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero.
### Path parameters
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | Yes | Opaque task ID. Preserve it unchanged. |
### Response 200
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | Yes | Opaque task ID. Preserve it unchanged. |
| `model` | string | Yes | Exact model identifier. |
| `status` | string | Yes | Task status. Only succeeded indicates a generated video. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown |
| `created_at` | integer | Yes | Creation time as Unix seconds. |
| `updated_at` | integer | No | Last update time in Unix seconds, when present. |
| `resolution` | string | No | Reported output resolution. |
| `duration` | integer | No | Reported output duration in seconds. |
| `generate_audio` | boolean | No | Whether audio generation was enabled. |
| `output_format` | string | No | Reported video container format. |
| `ratio` | string | No | Output aspect ratio. |
| `framespersecond` | integer | No | Output frame rate. |
| `seed` | integer | No | Reported random seed. |
| `content` | object | No | Video result on success. |
| `content.video_url` | string | Yes | HTTPS download URL. Save the video promptly. |
| `usage` | object | No | Reported generation usage. It may be absent before completion or on failure. |
| `usage.completion_tokens` | integer | No | Reported generation token count. |
| `usage.total_tokens` | integer | No | Total reported task tokens. Read this value directly without adding completion_tokens. |
| `error` | object | No | Request error details. |
| `error.code` | string | No | Machine-readable error code. |
| `error.message` | string | No | Human-readable error message. |
### Error response structure
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `error` | object | No | Request error details. |
| `error.code` | string | No | Machine-readable error code. |
| `error.message` | string | No | Human-readable error message. |
Request example
curl --request GET "https://api.router.ai/v1/videos/generations/$TASK_ID" \
--header "Authorization: Bearer $API_KEY"
Endpoint reference: Get a video task