Seed-TTS 2.0 (ByteDance)
seed-tts-2.0 is ByteDance's large-model speech synthesis. It turns text into natural speech and is served in Volcengine's native format: one request returns the finished audio as Base64 in a JSON reply, with no task to create and nothing to poll.
POST https://router.accels.tech/doubao/api/v3/tts/unidirectionalThe same path without the /doubao prefix (/api/v3/tts/unidirectional) also works.
Native path only
This model is not served on /v1/audio/speech. Call the path above, with POST.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | ✓ | Bearer sk-... |
Content-Type | ✓ | application/json |
Body
The top level holds only model and req_params; every synthesis parameter goes inside req_params, as in Volcengine's own API.
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | ✓ | seed-tts-2.0 |
req_params | object | ✓ | Synthesis parameters, below |
req_params
| Parameter | Type | Required | Notes |
|---|---|---|---|
text | string | ✓ | Text to speak, UTF-8. At most 3000 characters; keep it to about 300 (see Length limits) |
speaker | string | ✓ | Voice ID, e.g. zh_female_vv_uranus_bigtts; see Voices |
audio_params | object | Output format, below. Defaults to MP3 at 24000 Hz | |
speech_rate | integer | Speed, -50 to 100. 0 is normal, 100 is about 2× | |
loudness_rate | integer | Volume, -50 to 100. 0 is the original volume | |
emotion | string | Emotion, e.g. happy. Takes effect only on voices that support it | |
additions | string | Extra options as a JSON string, not an object, e.g. "{\"disable_markdown_filter\":true}" |
audio_params
| Parameter | Type | Required | Notes |
|---|---|---|---|
format | string | mp3 (default), pcm or ogg_opus | |
sample_rate | integer | 8000, 16000, 22050, 24000 (default), 32000, 44100 or 48000 | |
bit_rate | integer | MP3 bit rate, e.g. 128000. Left to the upstream when omitted |
Voices
speaker | Voice |
|---|---|
zh_female_vv_uranus_bigtts | Vivi — general female voice, recommended default |
zh_female_xiaohe_uranus_bigtts | Xiaohe — warm female voice |
zh_female_cancan_uranus_bigtts | Cancan — lively female voice |
zh_female_roumeinvyou_uranus_bigtts | Gentle female voice |
zh_female_qingxinnvsheng_uranus_bigtts | Fresh female voice |
zh_female_gaolengyujie_uranus_bigtts | Cool, mature female voice |
zh_female_linjianvhai_uranus_bigtts | Girl-next-door voice |
zh_male_m191_uranus_bigtts | Yunzhou — general male voice |
zh_male_taocheng_uranus_bigtts | Xiaotian — young male voice |
zh_male_shaonianzixin_uranus_bigtts | Confident teenage male voice |
en_female_dacey_uranus_bigtts | Dacey — English female voice |
en_male_tim_uranus_bigtts | Tim — English male voice |
A speaker that is misspelled or not enabled fails with 500 rather than a clear parameter error. Check the ID against this table first.
Examples
curl https://router.accels.tech/doubao/api/v3/tts/unidirectional \
-H "Authorization: Bearer $ACCELSROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seed-tts-2.0",
"req_params": {
"text": "Hello, and welcome to AccelsRouter speech synthesis.",
"speaker": "en_female_dacey_uranus_bigtts",
"audio_params": { "format": "mp3", "sample_rate": 24000 }
}
}'import base64
import requests
resp = requests.post(
"https://router.accels.tech/doubao/api/v3/tts/unidirectional",
headers={"Authorization": "Bearer sk-..."},
json={
"model": "seed-tts-2.0",
"req_params": {
"text": "Hello, and welcome to AccelsRouter speech synthesis.",
"speaker": "en_female_dacey_uranus_bigtts",
"audio_params": {"format": "mp3", "sample_rate": 24000},
},
},
timeout=120,
)
resp.raise_for_status()
data = resp.json()
with open("output.mp3", "wb") as f:
f.write(base64.b64decode(data["audio_base64"]))
print("Billed characters:", data["usage"]["text_words"])import fs from 'node:fs';
const res = await fetch('https://router.accels.tech/doubao/api/v3/tts/unidirectional', {
method: 'POST',
headers: { Authorization: 'Bearer sk-...', 'Content-Type': 'application/json' },
body: JSON.stringify({
model: 'seed-tts-2.0',
req_params: {
text: 'Hello, and welcome to AccelsRouter speech synthesis.',
speaker: 'en_female_dacey_uranus_bigtts',
audio_params: { format: 'mp3', sample_rate: 24000 },
},
}),
});
const data = await res.json();
if (!res.ok) throw new Error(JSON.stringify(data));
fs.writeFileSync('output.mp3', Buffer.from(data.audio_base64, 'base64'));
console.log('Billed characters:', data.usage.text_words);Response
| Field | Notes |
|---|---|
audio_base64 | The complete audio, Base64-encoded. Decode it to get a playable file |
format | Audio format, as requested (mp3 by default) |
mime_type | e.g. audio/mpeg, audio/L16, audio/ogg |
sample_rate | e.g. 24000 |
model | seed-tts-2.0 |
status | Always succeeded |
id / task_id | The same ID, for matching logs and bills. It cannot be queried |
usage.text_words | Billed characters, punctuation and spaces included |
{
"audio_base64": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAA...",
"format": "mp3",
"id": "task_mRxmdhuZJRHB0qIYyJZvRBn53GAWsmla",
"mime_type": "audio/mpeg",
"model": "seed-tts-2.0",
"sample_rate": 24000,
"status": "succeeded",
"task_id": "task_mRxmdhuZJRHB0qIYyJZvRBn53GAWsmla",
"usage": { "text_words": 23 }
}Length limits
Every character counts as one, including punctuation, spaces and Latin letters. A text over 3000 characters is refused with 400 before anything is sent or charged.
The practical limit is lower: the audio returned in one reply has a size ceiling, which Chinese text at normal speed reaches at about 340 characters. Beyond it the request fails with 500. Keep each request to about 300 characters; split longer text by sentence or paragraph and play the pieces in order. A higher speech_rate makes the audio shorter, so more text fits.
Billing
- Billed per character, measured by
usage.text_words. See the rate on the model marketplace. - The text's character count is reserved when the request is sent, then settled on the
usage.text_wordsthe reply reports. - A failed request (
4xx/5xx) is not charged.
Errors
| HTTP | Cause |
|---|---|
400 | req_params, req_params.text or req_params.speaker is missing, or the text is over 3000 characters |
400 | Unsupported format or sample_rate |
401 | Missing or invalid API key |
500 | Voice not enabled, audio over the size ceiling, or an upstream failure. Retest with a short text and a voice from the table |
503 | No channel serves seed-tts-2.0 for your key's group |
Notes
statusis alwayssucceeded; there are no intermediate states such asqueued.- Pass
additionsas a string containing JSON. An object fails with500. - This endpoint returns the whole audio at once. It does not stream.