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

# Use Dreamina Seedance 2.5 Flash 261115 with Comfy Router

> Call byteplus/dreamina-seedance-2-5-flash-261115 through Comfy Router: endpoint, request shape and the response Router returns.

API Reference for `byteplus/dreamina-seedance-2-5-flash-261115`, served by Comfy Router from BytePlus.

**Input:** Text, Image, Video, Audio · **Output:** Video + Audio

## Quick start

Create a key in [your Comfy workspace](https://platform.comfy.org/profile/api-keys?onboarding=router) and export it as `COMFY_API_KEY`. The Python and TypeScript snippets use the Comfy SDKs (`pip install comfy-sdk` and `npm install @comfyorg/sdk`); the cURL snippet is the same call over raw HTTP.

**Model ID:** `byteplus/dreamina-seedance-2-5-flash-261115`

**Endpoint:** `POST https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115`

> [tab] Wait for the result
>
> ```python Python theme={null}
> from comfy_sdk import Comfy
>
> # Reads COMFY_API_KEY from the environment.
> # The SDK automatically creates an idempotency key and reuses it for automatic retries.
> with Comfy() as client:
>     result = client.models.run(
>         "byteplus/dreamina-seedance-2-5-flash-261115",
>         {
>             "content": [
>                 {
>                     "text": "A red fox trotting through a snowy pine forest",
>                     "type": "text",
>                 },
>             ],
>             "duration": 5,
>             "ratio": "16:9",
>             "resolution": "720p",
>         },
>     )
>
> print(result)
> ```
>
> ```typescript TypeScript theme={null}
> import { comfy } from "@comfyorg/sdk";
>
> // Reads COMFY_API_KEY from the environment.
> // The SDK automatically creates an idempotency key and reuses it for automatic retries.
> const { data } = await comfy.models.run("byteplus/dreamina-seedance-2-5-flash-261115", {
>   content: [
>     {
>       text: "A red fox trotting through a snowy pine forest",
>       type: "text",
>     },
>   ],
>   duration: 5,
>   ratio: "16:9",
>   resolution: "720p",
> });
>
> console.log(data);
> ```
>
> ```bash cURL theme={null}
> curl https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115 \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"A red fox trotting through a snowy pine forest\",\"type\":\"text\"}], \"duration\": 5, \"ratio\": \"16:9\", \"resolution\": \"720p\"}"
> ```

> [tab] Queue and collect later
>
> The same body, sent to `POST https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115/requests`. Router answers `201` with a `request_id` as soon as the run is admitted, and the result is collected once it is ready, from this process or another one. [Queued delivery](https://docs.comfy.org/development/comfy-router/queue.md) walks through status, cancellation and collection.
>
> ```python Python theme={null}
> import asyncio
> from comfy_sdk import AsyncComfy
>
> # Reads COMFY_API_KEY from the environment.
> # Each submit() call mints its own Idempotency-Key and reuses it for automatic retries.
> async def main():
>     async with AsyncComfy() as client:
>         handle = await client.models.submit(
>             "byteplus/dreamina-seedance-2-5-flash-261115",
>             {
>                 "content": [
>                     {
>                         "text": "A red fox trotting through a snowy pine forest",
>                         "type": "text",
>                     },
>                 ],
>                 "duration": 5,
>                 "ratio": "16:9",
>                 "resolution": "720p",
>             },
>         )
>         print("request_id:", handle.request_id)  # with the model ID, all another process needs
>
>         # Poll until the request completes, waiting the Retry-After the server names.
>         async for update in handle.iter_events():
>             print(update.status, update.queue_position)
>
>         # The provider's own payload, the same value models.run() returns.
>         # A request that failed or was cancelled raises the typed Router error here.
>         result = await handle.get()
>
>     print(result)
>
> asyncio.run(main())
> ```
>
> ```typescript TypeScript theme={null}
> import { comfy } from "@comfyorg/sdk";
>
> // Reads COMFY_API_KEY from the environment.
> // Each submit() call mints its own Idempotency-Key and reuses it for automatic retries.
> const handle = await comfy.models.submit("byteplus/dreamina-seedance-2-5-flash-261115", {
>   content: [
>     {
>       text: "A red fox trotting through a snowy pine forest",
>       type: "text",
>     },
>   ],
>   duration: 5,
>   ratio: "16:9",
>   resolution: "720p",
> });
> console.log("requestId:", handle.requestId); // with the model ID, all another process needs
>
> // Poll until the request completes, waiting the Retry-After the server names.
> for await (const update of handle.events()) {
>   console.log(update.status, update.queuePosition);
> }
>
> // The same result models.run() returns. A request that failed or was cancelled rejects here.
> const result = await handle.get();
>
> console.log(result.data);
> ```
>
> ```bash cURL theme={null}
> # 1. Submit. Router answers 201 with request_id, status_url, response_url and cancel_url.
> curl https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115/requests \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"A red fox trotting through a snowy pine forest\",\"type\":\"text\"}], \"duration\": 5, \"ratio\": \"16:9\", \"resolution\": \"720p\"}"
>
> # 2. Poll until status is COMPLETED, waiting the Retry-After seconds each response names.
> REQUEST_ID="<request_id from the 201 body>"
> curl -i https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115/requests/$REQUEST_ID/status \
>   -H "X-API-Key: $COMFY_API_KEY"
>
> # 3. Collect. 200 with the model's native output, 202 with the status body while it is still running.
> curl https://api.comfy.org/v2/models/byteplus/dreamina-seedance-2-5-flash-261115/requests/$REQUEST_ID \
>   -H "X-API-Key: $COMFY_API_KEY"
> ```

## Schema

### Input

**callback\_url** `string (uri)`

Ignored. Accepted for compatibility with the BytePlus request shape, but removed before the task is submitted, so no callback is ever sent; poll the task status route for the result instead.

Format: `uri`

**content** `object[]` *required*

The input content for the model to generate a video

**content\[].audio\_url** `object`

Input audio object. Only Seedance 2.5, 2.0, 2.0 fast & 2.0 mini support audio input. Seedance 2.0, 2.0 fast & 2.0 mini cannot use audio alone - they must include at least 1 image or video; Seedance 2.5 supports audio-only input.

**content\[].audio\_url.url** `string` *required*

Audio URL, Base64 encoding, or Asset ID.
Audio URL: Public URL of the audio (wav, mp3).
Base64: Format data:audio/\<format>;base64,\<content>
Asset ID: Format asset://\<ASSET\_ID>

**content\[].draft\_task** `object`

Seedance 2.5 only. The Draft task to render as the final video. It must be the only content item.
The final video reuses the Draft task's prompt, input assets, duration, ratio, seed, generate\_audio and omni\_reference\_task\_type; do not send them again. Set resolution on this request for the final's output tier, including 4k; when it is omitted the final is 1080p.

**content\[].draft\_task.id** `string` *required*

The task ID returned when the Draft video was created with `draft` set to true.

**content\[].image\_url** `object`

**content\[].image\_url.url** `string` *required*

Image content for image-to-video generation (when type is "image\_url")
Image URL: Make sure that the image URL is accessible.
Base64-encoded content: Format must be data:image/\<format>;base64,\<content>
Asset ID: Format asset://\<ASSET\_ID>

**content\[].role** `string`

The role/position of the content item.
For images: first\_frame, last\_frame, or reference\_image.
For videos: reference\_video (Seedance 2.5, 2.0, 2.0 fast & 2.0 mini only).
For audio: reference\_audio (Seedance 2.5, 2.0, 2.0 fast & 2.0 mini only).

Possible values: `first_frame`, `last_frame`, `reference_image`, `reference_video`, `reference_audio`

**content\[].text** `string`

The input text information for the model. Includes text prompt and optional parameters.

Text prompt (required): Description of the video to be generated using Chinese and English characters.

Parameters (optional): Add --\[parameters] after the text prompt to control video specifications:

* \--resolution (--rs): 480p, 720p, 1080p (default: 720p)
* \--ratio (--rt): 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21, adaptive (default: 16:9 or adaptive)
* \--duration (--dur): 3-12 seconds (default: 5)
* \--framepersecond (--fps): 24 (default: 24)
* \--watermark (--wm): true/false (default: false)
* \--seed (--seed): -1 to 2^32-1 (default: -1)
* \--camerafixed (--cf): true/false (default: false)

Example: "A beautiful landscape --ratio 16:9 --resolution 720p --duration 5"

Comfy-side guardrail, not a BytePlus constraint. BytePlus publishes no
text-length limit and accepted 40,000 characters under test (2026-09-17).
It counts characters, not bytes, so a multi-byte prompt may be several
times this size on the wire. It bounds this one field, not the request:
`content` is an array, and the per-request body limit is what bounds the
whole document. Comfy Router (/v2/models/byteplus/\{model}) is the surface
that enforces it; on a direct v1 /proxy call BytePlus's own validator
answers instead. Set far above real traffic so it never adjudicates a
genuine prompt — raise it if a caller needs more.

**content\[].type** `string` *required*

The type of the input content

Possible values: `text`, `image_url`, `video_url`, `audio_url`, `draft_task`

**content\[].video\_url** `object`

Input video object. Only Seedance 2.5, 2.0, 2.0 fast & 2.0 mini support video input.

**content\[].video\_url.url** `string` *required*

Video URL or Asset ID.
Video URL: Public URL of the video (mp4, mov).
Asset ID: Format asset://\<ASSET\_ID>

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

Seedance 2.5 only. Generates a 480p Draft video; resolution must be 480p.
Pass the returned task ID in a `draft_task` content item to render the final video. That request sets the final's resolution, including 4k; when resolution is omitted the final is 1080p. The Draft task ID stays valid for 7 days.

**duration** `integer`

Video duration in seconds. Seedance 2.5 Flash: \[4,30] or -1 (auto).

Possible values: `-1`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `29`, `30`

**execution\_expires\_after** `integer`

Task timeout threshold in seconds. Default 172800 (48h). Range: \[3600, 259200].

Range: `3600` to `259200`

**generate\_audio** `boolean` (default: true)

Supported by Seedance 2.5, 2.0, 2.0 fast, and 2.0 mini. Whether the generated video includes audio synchronized with the visuals.
true: The model outputs a video with synchronized audio.
false: The model outputs a silent video.
On models that support it, the generated audio track is content-checked by the provider separately from the video; a refusal there is reported as `content_policy_violation` and, because the audio differs each run, can be intermittent for an input the provider otherwise accepts. Send `false` for a silent video if that happens; this helps only when the audio was the refused modality, which a synchronous Router response names as `refusal_subject: output_audio` (a queued request does not identify it yet). A Seedance 2.5 final render inherits `generate_audio` from its Draft task, so recreate the Draft with `false` instead.

**model** `string`

The ID of the model to call. Supported models: seedance-1-0-pro-250528, seedance-1-0-pro-fast-251015, dreamina-seedance-2-0-260128, dreamina-seedance-2-0-fast-260128, dreamina-seedance-2-0-mini and dreamina-seedance-2-5-260628. A direct v1 call to POST /proxy/byteplus/api/v3/contents/generations/tasks MUST supply it — the proxy refuses any other value, and an omitted one, with a 400. It is NOT in this schema's `required` list because Comfy Router fills it from the `{model}` path segment of /v2/models/byteplus/\{model}, so a Router caller omits it.

**omni\_reference\_task\_type** `string`

Seedance 2.5 only. The task the reference media is used for. Omitted means auto: the model infers the task from the prompt and the reference media, and a setting that conflicts with its reading (such as `duration` or `ratio` on what it reads as an edit) is resolved only after generation has started, which is billed.
reference: Generates a new video of the requested `duration`, guided by the reference images, videos and audio.
edit: Changes the connected reference video. The output keeps the source clip's own length and aspect ratio, so send `duration: -1` and omit `ratio` (or send `adaptive`).
extend: Continues the reference video. The output is only the newly generated segment, of the requested `duration`; its aspect ratio follows the clip.
An explicit value is validated by the provider at submit (`InvalidParameter.TaskTypeConstraint` / `TaskTypeMismatch`), so a value that does not fit the request fails before generation starts and is not billed; auto has no such check. That check runs on the native BytePlus leg only: an alternate provider leg (on fallback, or picked with `model_provider`) has no task-type field, drops the value, and that provider infers the task itself, as with auto. The drop is disclosed in `X-Comfy-Router-Dropped-Params`, on the synchronous run route's response and on the queued submit's `201`. The queued route has no fallback, so it reaches an alternate leg only through `model_provider`.

Possible values: `reference`, `edit`, `extend`

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

Seedance 2.5 only. Container format of the output video.
mp4: General-purpose container (H.264/AAC, yuv420p) with broad compatibility and smaller file size.
mov: Professional container (H.264 High 4:4:4 Predictive/PCM, yuv444p) with high color precision, suited for post-production; larger file size.

Possible values: `mp4`, `mov`

**ratio** `string`

Aspect ratio of the generated video. Seedance 2.0, 2.0 fast & 2.0 mini default: adaptive.
Seedance 2.5 first-frame / first-last-frame generation: the output follows the first frame's aspect ratio, so only `adaptive` (or omitting the field) is accepted; a concrete ratio is refused with a 400 before dispatch. Seedance 2.0 accepts a concrete ratio in those modes.

Possible values: `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `21:9`, `9:21`, `adaptive`

**resolution** `string`

Video resolution. Seedance 2.5 Flash: 480p or 720p (default 720p).

Possible values: `480p`, `720p`

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

Whether to return the last frame image of the generated video.
true: Returns the last frame image of the generated video. After setting this parameter to true, you can obtain the last frame image by calling the Querying the information about a video generation task. The last frame image is in PNG format, with its pixel width and height consistent with those of the generated video, and it contains no watermarks. Using this parameter allows the generation of multiple consecutive videos: the last frame of the previously generated video is used as the first frame of the next video task, enabling quick generation of multiple consecutive videos.
false: Does not return the last frame image of the generated video.

**seed** `integer`

Seed integer for controlling randomness. Range: \[-1, 2^32-1]. -1 uses a random seed.

Range: `-1` to `4294967295`

**service\_tier** `string`

Service tier for processing. Seedance 2.5, 2.0 & 2.0 fast do not support flex (offline inference).

Possible values: `default`, `flex`

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

Whether the generated video includes a watermark.

Generated from the schema Router serves at `GET /v2/models/byteplus/dreamina-seedance-2-5-flash-261115/openapi.json`, the same document it validates a call against before the request reaches the provider.

### Output

**content** `object`

The output after the video generation task is completed, which contains the download URL of the output video and, when BytePlus returns one, the download URL of its last frame. Both `video_url` and `last_frame_url` are RE-HOSTED onto Comfy storage; every other field here is BytePlus's own. Nullable - BytePlus clears the URLs 24 hours after the task, and a succeeded document polled after that can carry `content` absent or null.

**content.last\_frame\_url** `string`

Download URL for the last frame of the generated video, returned when the request set `return_last_frame`. Do not infer the image format from this URL: BytePlus documents the last frame as PNG on the request side, Router re-hosts whatever bytes it is served and types them from the upstream Content-Type or a content sniff, and `image/jpeg` is only the last-resort fallback when both fail. Router re-hosts the last frame onto Comfy storage and rewrites this field, so it is normally a Comfy-signed URL valid for up to 24 hours - signed for 24 hours when minted and replayed from a 23-hour memo, so a later poll can hand back one with as little as an hour left. When the re-host could not be performed the field keeps BytePlus's own URL instead, which BytePlus clears 24 hours after the task. Either way the link expires, so download the frame rather than storing the URL.

**content.output\_format** `string`

Container format of the generated video (mp4 or mov), when BytePlus nests it inside `content`. Seedance models more commonly return it as a TOP-LEVEL sibling of `content` - see the top-level `output_format` field - and Router reads whichever of the two is present.

**content.upstream\_expires\_at** `string (date-time)`

RFC 3339 time the upstream URLs stop working: the earliest signing time plus validity the URLs themselves carry, never later than the task's `updated_at` plus 24 hours (BytePlus's documented URL life) when `updated_at` is present; otherwise the task's `updated_at` plus 24 hours. Present only when `upstream_video_url` or `upstream_last_frame_url` is, and omitted when neither source gives a time. Unrelated to the lifetime of the re-hosted `video_url` / `last_frame_url`.

Format: `date-time`

**content.upstream\_last\_frame\_url** `string`

BytePlus's own download URL for the last frame, returned byte for byte beside the re-hosted `last_frame_url` on the same terms as `upstream_video_url`: opted-in workspaces only, Seedance 2.x only, absent once BytePlus clears it, and a bearer credential until `upstream_expires_at`.

**content.upstream\_video\_url** `string`

BytePlus's own download URL for the output video, returned byte for byte beside the re-hosted `video_url`. Present ONLY for Seedance 2.x tasks polled by a workspace Comfy has opted in server-side (there is no request parameter); absent for everyone else, including a credential that resolves to no workspace (such as a legacy API key not scoped to one), and absent once BytePlus clears its URLs 24 hours after generation. It is a presigned object-storage URL and therefore a bearer credential: anyone holding it can download the video until it expires, so treat it like a secret. It expires at `upstream_expires_at`, and on Seedance 2.5 BytePlus caps it at 100 downloads, one of which Router's own re-host consumes.

**content.video\_url** `string`

Download URL for the output video. Router re-hosts the video onto Comfy storage and rewrites this field, so it is normally a Comfy-signed URL valid for up to 24 hours - signed for 24 hours when minted and replayed from a 23-hour memo, so a later poll can hand back one with as little as an hour left. When the re-host could not be performed the field keeps BytePlus's own URL instead, which BytePlus clears 24 hours after the task and caps at 100 downloads on some models. Either way the link expires, so download the video rather than storing the URL.

**created\_at** `integer`

The time when the task was created. The value is a UNIX timestamp in seconds.

**duration** `number`

The duration of the generated video in seconds. Declared as a number rather than an integer because BytePlus is not consistent about it - video tasks have been observed returning whole seconds and sibling BytePlus surfaces report fractional durations - so a client must not assume an integral value. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.

**error** `object`

The error information. If the task succeeds, null is returned. If the task fails, the error information is returned.

**error.code** `string`

Upstream ModelArk error code. SensitiveContentDetected, InputTextSensitiveContentDetected, InputImageSensitiveContentDetected, InputVideoSensitiveContentDetected, InputAudioSensitiveContentDetected, OutputTextSensitiveContentDetected, OutputImageSensitiveContentDetected, OutputVideoSensitiveContentDetected and OutputAudioSensitiveContentDetected identify content-policy refusals. A family may have a dot-separated reason, such as InputImageSensitiveContentDetected.PrivacyInformation, OutputVideoSensitiveContentDetected.PolicyViolation or OutputImageSensitiveContentDetected.DeepFake. This is an open string, not an enum: other codes describe validation and provider failures. Router recognizes policy families in HTTP 400 error envelopes and HTTP 200 failed-task responses without overriding transport failures.

**error.message** `string`

The error message

**id** `string`

The ID of the video generation task

**model** `string`

The name and version of the model used by the task

**output\_format** `string`

Container format of the generated video (mp4 or mov), returned at the TOP LEVEL as a sibling of `content` - this is where the Seedance video task query returns it. BytePlus's own field, forwarded unchanged.

**resolution** `string`

The resolution of the generated video, for example `1080p`. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.

**seed** `integer`

The generation seed actually used for the task. BytePlus's own field, returned on succeeded video tasks and forwarded unchanged.

Format: `int64`

**status** `string`

The state of the task

Possible values: `queued`, `running`, `cancelled`, `succeeded`, `failed`, `expired`

**updated\_at** `integer`

The time when the task was last updated. The value is a UNIX timestamp in seconds.

**usage** `object`

The token usage for the request

**usage.completion\_tokens** `integer`

The number of tokens generated by the model

**usage.total\_tokens** `integer`

For the video generation model, the number of input tokens is not calculated and defaults to 0. Therefore, total\_tokens = completion\_tokens.

## Examples

### Input

```json theme={null}
{
  "content": [
    {
      "text": "A red fox trotting through a snowy pine forest",
      "type": "text"
    }
  ],
  "duration": 5,
  "ratio": "16:9",
  "resolution": "720p"
}
```

### Output

```json theme={null}
{
  "content": {
    "last_frame_url": "https://example.invalid/byteplus/seedance-1-0-pro-250528/last-frame",
    "video_url": "https://example.invalid/byteplus/seedance-1-0-pro-250528/generated.mp4"
  },
  "created_at": 1767225600,
  "duration": 5,
  "error": null,
  "id": "3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60",
  "model": "dreamina-seedance-2-5-flash-261115",
  "output_format": "mp4",
  "resolution": "1080p",
  "seed": 1234567890123,
  "status": "succeeded",
  "updated_at": 1767225730
}
```

## Before you ship

The SDKs create an `Idempotency-Key` and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes.

When a request fails, Router sends an `X-Comfy-Error-Type` response header explaining why. A `422` means Router rejected the input before calling the provider, and a `413` means the request body was larger than Router accepts. Download generated assets promptly because [result URLs can expire](https://docs.comfy.org/development/comfy-router/reference.md#result-assets).

Any size limit named in a field description above is the provider's own bound on that field, quoted from the provider's specification. Router applies a separate cap to the whole request body, which base64-encoded media counts against: see [request body size](https://docs.comfy.org/development/comfy-router/limitations.md#request-bodies-are-capped).

This page documents one partner model called through Comfy Router. The same `comfy-sdk` / `@comfyorg/sdk` package also ships a second client, for running a whole ComfyUI workflow graph on Comfy Cloud: `Comfy(api_key=...)` / `new Comfy({ apiKey })`, with `client.workflows`, `client.assets` and `client.jobs`. See [Comfy SDKs](https://docs.comfy.org/development/api-development/sdks.md).

> [card] [Headers](https://docs.comfy.org/development/comfy-router/headers.md)
>
> Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.

> [card] [Using the Router API](https://docs.comfy.org/development/comfy-router/api.md)
>
> Model discovery, validation errors, retries, and billing.

> [card] [Limitations](https://docs.comfy.org/development/comfy-router/limitations.md)
>
> What Router does not do today, and what to use instead.


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