Seed Audio 1.5 API
ByteDance Seed Audio 1.5 as four models behind one endpoint and one API key: audio with dialogue, music and sound from a prompt ($0.004/s), sound for a video ($0.025/s), dubbing of Chinese or English video into 30 languages ($0.0167/s), and splitting a recording into up to six tracks ($0.0015/s per track). You are billed on the seconds ByteDance reports; failed tasks are free.
Models and pricing
| model | What it does | Price |
|---|---|---|
| seed-audio-1.5 | Audio from a prompt (dialogue with music and sound), optionally with voice samples or one reference image | $0.004 per second of audio |
| seed-audio-1.5-video-to-audio | Sound effects, ambience and dialogue for a video | $0.025 per second of video |
| seed-audio-1.5-video-dubbing | Dub a video with Chinese or English dialogue into 30 languages | $0.0167 per second of video |
| seed-audio-1.5-audio-separation | Split one recording into up to 6 tracks | $0.0015 per source second, per track |
- You pay for the seconds ByteDance reports, never more than the amount held when the task is created; failed tasks are free.
- Creating a task holds the cost of the longest possible result and refunds the difference when it settles: generation holds 360 seconds ($1.44), video models hold the length of the video, and separation holds the length of the recording times six tracks.
- Separation example: a 1-minute recording split into 3 tracks = 60 × 3 × $0.0015 = $0.27.
How to call it
The same endpoint as the other speech models here: create the task with POST /v1/audio/generations, then poll GET /v1/audio/generations?task_id= or pass callback_url. Video tasks take longer as the video gets longer.
# ─── Split a recording into tracks ──────────────────────
curl -X POST https://api.apimodels.app/v1/audio/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "seed-audio-1.5-audio-separation",
"audio_url": "https://example.com/interview.mp3",
"prompt": "Split into 2 tracks: all voices; everything else" }'
# { "code": 200, "data": { "taskId": "..." } }
# ─── Get the result ─────────────────────────────────────
curl "https://api.apimodels.app/v1/audio/generations?task_id=TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
# { "code": 200, "data": { "state": "completed", "resultUrls": ["...voices.mp3", "...rest.mp3"] } }import requests, time
ENDPOINT = "https://api.apimodels.app/v1/audio/generations"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"}
# Dub a Chinese or English video into Japanese and get the finished video back
create = requests.post(ENDPOINT, headers=HEADERS, json={
"model": "seed-audio-1.5-video-dubbing",
"video_urls": ["https://example.com/product-demo.mp4"],
"target_language": "ja",
"subtitles": True,
})
task_id = create.json()["data"]["taskId"]
while True:
data = requests.get(ENDPOINT, headers=HEADERS, params={"task_id": task_id}).json()["data"]
if data["state"] == "completed":
print(data["resultUrls"]); break
if data["state"] == "failed":
raise RuntimeError(data.get("failMsg") or "failed")
time.sleep(5)const ENDPOINT = "https://api.apimodels.app/v1/audio/generations";
const HEADERS = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
// Generate a short scene in two cloned voices
const create = await fetch(ENDPOINT, {
method: "POST",
headers: HEADERS,
body: JSON.stringify({
model: "seed-audio-1.5",
prompt: 'A quiet cafe. Voice 1 says: "Did you finish the report?" Voice 2 laughs and says: "Almost."',
audio_urls: ["https://example.com/voice-a.wav", "https://example.com/voice-b.wav"],
format: "wav",
}),
});
const taskId = (await create.json()).data.taskId;
while (true) {
const res = await fetch(ENDPOINT + "?task_id=" + taskId, { headers: HEADERS });
const { data } = await res.json();
if (data.state === "completed") { console.log(data.resultUrls); break; }
if (data.state === "failed") throw new Error(data.failMsg || "failed");
await new Promise(r => setTimeout(r, 3000));
}Parâmetros da requisição
| Field | Required | Type | Description |
|---|---|---|---|
| model | Yes | string | One of the four model names above |
| prompt | All but dubbing | string | Generate / video to audio: describe the sound and quote the exact lines; separation: say how many tracks and what each keeps. Dubbing takes no prompt. Generation does not support music or sound effects alone. |
| audio_urls | No | string[] | Generate / video to audio only: voice samples, up to 6, 2-30 seconds each and 180 seconds in total, wav or mp3; speaker://voice-id also works. Refer to them in the prompt, e.g. "voice 1 says". reference_audio_urls is accepted as an alias. |
| image_urls | No | string[] | Generate only: one reference image that sets the speaker and scene; cannot be combined with audio_urls. image_url is accepted as an alias. |
| video_urls | Video models | string[] | Exactly one video: mp4 or mov, 4-360 seconds, 12-60 fps, sides 300-6000 px, aspect ratio 0.4-2.5, 407,696-2,086,876 pixels in total (roughly 640×640 to 1920×1080). video_url is accepted as an alias. |
| audio_url | Separation | string | The recording to split, wav or mp3, 2-360 seconds |
| target_language | Dubbing | string | Target language for dubbing, case-sensitive: zh, en, ja, ko, de, fr, pt-BR, pt-PT, es-ES, es-MX, th, id, vi, ms, fil, it, ru, nl, pl, tr, sv, ar, fi, da, no, cs, hu, el, ro, hi |
| return_video | No | boolean | Video to audio / dubbing: return the finished video. Defaults to true for dubbing and false for video to audio. With a video, resultUrls holds the video and the audio track alone is in resultJson.audioUrl. |
| subtitles | No | boolean | Also return subtitle files (srt), in resultJson.subtitles; not for separation |
| source_subtitles | No | boolean | Dubbing only: also return subtitles in the original language, in resultJson.sourceSubtitles |
| glossaries | No | object[] | Dubbing only: a glossary of 1-1000 {"source","target"} pairs that fixes how names and terms are translated; cannot be combined with custom_subtitle_url |
| custom_subtitle_url | No | string | Dubbing only: your own translated subtitle file (srt) used instead of machine translation |
| dialogue_enhancement | No | string | Dubbing only: dialogue enhancement off / low / medium / high |
| format | No | string | mp3 (default) / wav. output_format is accepted as an alias. |
| sample_rate | No | integer | 8000 / 16000 / 24000 / 32000 / 44100 / 48000 |
| speech_rate | No | integer | Generate / video to audio only: speaking rate from -50 to 100, 0 is normal |
| loudness_rate | No | integer | Generate / video to audio only: loudness from -50 to 100, 0 is normal |
| pitch_rate | No | integer | Generate / video to audio only: pitch from -12 to 12 |
| callback_url | No | string | Webhook URL called when the task completes |
Result
- resultUrls: the generated audio; the video when you asked for one; for separation one link per track, in track order.
- resultJson is a JSON string that may contain tracks (type, description and duration of each track), audioUrl (the audio track alone, next to a finished video) and subtitles / sourceSubtitles (subtitle links and formats).
- All result files are stored by us and deleted after 7 days; download or copy them in time.
Request bodies
Generate: prompt only
{ "model": "seed-audio-1.5",
"prompt": "深夜电台,一位温柔的女主播说:「晚上好,欢迎收听今天的节目。」背景有轻柔的钢琴和雨声。" }Generate: a reference image sets the speaker
{ "model": "seed-audio-1.5", "image_urls": ["https://example.com/old-captain.png"],
"prompt": "The man in the picture says, in a rough, tired voice: \"We sail at dawn.\" Waves and gulls behind him." }Video to audio, finished video back
{ "model": "seed-audio-1.5-video-to-audio", "video_urls": ["https://example.com/clip.mp4"],
"prompt": "Footsteps on gravel and wind; at the end the woman says: \"Let's go home.\"", "return_video": true }Dubbing with a glossary
{ "model": "seed-audio-1.5-video-dubbing", "video_urls": ["https://example.com/talk.mp4"],
"target_language": "en", "glossaries": [{ "source": "火山引擎", "target": "Volcano Engine" }], "subtitles": true }Track separation
{ "model": "seed-audio-1.5-audio-separation", "audio_url": "https://example.com/song.wav",
"prompt": "分成 3 轨:主唱;和声;伴奏" }Limits and notes
- Input audio must be wav or mp3; convert m4a and other formats first.
- Generated audio is at most 6 minutes; source videos and recordings are at most 360 seconds.
- The video to dub must have Chinese or English dialogue.
- Invalid values (duration, resolution, frame rate, language code and so on) return a 400 error and are not charged.
Perguntas frequentes
How much does the Seed Audio 1.5 API cost?
seed-audio-1.5 costs $0.004 per second of generated audio, seed-audio-1.5-video-to-audio $0.025 and seed-audio-1.5-video-dubbing $0.0167 per second of video, and seed-audio-1.5-audio-separation $0.0015 per second of source audio for each track returned. Failed tasks are not charged.
Which languages can Seed Audio 1.5 dub into?
30 target languages, passed as target_language: zh, en, ja, ko, de, fr, pt-BR, pt-PT, es-ES, es-MX, th, id, vi, ms, fil, it, ru, nl, pl, tr, sv, ar, fi, da, no, cs, hu, el, ro and hi. The source video must have Chinese or English dialogue.
How does Seed Audio 1.5 track separation work?
Send audio_url with one wav or mp3 recording of 2 to 360 seconds and describe the tracks in prompt, for example "Split into 3 tracks: voices; music; other sounds". You get one link per track, up to six, and pay $0.0015 per source second per track.