> ## 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 Seed Audio 1.5 261128 with Comfy Router

> Call byteplus/seed-audio-1-5-261128 through Comfy Router: endpoint, request shape and the response Router returns.

API Reference for `byteplus/seed-audio-1-5-261128`, served by Comfy Router from BytePlus.

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

## 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/seed-audio-1-5-261128`

**Endpoint:** `POST https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128`

> [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/seed-audio-1-5-261128",
>         {
>             "content": [
>                 {
>                     "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
>                     "type": "text",
>                 },
>             ],
>             "output_format": "mp3",
>         },
>     )
>
> 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/seed-audio-1-5-261128", {
>   content: [
>     {
>       text: "Read with a calm English voice: 'Hello from Comfy Router.'",
>       type: "text",
>     },
>   ],
>   output_format: "mp3",
> });
>
> console.log(data);
> ```
>
> ```bash cURL theme={null}
> curl https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128 \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"Read with a calm English voice: 'Hello from Comfy Router.'\",\"type\":\"text\"}], \"output_format\": \"mp3\"}"
> ```

> [tab] Queue and collect later
>
> The same body, sent to `POST https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128/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/seed-audio-1-5-261128",
>             {
>                 "content": [
>                     {
>                         "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
>                         "type": "text",
>                     },
>                 ],
>                 "output_format": "mp3",
>             },
>         )
>         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/seed-audio-1-5-261128", {
>   content: [
>     {
>       text: "Read with a calm English voice: 'Hello from Comfy Router.'",
>       type: "text",
>     },
>   ],
>   output_format: "mp3",
> });
> 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/seed-audio-1-5-261128/requests \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"Read with a calm English voice: 'Hello from Comfy Router.'\",\"type\":\"text\"}], \"output_format\": \"mp3\"}"
>
> # 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/seed-audio-1-5-261128/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/seed-audio-1-5-261128/requests/$REQUEST_ID \
>   -H "X-API-Key: $COMFY_API_KEY"
> ```

## Schema

### Input

**audio\_config** `object`

**audio\_config.loudness\_rate** `integer`

Volume. 100 is 2x, -50 is 0.5x. Default 0.

Range: `-50` to `100`

**audio\_config.pitch\_rate** `integer`

Pitch. Default 0.

Range: `-12` to `12`

**audio\_config.sample\_rate** `integer`

8000, 16000, 24000, 32000, 44100 (default) or 48000. ogg\_opus is 48000 only.

**audio\_config.speech\_rate** `integer`

Speed. 100 is 2x, -50 is 0.5x. Default 0.

Range: `-50` to `100`

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

The inputs. The roles select the mode. Text to audio: one `text` item, and 0 to 6 `audio_url` items with role `reference_audio` to set the voice, or one `image_url` item with role `reference_image` (an image cannot be combined with audio or video). Video dubbing: a `text` item, one `video_url` with role `reference_video`, and optional `reference_audio` items. Video translation: one `video_url` with role `dubbing_video` and no text. Stem separation: a `text` item and one `audio_url` with role `separate_audio`. Roles from two modes cannot be mixed.

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

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

A public http(s) URL, or a base64 data URL for a small file only: the whole request is limited to 64 MB, so send large audio and video by URL. Reference audio is wav or mp3, 2 to 30 seconds, at most 15 MB, and at most 180 seconds over all clips. Audio to separate is 2 to 360 seconds and at most 90 MB. Video is mp4 or mov, 4 to 360 seconds, 480p to 1080p, with an audio track. An image is jpeg, png, webp, bmp, tiff, gif, heic or heif, 300 to 6000 px per side, aspect ratio 0.4 to 2.5, under 10 MB.

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

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

A public http(s) URL, or a base64 data URL for a small file only: the whole request is limited to 64 MB, so send large audio and video by URL. Reference audio is wav or mp3, 2 to 30 seconds, at most 15 MB, and at most 180 seconds over all clips. Audio to separate is 2 to 360 seconds and at most 90 MB. Video is mp4 or mov, 4 to 360 seconds, 480p to 1080p, with an audio track. An image is jpeg, png, webp, bmp, tiff, gif, heic or heif, 300 to 6000 px per side, aspect ratio 0.4 to 2.5, under 10 MB.

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

reference\_audio, separate\_audio, reference\_video, dubbing\_video or reference\_image.

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

The prompt. Give the full lines to speak, the voice, emotion, pace and any music or sound effects. Video translation takes no text.

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

text, audio\_url or video\_url.

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

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

A public http(s) URL, or a base64 data URL for a small file only: the whole request is limited to 64 MB, so send large audio and video by URL. Reference audio is wav or mp3, 2 to 30 seconds, at most 15 MB, and at most 180 seconds over all clips. Audio to separate is 2 to 360 seconds and at most 90 MB. Video is mp4 or mov, 4 to 360 seconds, 480p to 1080p, with an audio track. An image is jpeg, png, webp, bmp, tiff, gif, heic or heif, 300 to 6000 px per side, aspect ratio 0.4 to 2.5, under 10 MB.

**dubbing\_config** `object`

Settings for video translation (role dubbing\_video).

**dubbing\_config.custom\_subtitle** `object`

A UTF-8 target-language SRT file to dub from, which skips machine translation. Each segment is at most 15 seconds. Cannot be used with glossaries.

**dubbing\_config.custom\_subtitle.format** `string` *required*

srt

**dubbing\_config.custom\_subtitle.url** `string` *required*

**dubbing\_config.dialogue\_enhancement** `string`

off (default), low, medium or high.

**dubbing\_config.glossaries** `object[]`

Fixed translations. Cannot be used with custom\_subtitle.

**dubbing\_config.glossaries\[].source** `string` *required*

**dubbing\_config.glossaries\[].target** `string` *required*

**dubbing\_config.source\_language** `string`

zh or en. Omit it to detect the language.

**dubbing\_config.target\_language** `string`

Required for video translation. One of zh, en, ja, ko, de, fr, pt-BR, th, id, vi, ms, fil, it, ru, nl, pl, tr, sv, es-ES, es-MX, ar, pt-PT, fi, da, no, cs, hu, el, ro or hi.

**include** `string[]`

Extra video translation outputs: video\_url, subtitles.srt, subtitles.jsonl, subtitles\_source.srt and subtitles\_source.jsonl.

**model** `string`

Model identifier. Supported model: seed-audio-1-5-261128. A direct call to POST /proxy/byteplus/api/v3/contents/generations must supply it. Comfy Router fills it from the `{model}` path segment.

**output\_format** `string`

Output audio format: wav (default), mp3, pcm or ogg\_opus.

Generated from the schema Router serves at `GET /v2/models/byteplus/seed-audio-1-5-261128/openapi.json`, the same document it validates a call against before the request reaches the provider.

### Output

**audio\_config** `object`

**audio\_config.sample\_rate** `integer`

**content** `object`

**content.audios** `object[]`

**content.audios\[].description** `string`

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

For stem separation, the stem kind (speaker, sfx or bgm).

**content.audios\[].url** `string`

Download URL, valid for 24 hours.

**content.subtitles** `object[]`

**content.subtitles\[].format** `string`

**content.subtitles\[].url** `string`

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

The dubbed video, when the request included video\_url.

**created** `integer`

Format: `int64`

**dubbing\_config** `object`

**id** `string`

**model** `string`

**output\_format** `string`

**subtitle** `boolean`

**usage** `object`

**usage.duration\_ms** `integer`

BytePlus's usage time in milliseconds. On text to audio it can be longer than the returned audio. Comfy does not bill it.

Format: `int64`

**usage.final\_duration\_ms** `integer`

Length of the returned audio in milliseconds; for stem separation, the input length times the number of stems. Comfy bills this value.

Format: `int64`

## Examples

### Input

```json theme={null}
{
  "content": [
    {
      "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
      "type": "text"
    }
  ],
  "output_format": "mp3"
}
```

### Output

```json theme={null}
{
  "content": {
    "audios": [
      {
        "url": "https://example.invalid/byteplus/seed-audio-1-5/generated.mp3"
      }
    ]
  },
  "created": 1795664082,
  "id": "0217956640827568823a6d9d4020aa2a",
  "model": "seed-audio-1-5-261128",
  "output_format": "mp3",
  "usage": {
    "duration_ms": 2000,
    "final_duration_ms": 1910
  }
}
```

## 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.