AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
AudioSeed Audio

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.

POST/api/v3/contents/generations

Returns 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
AuthorizationBearer <token>

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.

TaskInput and requirements
Text generationOne text describing the sound scene; include the exact dialogue when generating speech
Reference imageText + one reference_image; cannot also include audio or video
Reference voicesText + 1~6 reference_audio clips; assign dialogue to multiple speakers in the order of the audio clips
Reference videoText + one reference_video; optionally add 1~6 reference audio clips
Video dubbingOnly one dubbing_video; set the target language with dubbing_config.target_language
Audio separationSeparation 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.

MediaFormats and limits
TextAt most one item and 10,000 characters; excess text is truncated. Omit role for text items
Reference audioWAV, MP3; public URL or Base64 Data URI. Each clip: 2~30 seconds, up to 15 MB; total duration up to 180 seconds
Audio to separateWAV, MP3; public URL or Base64 Data URI. 2~360 seconds, up to 90 MB; the request body size limit also applies
ImagePublic 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
VideoPublic 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 subtitlesPublicly 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

SettingUsage
Automatic translated dubbingInput a video containing Chinese or English speech; the source language is detected automatically. Set the target language with target_language
Glossaryglossaries supports up to 20 pairs; each requires nonempty source and target
Dubbing with supplied subtitlescustom_subtitle directly dubs from target-language subtitles; mutually exclusive with glossaries. This mode does not return generated subtitles
Dialogue enhancementdialogue_enhancement: off, low, medium, or high; default off
Speech adjustmentsSpeech rate and loudness: −50~100; pitch: −12~12; default 0. Omit all three for dubbing and separation; also omit bitrate for separation
Synthesized videoFor reference-video generation or dubbing, set include: ["video_url"]; otherwise, audio is returned. Omit speech_rate when returning video to preserve synchronization
Subtitle filesGeneration 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 formatDefault 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.

FieldPurpose
content.audios[].urlAudio links; for separation, iterate over the array to get each track, up to 6
content.audio_urlAudio link when the response uses a single-audio field
content.video_urlVideo 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_msBillable 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_msDuration 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.