Skip to main content
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 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
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 walks through status, cancellation and collection.

Schema

Input

object
integer
Volume. 100 is 2x, -50 is 0.5x. Default 0.Range: -50 to 100
integer
Pitch. Default 0.Range: -12 to 12
integer
8000, 16000, 24000, 32000, 44100 (default) or 48000. ogg_opus is 48000 only.
integer
Speed. 100 is 2x, -50 is 0.5x. Default 0.Range: -50 to 100
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.
object
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.
object
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.
string
reference_audio, separate_audio, reference_video, dubbing_video or reference_image.
string
The prompt. Give the full lines to speak, the voice, emotion, pace and any music or sound effects. Video translation takes no text.
string
required
text, audio_url or video_url.
object
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.
object
Settings for video translation (role dubbing_video).
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.
string
required
srt
string
required
string
off (default), low, medium or high.
object[]
Fixed translations. Cannot be used with custom_subtitle.
string
required
string
required
string
zh or en. Omit it to detect the 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.
string[]
Extra video translation outputs: video_url, subtitles.srt, subtitles.jsonl, subtitles_source.srt and subtitles_source.jsonl.
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.
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

object
integer
object
object[]
string
string
For stem separation, the stem kind (speaker, sfx or bgm).
string
Download URL, valid for 24 hours.
object[]
string
string
string
The dubbed video, when the request included video_url.
integer
Format: int64
object
string
string
string
boolean
object
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
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

Output

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

Headers

Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.

Using the Router API

Model discovery, validation errors, retries, and billing.

Limitations

What Router does not do today, and what to use instead.