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

# seedance-2.5-flash

> Create and query Seedance 2.5 Flash text, multimodal reference, editing, extension, and frame-guided video tasks.

Seedance 2.5 Flash uses one creation endpoint for five core video capabilities. Select a tab for the request shape you need. Use the returned task ID with the query tab to retrieve the result.

> [!NOTE]
>
> BytePlus ModelArk's upstream model version is `dreamina-seedance-2-5-flash-261115`; AnyFast maps it to `seedance-2.5-flash`. Seedance 2.5 Flash does not support Draft mode, so do not send a `draft` field.

> [tab] Text to video
>
> ## Create task
>
> `POST /v1/video/generations`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/video/generations \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "seedance-2.5-flash",
>     "callback_url": "https://example.com/webhooks/seedance",
>     "content": [
>       {
>         "type": "text",
>         "text": "A 20-second cinematic tracking shot through a miniature steampunk city at golden hour"
>       }
>     ],
>     "generate_audio": true,
>     "resolution": "720p",
>     "ratio": "16:9",
>     "duration": 20,
>     "output_format": "mp4"
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> AnyFast model ID. Use `seedance-2.5-flash`. For specific-content requests, select the `Direct` resource group and use `seedance-2.5-flash-nsfw`.
>
> **content** `object[]` *required*
>
> Input content. Text-to-video requires at least one text item.
>
> **content\[].type** `string` *required*
>
> Use `text` for the prompt item.
>
> **content\[].text** `string` *required*
>
> Prompt describing the subject, action, scene, visual style, camera movement, and audio intent.
>
> **generate\_audio** `boolean` (default: true)
>
> Generate synchronized dialogue, sound effects, and background audio. Set `false` for a silent video.
>
> **resolution** `string` (default: 720p)
>
> Output resolution. Supported values: `480p`, `720p`.
>
> **ratio** `string` (default: adaptive)
>
> Output ratio. Supported values: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `adaptive`.
>
> **duration** `integer` (default: -1)
>
> Output duration. Use `-1` for an automatically selected duration or choose an integer from 4 through 30.
>
> **tools** `object[]`
>
> Optional AnyFast gateway tools. When enabled for the project, set `tools[].type` to `web_search` to retrieve current information before text-to-video generation; BytePlus does not list this as a native Flash model capability.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "id": "asyntask_example_flash",
>   "task_id": "asyntask_example_flash",
>   "object": "video",
>   "model": "seedance-2.5-flash",
>   "status": "queued",
>   "progress": 0,
>   "created_at": 1794800238
> }
> ```
>
> **id** `string`
>
> Task ID used to query the result.
>
> **task\_id** `string`
>
> Task ID, identical to `id`.
>
> **object** `string`
>
> Returned object type. For this endpoint, `video`.
>
> **model** `string`
>
> AnyFast model ID used by the task.
>
> **status** `string`
>
> Initial task status. A newly accepted task is `queued`.
>
> **progress** `integer`
>
> Initial task progress percentage.
>
> **created\_at** `integer`
>
> Creation time as a Unix timestamp in seconds.

> [tab] Multimodal reference
>
> ## Create task
>
> `POST /v1/video/generations`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/video/generations \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "seedance-2.5-flash",
>     "omni_reference_task_type": "reference",
>     "content": [
>       {"type":"text","text":"@image1 performs the motion from @video1, paced to @audio1"},
>       {"type":"image_url","image_url":{"url":"https://example.com/character.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/music.mp3"},"role":"reference_audio"}
>     ],
>     "generate_audio": true,
>     "resolution": "720p",
>     "ratio": "16:9",
>     "duration": 15,
>     "output_format": "mp4"
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> AnyFast model ID. Supported values: `seedance-2.5-flash`, `seedance-2.5-flash-nsfw`.
>
> **omni\_reference\_task\_type** `string`
>
> Reference task type. Supported values: `auto`, `reference`, `edit`, `extend`. Use `reference` for this capability; `auto` lets the model infer the workflow from the media and prompt.
>
> **content** `object[]` *required*
>
> Text and reference media. The prompt is optional. Use `@image1`, `@video1`, and `@audio1` to refer to media by type and order. Flash supports up to 10 images, 5 videos, and 5 audio clips (20 media items total).
>
> **content\[].type** `string` *required*
>
> Content type: `text`, `image_url`, `video_url`, or `audio_url`.
>
> **content\[].text** `string`
>
> Prompt text for a `text` item.
>
> **content\[].image\_url.url** `string`
>
> Public image URL, Base64 data URI, or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].video\_url.url** `string`
>
> Public video URL or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].audio\_url.url** `string`
>
> Public audio URL, Base64 data URI, or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].role** `string` *required*
>
> Media role: `reference_image`, `reference_video`, or `reference_audio`.
>
> **generate\_audio** `boolean` (default: true)
>
> Generate synchronized audio; set `false` for a silent video.
>
> **resolution** `string` (default: 720p)
>
> Supported values: `480p`, `720p`.
>
> **ratio** `string` (default: adaptive)
>
> Supported values: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `adaptive`.
>
> **duration** `integer` (default: -1)
>
> Use `-1` or an integer from 4 through 30.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "id": "asyntask_example_flash",
>   "task_id": "asyntask_example_flash",
>   "object": "video",
>   "model": "seedance-2.5-flash",
>   "status": "queued",
>   "progress": 0,
>   "created_at": 1794800238
> }
> ```
>
> **id** `string`
>
> Task ID used to query the result.
>
> **task\_id** `string`
>
> Task ID, identical to `id`.
>
> **object** `string`
>
> Returned object type.
>
> **model** `string`
>
> AnyFast model ID.
>
> **status** `string`
>
> Initial task status.
>
> **progress** `integer`
>
> Initial task progress percentage.
>
> **created\_at** `integer`
>
> Creation Unix timestamp in seconds.

