{
"created": 1775200000,
"id": "task-unified-1775200000-abcd1234",
"model": "doubao-seed-audio-1-0",
"object": "audio.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 15,
"audio_type": "audio_generation"
},
"type": "audio",
"usage": {
"credits_reserved": 9.6
}
}{
"error": {
"code": "missing_text",
"message": "Missing required parameter: prompt",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: doubao-seed-audio-1-0",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Seed-Audio 1.0 Audio Generation
- Multimodal audio generation with three modes: text-to-audio, reference-audio (voice cloning), and reference-image
- Up to
120seconds of audio per request - Asynchronous mode — use the returned task ID to query the result
- Generated audio links are valid for 7 days, please save them promptly
- In rare cases, generated results are delivered via official original links, which may expire in less than 7 days. Download and save them promptly.
{
"created": 1775200000,
"id": "task-unified-1775200000-abcd1234",
"model": "doubao-seed-audio-1-0",
"object": "audio.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 15,
"audio_type": "audio_generation"
},
"type": "audio",
"usage": {
"credits_reserved": 9.6
}
}{
"error": {
"code": "missing_text",
"message": "Missing required parameter: prompt",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: doubao-seed-audio-1-0",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Authorizations
##All endpoints require Bearer Token authentication##
Get your API Key:
Visit the API Key management page to obtain your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
The prompt or text to synthesize into audio
Three generation modes (auto-detected by which reference resources you pass):
- Text-to-audio: pass only
promptto generate audio directly from the prompt - Reference-audio (voice cloning): pair with
audio_references; use the literal marker@audioNto reference the Nth item (numbered from1, in array order) - Reference-image: pair with
image_urls;promptonly needs the text to synthesize
Audio references (
audio_references) and image references (image_urls) are mutually exclusive — only one may be used per request.
Constraints:
- Up to
1500characters
1500"Welcome to the audio generation service. The weather is lovely today."
List of reference resources. Each item can be a voice ID or a reference-audio URL, and the two may be mixed within the same array
- Voice ID: the
voice_typeof a preset voice — see the full list in Seed-Audio 1.0 Voice List - Audio URL: upload a reference audio clip for voice cloning
- Mutually exclusive with
image_urls: reference audio and reference image are either-or; they cannot be sent together in one request - Use the literal marker
@audioNinpromptto reference the Nth item (numbered from1, in array order) - If omitted, the model generates a voice freely based on
prompt
Quantity limit:
- Up to
3items total in the array (voice IDs and audio URLs combined)
Audio URL constraints:
- Each reference clip ≤
30seconds and ≤10 MB - Formats:
wav/mp3/pcm/ogg_opus
3["zh_female_vv_uranus_bigtts"]
List of reference-image URLs; generates audio matching the mood of the image
- When using an image reference,
promptonly needs the text to synthesize - Mutually exclusive with
audio_references: reference image and reference audio are either-or; they cannot be sent together in one request
Constraints:
- Currently only
1image, ≤10 MB - Formats:
jpeg/png/webp
1["https://example.com/scene.jpg"]
Pitch adjustment, in semitones
0: default pitch (no change)- Positive values raise the pitch: the larger the value, the higher and sharper the voice;
12raises it by one octave - Negative values lower the pitch: the smaller the value, the lower and deeper the voice;
-12lowers it by one octave
Range -12 to 12
-12 <= x <= 120
HTTPS callback URL invoked when the task finishes
When it fires:
- Triggered when the task is completed, failed, or cancelled
- Sent after billing is finalized
Security restrictions:
- HTTPS only
- Callbacks to internal IP addresses are forbidden (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback mechanism:
- Timeout:
10seconds - Up to
3retries on failure (at1/2/4seconds after each failure) - The callback body has the same format as the task-query response
- A 2xx response is treated as success; other status codes trigger a retry
"https://your-domain.com/webhooks/audio-completed"
Response
Audio generation task created successfully