---
title: "Seed Audio 1.5 API:生成音频、视频翻配、音频分轨｜APIMODELS"
description: "字节 Seed Audio 1.5 API:提示词加参考人声生成音频($0.004/秒)、视频配声($0.025/秒)、翻配成 30 种语言($0.0167/秒)、最多分 6 轨(每秒每轨 $0.0015)。"
canonical: https://apimodels.app/zh/docs/seed-audio
markdown: https://apimodels.app/zh/docs/seed-audio.md
language: zh
source: "Generated from the HTML docs page at the canonical URL; the HTML page is the source of truth. Docs index: https://apimodels.app/llms.txt"
---

[Docs](https://apimodels.app/zh/docs) · Seed Audio 1.5 API

# Seed Audio 1.5 API

字节跳动 Seed Audio 1.5,拆成四个模型、用同一个端点和 API Key 调用:按提示词生成带音乐音效的对白($0.004/秒)、给视频配声($0.025/秒)、把中英文视频翻配成 30 种语言($0.0167/秒)、把录音分成最多 6 条音轨(每秒每轨 $0.0015)。按字节返回的计费秒数扣费,失败不扣费。

## 模型与价格

| model                           | 用途                                 | 价格                  |
| ------------------------------- | ---------------------------------- | ------------------- |
| seed-audio-1.5                  | 按提示词生成音频(对白 + 音乐音效),可附参考人声或 1 张参考图 | $0.004 / 秒输出        |
| seed-audio-1.5-video-to-audio   | 给视频配音效、环境声和台词                      | $0.025 / 秒视频        |
| seed-audio-1.5-video-dubbing    | 把中文或英文对白的视频翻配成 30 种语言              | $0.0167 / 秒视频       |
| seed-audio-1.5-audio-separation | 把一段录音分成最多 6 条音轨                    | $0.0015 / 秒源音频 / 每轨 |

- 按字节返回的计费秒数扣费,不超过建单时冻结的额度;失败不扣费。
- 建单时先冻结最长时长的费用,完成后按实际结算并退回差额:生成按 360 秒冻结($1.44),配声和翻配按视频时长冻结,分轨按源音频时长 × 6 轨冻结。
- 分轨例:1 分钟录音分 3 轨 = 60 × 3 × $0.0015 = $0.27。

## 调用方式

和站内其它语音模型同一个端点:POST /v1/audio/generations 建单,再轮询 GET /v1/audio/generations?task_id= 或用 callback_url 等回调。视频类任务的耗时随视频长度增加。

```bash
# ─── 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"] } }
```

```python
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)
```

```javascript
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));
}
```

## 请求参数

| 字段                   | 必填        | 类型         | 说明                                                                                                                                               |
| -------------------- | --------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| model                | 是         | string     | 上表四个模型名之一                                                                                                                                        |
| prompt               | 翻配以外必填    | string     | 生成 / 配声:描述声音,台词用引号写出原话;分轨:说明分几轨、每轨保留什么。翻配不接受 prompt。生成不支持只要纯音乐或纯音效。                                                                              |
| audio_urls           | 否         | string\[\] | 仅生成 / 配声:参考人声,最多 6 段,每段 2–30 秒、合计不超过 180 秒,wav 或 mp3;也可写 speaker://音色id。在 prompt 里用「第 1 个声音」这类说法指定谁说哪句。也接受 reference_audio_urls。                 |
| image_urls           | 否         | string\[\] | 仅生成:1 张参考图,定说话人的形象和场景;不能和 audio_urls 同时用。也接受 image_url。                                                                                          |
| video_urls           | 配声 / 翻配必填 | string\[\] | 正好 1 个视频:mp4 或 mov,4–360 秒,12–60 fps,边长 300–6000 像素,宽高比 0.4–2.5,总像素 407,696–2,086,876(约 640×640 到 1920×1080)。也接受 video_url。                      |
| audio_url            | 分轨必填      | string     | 要分轨的录音,wav 或 mp3,2–360 秒                                                                                                                         |
| target_language      | 翻配必填      | string     | 翻配目标语言,区分大小写: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         | 否         | boolean    | 配声 / 翻配:返回合成好的视频。翻配默认 true,配声默认 false。返回视频时 resultUrls 是视频,单独的音轨在 resultJson.audioUrl。                                                           |
| subtitles            | 否         | boolean    | 同时返回字幕文件(srt),放在 resultJson.subtitles;分轨不支持                                                                                                      |
| source_subtitles     | 否         | boolean    | 仅翻配:另外返回原语言字幕,放在 resultJson.sourceSubtitles                                                                                                      |
| glossaries           | 否         | object\[\] | 仅翻配:术语表,1–1000 条 {"source","target"},固定人名和专有名词的译法;不能和 custom_subtitle_url 同时用                                                                    |
| custom_subtitle_url  | 否         | string     | 仅翻配:用你自己的译文字幕(srt)代替自动翻译                                                                                                                         |
| dialogue_enhancement | 否         | string     | 仅翻配:人声增强 off / low / medium / high                                                                                                               |
| format               | 否         | string     | mp3(默认)/ wav。也接受 output_format。                                                                                                                  |
| sample_rate          | 否         | integer    | 8000 / 16000 / 24000 / 32000 / 44100 / 48000                                                                                                     |
| speech_rate          | 否         | integer    | 仅生成 / 配声:语速 -50 到 100,0 为正常                                                                                                                      |
| loudness_rate        | 否         | integer    | 仅生成 / 配声:音量 -50 到 100,0 为正常                                                                                                                      |
| pitch_rate           | 否         | integer    | 仅生成 / 配声:音高 -12 到 12                                                                                                                             |
| callback_url         | 否         | string     | 任务完成后的回调 URL                                                                                                                                     |

## 返回结果

- resultUrls:生成的音频;要了成片视频时是视频;分轨时按音轨顺序每轨一个链接。
- resultJson 是一个 JSON 字符串,可能含:tracks(每轨的类型、说明、时长)、audioUrl(成片视频之外单独的音轨)、subtitles / sourceSubtitles(字幕链接与格式)。
- 所有结果文件转存在我们这里,7 天后自动删除,请及时下载或转存。

## 常用请求体

### 生成:只用提示词

```json
{ "model": "seed-audio-1.5",
  "prompt": "深夜电台,一位温柔的女主播说:「晚上好,欢迎收听今天的节目。」背景有轻柔的钢琴和雨声。" }
```

### 生成:参考图定人设

```json
{ "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." }
```

### 视频配声,返回成片

```json
{ "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 }
```

### 翻配 + 术语表

```json
{ "model": "seed-audio-1.5-video-dubbing", "video_urls": ["https://example.com/talk.mp4"],
  "target_language": "en", "glossaries": [{ "source": "火山引擎", "target": "Volcano Engine" }], "subtitles": true }
```

### 分轨

```json
{ "model": "seed-audio-1.5-audio-separation", "audio_url": "https://example.com/song.wav",
  "prompt": "分成 3 轨:主唱;和声;伴奏" }
```

## 限制与注意

- 输入音频只收 wav 和 mp3;m4a 等其它格式请先转码。
- 生成最长 6 分钟;视频和分轨的源文件最长 360 秒。
- 翻配的原视频对白需是中文或英文。
- 参数不合法(时长、分辨率、帧率、语言代码等)直接返回 400,不扣费。

[在线试用 Seed Audio 1.5](https://apimodels.app/zh/models/seed-audio-1.5)

## 常见问题

**Seed Audio 1.5 API 多少钱?**

seed-audio-1.5 每秒输出 $0.004,seed-audio-1.5-video-to-audio 每秒视频 $0.025,seed-audio-1.5-video-dubbing 每秒视频 $0.0167,seed-audio-1.5-audio-separation 按源音频秒数 × 返回音轨数、每秒 $0.0015。失败不扣费。

**Seed Audio 1.5 能翻配成哪些语言?**

30 种目标语言,用 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、hi。原视频对白需是中文或英文。

**Seed Audio 1.5 分轨怎么用?**

audio_url 传一段 2–360 秒的 wav 或 mp3,prompt 里写清楚分哪几轨,例如「分成 3 轨:人声;音乐;其余音效」。每轨一个链接,最多 6 轨,按源音频秒数 × 音轨数、每秒 $0.0015 计费。