> [tab] Video editing
>
> ## Create task
>
> `POST /v1/video/generations`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/video/generations \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "seedance-2.5-flash",
>     "omni_reference_task_type": "edit",
>     "content": [
>       {"type":"text","text":"Edit @video1: remove every background pedestrian while preserving the main subject"},
>       {"type":"video_url","video_url":{"url":"https://example.com/source.mov"},"role":"reference_video"}
>     ],
>     "generate_audio": true,
>     "resolution": "720p",
>     "ratio": "adaptive",
>     "duration": -1,
>     "output_format": "mov"
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> Supported values: `seedance-2.5-flash`, `seedance-2.5-flash-nsfw`.
>
> **omni\_reference\_task\_type** `string`
>
> Reference task type. Use `edit` for video editing. Supported values: `auto`, `reference`, `edit`, `extend`.
>
> **content** `object[]` *required*
>
> Editing instruction and source media.
>
> **content\[].type** `string` *required*
>
> Use `text` for the instruction and `video_url` for the source.
>
> **content\[].text** `string` *required*
>
> Editing instruction. Refer to the source as `@video1`.
>
> **content\[].video\_url.url** `string` *required*
>
> Public source-video URL or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].role** `string` *required*
>
> Use `reference_video` for the source video.
>
> **generate\_audio** `boolean` (default: true)
>
> Generate synchronized audio; set `false` for a silent video.
>
> **resolution** `string` (default: 720p)
>
> Supported values: `480p`, `720p`.
>
> **ratio** `string` *required* (default: adaptive)
>
> Video editing only supports `adaptive`; the output follows the source ratio.
>
> **duration** `integer` *required* (default: -1)
>
> Video editing only supports `-1`; the output stays close to the source duration and can be up to 0.4 seconds shorter.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "id": "asyntask_example_flash",
>   "task_id": "asyntask_example_flash",
>   "object": "video",
>   "model": "seedance-2.5-flash",
>   "status": "queued",
>   "progress": 0,
>   "created_at": 1794800238
> }
> ```
>
> **id** `string`
>
> Task ID used to query the result.
>
> **task\_id** `string`
>
> Task ID, identical to `id`.
>
> **object** `string`
>
> Returned object type.
>
> **model** `string`
>
> AnyFast model ID.
>
> **status** `string`
>
> Initial task status.
>
> **progress** `integer`
>
> Initial task progress percentage.
>
> **created\_at** `integer`
>
> Creation Unix timestamp in seconds.

> [tab] Video extension
>
> ## Create task
>
> `POST /v1/video/generations`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/video/generations \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "seedance-2.5-flash",
>     "omni_reference_task_type": "extend",
>     "content": [
>       {"type":"text","text":"Extend @video1: the camera passes through the open window into a quiet gallery"},
>       {"type":"video_url","video_url":{"url":"https://example.com/source.mp4"},"role":"reference_video"}
>     ],
>     "generate_audio": true,
>     "resolution": "720p",
>     "ratio": "adaptive",
>     "duration": 11,
>     "output_format": "mov"
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> Supported values: `seedance-2.5-flash`, `seedance-2.5-flash-nsfw`.
>
> **omni\_reference\_task\_type** `string`
>
> Reference task type. Use `extend` for video extension. Supported values: `auto`, `reference`, `edit`, `extend`.
>
> **content** `object[]` *required*
>
> Extension instruction and reference media.
>
> **content\[].type** `string` *required*
>
> Use `text` for the instruction and `video_url` for video inputs.
>
> **content\[].text** `string` *required*
>
> Extension instruction. Identify the video to extend with `@video1`.
>
> **content\[].video\_url.url** `string` *required*
>
> Public video URL or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].role** `string` *required*
>
> Use `reference_video` for each video input.
>
> **generate\_audio** `boolean` (default: true)
>
> Generate synchronized audio; set `false` for a silent video.
>
> **resolution** `string` (default: 720p)
>
> Supported values: `480p`, `720p`.
>
> **ratio** `string` *required* (default: adaptive)
>
> Video extension only supports `adaptive`; the output follows the selected source ratio.
>
> **duration** `integer` (default: -1)
>
> Use `-1` or an integer from 4 through 30. An explicit duration must be longer than the source video.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "id": "asyntask_example_flash",
>   "task_id": "asyntask_example_flash",
>   "object": "video",
>   "model": "seedance-2.5-flash",
>   "status": "queued",
>   "progress": 0,
>   "created_at": 1794800238
> }
> ```
>
> **id** `string`
>
> Task ID used to query the result.
>
> **task\_id** `string`
>
> Task ID, identical to `id`.
>
> **object** `string`
>
> Returned object type.
>
> **model** `string`
>
> AnyFast model ID.
>
> **status** `string`
>
> Initial task status.
>
> **progress** `integer`
>
> Initial task progress percentage.
>
> **created\_at** `integer`
>
> Creation Unix timestamp in seconds.

