Video / Seedance 2

Seedance 2.5 Flash Video Generation

asV3 localized example text (snake_case Request Body + ).in use endpointSeedance 2.5 Flash V2 endpointlocalized example text.task and, can.

Overview

Seedance 2.5 Flash Seedance 2.5 height:maximumModel Capability,,.supported, image, video, audio etc. input video.Request Bodyand snake_case, with, Modelmodel fieldlocalized example text.

localized example text:
- ⚡ localized example text:ModelCapability,,
-🧠 localized example text:image, video, audio etc. reference asset
-⏱️ Duration:duration default -1, output Model, can 4~30 seconds
- 🔊 defaultaudio:generate_audio not when defaulttrue
- 🇨🇳 localized example text:asBase URL: https://mm-internal-cn.leonecloud.com ()and Seedance 2.5 ():

ItemSeedance 2.5Seedance 2.5 Flash
Reference imagelocalized example text30 images10 images
Reference videolocalized example text105
Reference audiolocalized example text10 localized example text5 localized example text
Output resolution480p / 720p / 1080p480p / 720p
(draft)supportedsupported
/ tasksupportedsupported
(real_person_mode)supportedlocalized example text (see belowDescription)
⚠️ Requestexceeds,resolution=1080p, or use when, endpoint return HTTP 400,.

1080p, or can task when,Seedance 2.5.


Authentication

All endpoints require a token in the request header for authentication:

Authorization: Bearer {YOUR_AUTH_TOKEN}

Failurereturned when applicable HTTP 401:```json
{
"error": {
"code": "AuthenticationError",
"message": "API Key no",
"type": "Unauthorized"
}
}


---

## model Values

`model` as**Required**field, as:| model | Description |
|-------|------|
| `seedance-2-5-flash` | 2.5 height,,, supported Duration|

localized example text`model` return HTTP 400 (`supported model: xxx`); not Model return HTTP 404 (`Model not: xxx`).

Seedance, Model`model` field, Request Body.Values[Seedance 2.5](/docs/seedance-2-5), [Seedance 2.0](/docs/seedance-2-0) etc..

---

## Defaultand value range| field | Default | value range |
|------|--------|---------|
| `ratio` | `adaptive` | `adaptive` / `16:9` / `9:16` / `1:1` / `4:3` / `3:4` / `21:9` |
| `duration` | `-1` (Duration)| 4 ~ 30 seconds, or`-1` |
| `resolution` | `720p` | `480p` / `720p` |
| `generate_audio` | `true` | `true` / `false` |
| `output_format` | `mp4` | `mp4` / `mov` |
| `bitrate_mode` | If omitted (etc.`standard`) | `standard` / `high` |
| `watermark` | `false` | `true` / `false` |

**asset**:Reference imageup to 10 images ( first frame / last frame in ), Reference videoup to 5, Reference audioup to 5.

### duration

- **Duration (default`-1`)**:output DurationModel.when token, create when 30 seconds, task after.
- **Duration**:4~ 30 seconds, can.

range return HTTP 400:`duration onlysupported 4~30 secondsor -1(Duration)`.

### resolution

onlysupported`480p` / `720p`, default `720p`.localized example text`1080p` or return HTTP 400:`resolution onlysupported 480p or 720p`.

---

## Supported Scenarios

### Scenario 1: Text-to-Video

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{
"type": "text",
"text": ",,,, in, with"
}
],
"ratio": "16:9",
"duration": 5,
"resolution": "720p",
"generate_audio": true
}'


### Scenario 2: Image-to-Video (First Frame)

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{
"type": "text",
"text": ",,,"
},
{
"type": "image_url",
"image_url": { "url": "https://example.com/portrait.jpg" },
"role": "first_frame"
}
],
"duration": 5,
"resolution": "720p"
}'


### Scenario 3: First/Last Frame to Video

first frame and last frame image, Model image video.first frame / last frame when output input asset,`ratio` localized example text.

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{
"type": "text",
"text": "number images image number images image,, and,"
},
{
"type": "image_url",
"image_url": { "url": "https://example.com/frame_start.jpg" },
"role": "first_frame"
},
{
"type": "image_url",
"image_url": { "url": "https://example.com/frame_end.jpg" },
"role": "last_frame"
}
],
"duration": 5,
"resolution": "720p"
}'


### Scenario4:image Reference-to-Video

 in Prompt in"Image 1", "Image 2" (up to 10 images, last frame in ).

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{
"type": "text",
"text": "[Image 1]T and[Image 2], in[image3], video"
},
{ "type": "image_url", "image_url": { "url": "https://example.com/boy.png" }, "role": "reference_image" },
{ "type": "image_url", "image_url": { "url": "https://example.com/dog.png" }, "role": "reference_image" },
{ "type": "image_url", "image_url": { "url": "https://example.com/grass.png" }, "role": "reference_image" }
],
"ratio": "16:9",
"duration": 5,
"resolution": "720p"
}'


### Scenario5:reference (image+ video + audio)

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{ "type": "text", "text": "Video 1, reference Image 1, audio reference Audio 1" },
{ "type": "image_url", "image_url": { "url": "https://example.com/person.jpg" }, "role": "reference_image" },
{ "type": "video_url", "video_url": { "url": "https://example.com/motion.mp4" }, "role": "reference_video" },
{ "type": "audio_url", "audio_url": { "url": "https://example.com/bgm.mp3" }, "role": "reference_audio" }
],
"omni_reference_task_type": "reference",
"resolution": "720p"
}'


### Scenario 6: Video Editing

`omni_reference_task_type=edit` mustlocalized example text`role=reference_video` Reference video, and will`ratio=adaptive` and`duration=-1` (input video).

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{ "type": "text", "text": "will Video 1 in the, as" },
{ "type": "video_url", "video_url": { "url": "https://example.com/house.mp4" }, "role": "reference_video" }
],
"omni_reference_task_type": "edit",
"resolution": "720p"
}'


### Scenario7:videolocalized example text`omni_reference_task_type=extend` mustReference video,`ratio=adaptive`, `duration` localized example text.

```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer your_auth_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-5-flash",
"content": [
{ "type": "text", "text": ",, as" },
{ "type": "video_url", "video_url": { "url": "https://example.com/clip.mp4" }, "role": "reference_video" }
],
"omni_reference_task_type": "extend",
"duration": 5,
"resolution": "720p"
}'


