Generate audio
Generate speech, dialogue, and ambient sounds with Seed Audio, dub videos, or separate audio tracks.
Generate sound from text, reference images, audio, or video. You can also translate and dub videos or separate audio into multiple tracks. The API returns JSON synchronously with download links for audio and the requested files; it is not for real-time conversations.
/api/v3/contents/generationsReturns results synchronously; no polling is required. Long media may take several minutes. Keep the connection open until the response arrives. The request body limit is 64 MiB, including Base64 overhead.
Authorization
bearerAuth Use Bearer your-api-key in the Authorization header.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
Input combinations
Choose one task per request. Media items must explicitly specify role. Switch scenarios in the request examples above to see a complete request for each task.
| Task | Input and requirements |
|---|---|
| Text generation | One text describing the sound scene; include the exact dialogue when generating speech |
| Reference image | Text + one reference_image; cannot also include audio or video |
| Reference voices | Text + 1~6 reference_audio clips; assign dialogue to multiple speakers in the order of the audio clips |
| Reference video | Text + one reference_video; optionally add 1~6 reference audio clips |
| Video dubbing | Only one dubbing_video; set the target language with dubbing_config.target_language |
| Audio separation | Separation instructions + one separate_audio; identify tracks by the returned type and description |
Use the full model ID enabled for your account. Available models are listed in the Seed-Audio model guide.
Media requirements
The total request body must not exceed 64 MiB, including Base64 overhead. Use publicly accessible URLs for larger media.
| Media | Formats and limits |
|---|---|
| Text | At most one item and 10,000 characters; excess text is truncated. Omit role for text items |
| Reference audio | WAV, MP3; public URL or Base64 Data URI. Each clip: 2~30 seconds, up to 15 MB; total duration up to 180 seconds |
| Audio to separate | WAV, MP3; public URL or Base64 Data URI. 2~360 seconds, up to 90 MB; the request body size limit also applies |
| Image | Public URL or Base64 Data URI; JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF; each image under 10 MB. Width and height: 300~6000 pixels; aspect ratio: 0.4~2.5 |
| Video | Public URL; MP4, MOV, 4~360 seconds, up to 200 MB, 12~60 FPS. Width and height: 300~6000 pixels; aspect ratio: 0.4~2.5; total pixels: 172800~2086876 |
| Supplied subtitles | Publicly accessible UTF-8 SRT URL in the language specified by target_language; each subtitle lasts at most 15 seconds. Timestamps must be ordered, nonoverlapping, and within the video duration |
Dubbing and output settings
| Setting | Usage |
|---|---|
| Automatic translated dubbing | Input a video containing Chinese or English speech; the source language is detected automatically. Set the target language with target_language |
| Glossary | glossaries supports up to 20 pairs; each requires nonempty source and target |
| Dubbing with supplied subtitles | custom_subtitle directly dubs from target-language subtitles; mutually exclusive with glossaries. This mode does not return generated subtitles |
| Dialogue enhancement | dialogue_enhancement: off, low, medium, or high; default off |
| Speech adjustments | Speech rate and loudness: −50~100; pitch: −12~12; default 0. Omit all three for dubbing and separation; also omit bitrate for separation |
| Synthesized video | For reference-video generation or dubbing, set include: ["video_url"]; otherwise, audio is returned. Omit speech_rate when returning video to preserve synchronization |
| Subtitle files | Generation and dubbing can request subtitles.srt and subtitles.jsonl; dubbing can also request subtitles_source.srt and subtitles_source.jsonl. Omit include for separation |
| Output format | Default wav; also supports mp3, pcm, and ogg_opus. Default sample rate: 44100 Hz; ogg_opus requires 48000 Hz |
Reading results
Long media may take several minutes. Keep the connection open until the complete response arrives; no polling is required. Returned links are valid for 24 hours; download and save the files promptly.
| Field | Purpose |
|---|---|
content.audios[].url | Audio links; for separation, iterate over the array to get each track, up to 6 |
content.audio_url | Audio link when the response uses a single-audio field |
content.video_url | Video combined with generated sound, not a silent copy of the source video |
content.subtitles[] | Subtitles in the generated or dubbing target language; format distinguishes SRT and JSONL |
content.subtitles_source[] | Subtitles in the source language of the dubbed video |
usage.duration_ms | Billable duration for this request in milliseconds; divide by 1000 and retain fractional seconds. For separation, use this request-level value without adding the track durations |
usage.final_duration_ms | Duration after speech rate adjustment or other post-processing; does not replace the billable duration |
In the playground, the left pane plays returned audio, previews synthesized video, and lets you open, download, or copy subtitle links. The right pane retains the full JSON. If the browser cannot play an audio format, download it and use a local player.