> [tab] First and last frames
>
> ## Create task
>
> `POST /v1/video/generations`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/v1/video/generations \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "seedance-2.5-flash",
>     "content": [
>       {"type":"text","text":"The subject smiles at the camera while it makes a smooth 360-degree orbit"},
>       {"type":"image_url","image_url":{"url":"https://example.com/first.jpg"},"role":"first_frame"},
>       {"type":"image_url","image_url":{"url":"https://example.com/last.jpg"},"role":"last_frame"}
>     ],
>     "generate_audio": true,
>     "resolution": "720p",
>     "ratio": "adaptive",
>     "duration": 5,
>     "output_format": "mp4"
>   }'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> **Content-Type** `string` *required* (default: application/json)
>
> Data exchange format.
>
> ## Request body
>
> **model** `string` *required*
>
> Supported values: `seedance-2.5-flash`, `seedance-2.5-flash-nsfw`.
>
> **content** `object[]` *required*
>
> Prompt and one first frame, optionally followed by one last frame.
>
> **content\[].type** `string` *required*
>
> Use `text` for the prompt and `image_url` for each frame.
>
> **content\[].text** `string`
>
> Prompt describing motion and the transition between frames.
>
> **content\[].image\_url.url** `string` *required*
>
> Public image URL, Base64 data URI, or `asset://&lt;ASSET_ID&gt;` reference.
>
> **content\[].role** `string` *required*
>
> Use `first_frame` for the first image and `last_frame` for the optional second image.
>
> **generate\_audio** `boolean` (default: true)
>
> Generate synchronized audio; set `false` for a silent video.
>
> **resolution** `string` (default: 720p)
>
> Supported values: `480p`, `720p`.
>
> **ratio** `string` *required* (default: adaptive)
>
> Frame-guided generation only supports `adaptive`; the output follows the first frame.
>
> **duration** `integer` (default: -1)
>
> Use `-1` or an integer from 4 through 30.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "id": "asyntask_example_flash",
>   "task_id": "asyntask_example_flash",
>   "object": "video",
>   "model": "seedance-2.5-flash",
>   "status": "queued",
>   "progress": 0,
>   "created_at": 1794800238
> }
> ```
>
> **id** `string`
>
> Task ID used to query the result.
>
> **task\_id** `string`
>
> Task ID, identical to `id`.
>
> **object** `string`
>
> Returned object type.
>
> **model** `string`
>
> AnyFast model ID.
>
> **status** `string`
>
> Initial task status.
>
> **progress** `integer`
>
> Initial task progress percentage.
>
> **created\_at** `integer`
>
> Creation Unix timestamp in seconds.

> [tab] Query task
>
> ## Query task by ID
>
> `GET /v1/video/generations/{id}`
>
> ```bash cURL theme={null}
> curl --request GET \
>   --url https://www.anyfast.ai/v1/video/generations/asyntask_example_flash \
>   --header 'Authorization: Bearer YOUR_API_KEY'
> ```
>
> ## Request headers
>
> **Authorization** `string` *required*
>
> Bearer authentication in the form `Bearer YOUR_API_KEY`.
>
> ## Path parameters
>
> **id** `string` *required*
>
> Task ID returned by the create request.
>
> ## Task result fields
>
> ```json 200 theme={null}
> {
>   "code": "success",
>   "message": "",
>   "data": {
>     "task_id": "asyntask_example_flash",
>     "action": "textGenerate",
>     "status": "SUCCESS",
>     "result_url": "https://example.com/generated-video.mp4",
>     "submit_time": 1794800238,
>     "start_time": 1794800239,
>     "finish_time": 1794800312,
>     "progress": "100%",
>     "request_id": "20260807143000000000000example",
>     "data": {
>       "content": {
>         "video_url": "https://example.com/generated-video.mp4"
>       },
>       "duration": 4,
>       "generate_audio": false,
>       "ratio": "16:9",
>       "resolution": "480p",
>       "output_format": "mp4",
>       "status": "succeeded"
>     }
>   }
> }
> ```
>
> **code** `string`
>
> Response code.
>
> **message** `string`
>
> Response message.
>
> **data.task\_id** `string`
>
> Platform task ID.
>
> **data.action** `string`
>
> Generation action, such as `generate`, `referenceGenerate`, or `omniGenerate`.
>
> **data.status** `string`
>
> `NOT_START`, `QUEUED`, or `IN_PROGRESS` means keep polling. On `SUCCESS`, read `result_url`. On `FAILURE`, read `fail_reason`.
>
> **data.result\_url** `string`
>
> Generated video URL. It remains available for 24 hours and allows up to 100 downloads.
>
> **data.fail\_reason** `string`
>
> Failure reason when `status` is `FAILURE`.
>
> **data.submit\_time** `integer`
>
> Task submission Unix timestamp in seconds.
>
> **data.start\_time** `integer`
>
> Task start Unix timestamp in seconds.
>
> **data.finish\_time** `integer`
>
> Task completion Unix timestamp in seconds.
>
> **data.progress** `string`
>
> Task progress percentage.
>
> **data.request\_id** `string`
>
> Request trace ID.
>
> **data.data** `object`
>
> Provider result metadata.
>
> **data.data.content.video\_url** `string`
>
> Generated video URL in the provider result.
>
> **data.data.duration** `number`
>
> Generated duration in seconds.
>
> **data.data.generate\_audio** `boolean`
>
> Whether the result contains generated audio.
>
> **data.data.ratio** `string`
>
> Generated video aspect ratio.
>
> **data.data.resolution** `string`
>
> Generated video resolution.
>
> **data.data.output\_format** `string`
>
> Generated video container format: `mp4` or `mov`.
>
> **data.data.status** `string`
>
> Provider task status.

## Shared optional controls

These fields apply to every creation capability.

**callback\_url** `string`

Public HTTP(S) endpoint that receives a POST callback when the task reaches `SUCCESS` or `FAILURE`. The callback body matches the task result returned by `GET /v1/video/generations/{id}`.

### Callback payload examples

> [tab] Success
>
> ```json theme={null}
> {
>   "code": "success",
>   "message": "",
>   "data": {
>     "task_id": "asyntask_example_success",
>     "action": "textGenerate",
>     "status": "SUCCESS",
>     "result_url": "https://example.com/generated-video.mp4",
>     "submit_time": 1789573802,
>     "start_time": 1789573812,
>     "finish_time": 1789573951,
>     "progress": "100%",
>     "request_id": "20260916155001example",
>     "data": {
>       "id": "cgt-20260916235002-example",
>       "model": "dreamina-seedance-2-5-flash-261115",
>       "status": "succeeded",
>       "content": {
>         "video_url": "https://example.com/generated-video.mp4"
>       },
>       "duration": 4,
>       "resolution": "480p",
>       "ratio": "16:9",
>       "generate_audio": true,
>       "output_format": "mp4"
>     }
>   }
> }
> ```

> [tab] Failure
>
> ```json theme={null}
> {
>   "code": "success",
>   "message": "",
>   "data": {
>     "task_id": "asyntask_example_failure",
>     "action": "textGenerate",
>     "status": "FAILURE",
>     "fail_reason": "task failed",
>     "submit_time": 1789574546,
>     "start_time": 1789574551,
>     "finish_time": 1789574663,
>     "progress": "100%",
>     "request_id": "20260916160226example",
>     "data": {
>       "id": "cgt-20260917000226-example",
>       "model": "dreamina-seedance-2-5-flash-261115",
>       "status": "failed",
>       "error": {
>         "code": "OutputVideoSensitiveContentDetected.PolicyViolation",
>         "message": "The output video may be related to copyright restrictions."
>       }
>     }
>   }
> }
> ```

**execution\_expires\_after** `integer` (default: 172800)

Maximum queued or running lifetime in seconds before the task expires. Valid range: `3600`–`259200` seconds.

**priority** `integer` (default: 0)

Task execution priority; valid range `0`–`9`.

**safety\_identifier** `string`

Stable, unique English end-user identifier used for safety tracing; maximum 64 characters.

**seed** `integer` (default: -1)

Random seed. Use `-1` to select a random seed.

**service\_tier** `string` (default: default)

Use `default`. BytePlus does not currently support `flex` for Seedance 2.5 series models.

**output\_format** `string` (default: mp4)

Output video container format. Supported values: `mp4`, `mov`. Use the exact field name `output_format`; `out_format` is not supported and may be ignored.

**watermark** `boolean` (default: false)

Add an AI-generated watermark to the lower-right corner.

**return\_last\_frame** `boolean` (default: false)

Return the generated video's final frame as an image.

## Input limits

### Images

* Accepted inputs: public URL, Base64 data URI, or asset ID.
* Formats: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF.
* Width-to-height ratio: 0.4–2.5. Each side: 300–6,000 px. Each image must be smaller than 30 MB.
* Supply one image for first-frame generation, two for first-and-last-frame generation, or 1–10 reference images.

### Videos

* Accepted inputs: public URL or asset ID. Containers: MP4 or MOV. Video codecs: H.264/AVC or H.265/HEVC. Audio codecs: AAC, MP3, and PCM for MOV.
* Input resolution on the current AnyFast route: 480p or 720p. BytePlus's upstream asset requirements also list 1080p and 4K; verify the AnyFast route before sending those inputs. Frame rate: 24–60 FPS. Width-to-height ratio: 0.4–2.5. Each side: 300–6,000 px. Pixels per frame: 409,600–8,295,044. Maximum file size: 200 MB.
* Each video must be 2–30 seconds for non-editing tasks and 4–30 seconds for editing. Supply up to 5 reference videos with no more than 30 seconds total.

### Audio

* Accepted inputs: public URL, Base64 data URI, or asset ID. Formats: WAV or MP3.
* Each clip must be 2–30 seconds and no larger than 15 MB. Supply up to 5 clips with no more than 30 seconds total.

> [!WARNING]
>
> The complete request body must not exceed 64 MB. Avoid Base64 for large files. Task records remain queryable for 7 days; generated video URLs remain available for 24 hours and allow up to 100 downloads.

Sources: [BytePlus Seedance 2.5 series](https://docs.byteplus.com/en/docs/modelark/seedance-2-5), [Seedance 2.5 prompt guide](https://docs.byteplus.com/en/docs/modelark/seedance-2-5-prompt-guide?redirect=1), [create video generation task API](https://docs.volcengine.com/docs/82379/1520757?lang=zh), and [Volcengine model pricing](https://docs.volcengine.com/docs/ark/model-pricing?lang=zh).


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