---

## Endpoint details

### 1. Create Task

**POST** `/api/v3/contents/generations/tasks`

**Content-Type**: `application/json`

#### Request Parameters

| Parameter | Type | Required | Description |
|-----|------|-----|------|
| model | string | Yes | localized example text`seedance-2-5-flash` |
| content | array | Yes |,[content Items](#content-Content item) |
| omni_reference_task_type | string | No | Task Type:`auto` / `reference` / `edit` / `extend`.If omittedwhen input asset,[Task Type](#Task Type-omni_reference_task_type) |
| ratio | string | No | Aspect ratio, default `adaptive`.Scenario will as`adaptive` |
| duration | int | No | videoDuration (seconds), 4~30 or`-1`, default `-1` |
| resolution | string | No | Output resolution:`480p` / `720p`, default `720p`.**supported`1080p`** |
| generate_audio | bool | No | audio, default`true` |
| output_format | string | No | output Format:`mp4`(default) / `mov` |
| bitrate_mode | string | No | Resolution output:`standard`(default, etc. If omitted) /`high`.`high` as,, file.return ParameterError|
| watermark | bool | No | watermark, default`false` |
| seed | int | No | random seed, localized example text.localized example text|
| return_last_frame | bool | No | return last-frame image|
| callback_url | string | No | Callback notification URL after the task is complete, Format[Callback Notification](#Callback Notification) |
| task_nickname | string | No | Task label for business tracking |
| real_person_mode | bool | No |, default`false`.use first, see belowDescription|
| frames | int | No |,.⚠️ Model first Parameter, will return ParameterError; Duration`duration` |
| camera_fixed | bool | No | Whether to fix the camera, localized example text.⚠️ Model first Parameter, will return ParameterError|
| priority | int | No |,|
| service_tier | string | No |,.Model supported`flex` ()|
| execution_expires_after | int | No | taskexecute when (seconds),|
| safety_identifier | string | No |,|

> **supported Parameter**:
> - `draft` () and content`draft_task` (): return HTTP 400.localized example text[Seedance 2.5](/docs/seedance-2-5).
>
> **Model first Parameter**:`frames`, `camera_fixed` will, return ParameterError.Duration`duration`.
>
> **Parameter**:`real_person_mode` Capability, returned when applicable HTTP 400.when, Capability, or supported[Seedance 2.5](/docs/seedance-2-5).
>
> localized example text「localized example text」field,, as Model.

#### content Items

| Type | field | Description |
|-----|------|------|
| text | `type`: "text", `text`: "Prompt" | **must**, videoPrompt (3-20000characters)|
| image_url | `type`: "image_url", `image_url`: {"url": "URL"}, `role`: see below | Reference image (first frame / last frame in up to 10 images, supported jpeg/png/webp/bmp/tiff/gif, Aspect ratio 0.4-2.5, dimensions 300-6000px, maximum 30MB)|
| video_url | `type`: "video_url", `video_url`: {"url": "URL"}, `role`: "reference_video" | Reference video (up to 5, mp4/mov, 480p/720p, 2-15 seconds, maximum 200MB, 24-60FPS) |
| audio_url | `type`: "audio_url", `audio_url`: {"url": "URL"}, `role`: "reference_audio" | Reference audio (up to 5, wav/mp3, 2-15 seconds, maximum 15MB)|

content must`text` TypeContent item as Prompt, return HTTP 400 (`content in must text Type Prompt`); `content` as return 400 (`content as`).in Prompt in"Image 1", "Image 2", "Video 1", "Audio 1" Location reference asset.input video when, and / image input.

> asset supported URL.use asset when, first asset Capability, asset will (, asset ).

#### role Values for image_url

| role localized example text| Description |
|---------|------|
| `reference_image` | Reference image |
| `first_frame` | first-frame image |
| `last_frame` | last-frame image |

#### Response Parameters

create Success return HTTP 200:| Parameter | Type | Description |
|-----|------|------|
| id | string | Task ID, used to query task status |

#### Response Example

```json

{
"id": "task_20261118170012_5e7z9r4b"
}


create Failure return HTTP Status Code,[Error Codes](#Error Codes):

```json

{
"error": {
"code": "InvalidParameter",
"message": "resolution onlysupported 480p or 720p",
"type": "BadRequest"
}
}


---

### 2. Query Task Status

**GET** `/api/v3/contents/generations/tasks/{id}`

#### Path Parameters

| Parameter | Type | Required | Description |
|-----|------|-----|------|
| id | string | Yes | Task ID (create endpoint return`id`) |

#### Response Parameters

| Parameter | Type | Description |
|-----|------|------|
| id | string | Task ID |
| model | string | Create Taskwhen`model` localized example text|
| status | string | Task Status:`running` (queuedand in as`running`)/ `succeeded` / `failed` |
| content.video_url | string | video URL (`succeeded` returned when applicable) |
| content.last_frame_url | string | last frame image URL (Request`return_last_frame` with returned when applicable)|
| error.code | string | Error Codes (`failed` returned when applicable) |
| error.message | string | Error(`failed` returned when applicable) |
| created_at | int | Created Time (Unix seconds) |
| updated_at | int | Updated Time (Unix seconds) |
| usage.completion_tokens | int | token|
| usage.prompt_tokens | int | token ( return when )|
| usage.total_tokens | int | token ( return when )|

return field with`id` / `model` / `status` / `created_at` / `updated_at`.`duration` / `frames_per_second` / `generate_audio` / `ratio` / `resolution` / `output_format` / `usage` / `content.last_frame_url` etc. fieldonly in with returned when applicable,「fieldcan in」Method.token in task complete after return.

#### Response Example

**processing**
```json

{
"id": "task_20261118170012_5e7z9r4b",
"model": "seedance-2-5-flash",
"status": "running",
"created_at": 1795036812,
"updated_at": 1795036818
}


**Success**
```json

{
"id": "task_20261118170012_5e7z9r4b",
"model": "seedance-2-5-flash",
"status": "succeeded",
"content": {
"video_url": "https://fc-gw-sh.oss-cn-shanghai.aliyuncs.com/videos/2026/11/18/output.mp4"
},
"duration": 5,
"ratio": "16:9",
"resolution": "720p",
"output_format": "mp4",
"usage": {
"completion_tokens": 108900,
"total_tokens": 108900
},
"created_at": 1795036812,
"updated_at": 1795036903
}


**Failure**
```json

{
"id": "task_20261118170012_5e7z9r4b",
"model": "seedance-2-5-flash",
"status": "failed",
"error": {
"code": "InternalServiceError",
"message": "Video GenerationFailure, localized example text"
},
"created_at": 1795036812,
"updated_at": 1795036880
}


**Task not found** (HTTP 404)
```json

{
"error": {
"code": "NotFound",
"message": "Task not found",
"type": "NotFound"
}
}


---

### 3. Query Tasklist

ConditionQuery Task, return task Status.

**GET** `/api/v3/contents/generations/tasks`

#### Query Parameter

| Parameter | Type | Required | Description |
|-----|------|-----|------|
| filter.task_ids | string[] | No | Task ID,, supported.Parameter:`filter.task_ids=id1&filter.task_ids=id2`.If omittedreturn first API Key tasklist|
| filter.status | string | No | Status:`queued` / `running` / `succeeded` / `failed`, in`queued` and`running` processing.If omittedStatus ( not will return list)|
| page_num | int | No |, default`1`, range `[1, 500]`, localized example text|
| page_size | int | No |, default`20`, range `[1, 500]`, localized example text|

> query first API Key task, no query task.`filter.model` and`filter.service_tier` can Request, will.

#### Response Parameters

| Parameter | Type | Description |
|-----|------|------|
| items | array | tasklist, and「2. Query Task Status」exactly identical|
| total | int | Condition task|

#### Request Example

GET /api/v3/contents/generations/tasks?filter.status=succeeded&page_num=1&page_size=20
Authorization: Bearer {API_KEY}


#### Response Example

```json

{
"items": [
{
"id": "task_20261118170012_5e7z9r4b",
"model": "seedance-2-5-flash",
"status": "succeeded",
"content": {
"video_url": "https://fc-gw-sh.oss-cn-shanghai.aliyuncs.com/videos/2026/11/18/output.mp4"
},
"duration": 5,
"resolution": "720p",
"created_at": 1795036812,
"updated_at": 1795036903
}
],
"total": 1
}


---

### 4. / task**supported / task**.task`DELETE /api/v3/contents/generations/tasks/{id}` return HTTP 400:```json
{
 "error": {
 "code": "CancelNotSupported",
 "message": "task supported",
 "type": "BadRequest"
 }
}

taskcomplete and.can taskSeedance 2.5.


Callback Notification

task complete (Success or Failure) when, if Create Task when providecallback_url, was provided when creating the task, the system sends a POST request to that URL.and query endpoint,.

Headers

Content-Type: application/json
X-Funcloud-Event: task.completed
X-Funcloud-Signature: {localized example text}

Body

{
 "event": "task.completed",
 "taskId": "task_20261118170012_5e7z9r4b",
 "status": "success",
 "result": ["https://fc-gw-sh.oss-cn-shanghai.aliyuncs.com/videos/output.mp4"],
 "errorMsg": "",
 "timestamp": "2026-11-18T17:01:43+08:00",
 "signature": "a1b2c3d4e5f6..."
}

Parameter Value Ranges

Resolution (resolution)

localized example textDescription
480plocalized example text
720pdefault, localized example text
supported1080p and4k, return HTTP 400.1080pSeedance 2.5.

Aspect ratio (ratio)

localized example textDescription
adaptive(default, input asset )
16:9landscape
9:16portrait
1:1square
4:3standard landscape
3:4standard portrait
21:9width

Output format (output_format)

localized example textDescription
mp4default, localized example text
movafter

Task Type (omni_reference_task_type)

If omittedwhen input asset:Reference video→ auto; / last frame→ last frame;→ reference.

localized example textDescriptionasset Requirementsratioduration
auto:Reference video when etc. Video EditingnoReference video whenadaptiveReference video when-1
reference/ Reference image / last frame Videonocan ( last frame whenadaptive)can
editVideo Editing:reference Video Generationmustlocalized example textrole=reference_videolocalized example textadaptivelocalized example text-1
extendvideolocalized example textmustlocalized example textrole=reference_videolocalized example textadaptivecan

localized example textadaptive when output input asset,ratio localized example text.localized example text-1 when output DurationModel, token.edit / extend Reference video when Request will (HTTP 400).localized example textauto / reference / edit / extend return 400.


Error Codes

ErrorHTTP Status Code anderror return:```json
{
"error": {
"code": "InvalidParameter",
"message": "Errorlocalized example text",
"type": "BadRequest"
}
}


| HTTP | error.code | error.type | localized example text|
|------|-----------|-----------|-------------|
| 400 | `InvalidParameter` | `BadRequest` | `model as`, `supported model: xxx`, `content as`, `content in must text Type Prompt`, `resolution onlysupported 480p or 720p`, `duration onlysupported 4~30 secondsor -1(Duration)`, `asset image exceeds 10 images`, `Reference videoexceeds 5`, `Reference audioexceeds 5`, `outputFormat onlysupported mp4 or mov`, `bitrateMode onlysupported standard / high`, `first Model supported (draft)` |
| 401 | `AuthenticationError` | `Unauthorized` | API Key invalid or missing |
| 402 | `InsufficientBalance` | `PaymentRequired` | Insufficient balance |
| 403 | `PermissionDenied` | `Forbidden` | no|
| 404 | `NotFound` | `NotFound` | Task not found; or`Model not: xxx` |
| 400 | `CancelNotSupported` | `BadRequest` | supported / task|
| 500 | `InternalServiceError` | `InternalServerError` | Internal server error, can|

recommendedHTTP Status Code ( can / Parameter / ),`error.code` localized example text.

with (Success and Failure)`X-Trace-Id`, Request.when provide and task`id`.

---

## Migrating from V2

| localized example text| V2 | V3 ()|
|------|----|-------------|
| create Path| `/api/v2/open/aigc/seedance2-5-flash` | localized example text`POST /api/v3/contents/generations/tasks`, Modellocalized example text`model` localized example text|
| query Path| `/api/v2/open/aigc/{taskId}` | `GET /api/v3/contents/generations/tasks/{id}` |
| fieldlocalized example text| camelCase (`generateAudio`) | snake_case (`generate_audio`) |
| create| `{code, msg, data}` localized example text| localized example text`{"id": "..."}` |
| query| localized example text+ `data` localized example text| return task|
| Errorlocalized example text| Error Codes| HTTP Status Code+ `{"error": {...}}` |
| `ratio` Default | `16:9` | `adaptive` |
| V3 localized example text| — | `omni_reference_task_type`, list query endpoint|

V2 endpointcan use, task and.fieldDescription[Seedance 2.5 Flash V2 endpointlocalized example text](/docs/seedance-2-5-flash-v2).

---

## Best Practices

### 1. Polling Strategy

- First 30 seconds:query every 3 seconds
- 30 seconds ~ 2 minutes:query every 5 seconds
- After 2 minutes:query every 10 seconds

### 2. Status Handling

localized example text`status`:`running` as processing (),`succeeded` localized example text`content.video_url`, `failed` localized example text`error.message`.

### 3. Processing Time Reference

- video generation:Usually 1~ 3 minutes
- image + video generation:Usually 1~ 3 minutes
- input (video / audio):Usually 2~ 4 minutes

### 4. Prompt Tips

- Prompt:3~ 20,000 characters
- Prompt = subject+,+,+ - can (,, etc. )
-"Image 1", "Image 2", "Video 1", "Audio 1" content in Location reference asset 
- generated result when, 
- with when, recommended image Modelfirst frame, Image-to-Video

---## FAQ

### Q1: Flash and Seedance 2.5 with?

**A**: Flash 2.5, and Capability,,; reference asset (image 10 images / video 5 / audio 5 ), Resolution 720p, supported and task,.

### Q2: If omitted `duration` will?

**A**: Duration`-1`, output Model, token, create when 30 seconds, after.can 4~ 30 seconds.

### Q3: 1080p will?

**A**: supported 1080p, Request in create (HTTP 400),.localized example text`480p` / `720p`, or[Seedance 2.5](/docs/seedance-2-5).

### Q4: query as`duration`, `resolution` field?

**A**: fieldonly in with returned when applicable, in with`id` / `model` / `status` / `created_at` / `updated_at`.localized example text「fieldcan in」Method.

### Q5: localized example text`model` will?

**A**: will.query`model` Create Task when.

---

## Task ID 

Optional,.after with API Key, V3 endpoint, V2 endpoint.

**supported**:after query, listendpoint return`model` as Model ID`doubao-seedance-2-5-flash-261115`.

**supported**:task `id` as Task ID (`task_` ), videodefault return.Task ID and[Seedance 2.5](/docs/seedance-2-5).

---

## Technical Support

If you have any questions, please contact our technical support team.
Updated 2026-11-27