Skip to content

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/unidirectional

The 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 ​

HeaderRequiredValue
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.

ParameterTypeRequiredNotes
modelstring✓seed-tts-2.0
req_paramsobject✓Synthesis parameters, below

req_params ​

ParameterTypeRequiredNotes
textstring✓Text to speak, UTF-8. At most 3000 characters; keep it to about 300 (see Length limits)
speakerstring✓Voice ID, e.g. zh_female_vv_uranus_bigtts; see Voices
audio_paramsobjectOutput format, below. Defaults to MP3 at 24000 Hz
speech_rateintegerSpeed, -50 to 100. 0 is normal, 100 is about 2×
loudness_rateintegerVolume, -50 to 100. 0 is the original volume
emotionstringEmotion, e.g. happy. Takes effect only on voices that support it
additionsstringExtra options as a JSON string, not an object, e.g. "{\"disable_markdown_filter\":true}"

audio_params ​

ParameterTypeRequiredNotes
formatstringmp3 (default), pcm or ogg_opus
sample_rateinteger8000, 16000, 22050, 24000 (default), 32000, 44100 or 48000
bit_rateintegerMP3 bit rate, e.g. 128000. Left to the upstream when omitted

Voices ​

speakerVoice
zh_female_vv_uranus_bigttsVivi — general female voice, recommended default
zh_female_xiaohe_uranus_bigttsXiaohe — warm female voice
zh_female_cancan_uranus_bigttsCancan — lively female voice
zh_female_roumeinvyou_uranus_bigttsGentle female voice
zh_female_qingxinnvsheng_uranus_bigttsFresh female voice
zh_female_gaolengyujie_uranus_bigttsCool, mature female voice
zh_female_linjianvhai_uranus_bigttsGirl-next-door voice
zh_male_m191_uranus_bigttsYunzhou — general male voice
zh_male_taocheng_uranus_bigttsXiaotian — young male voice
zh_male_shaonianzixin_uranus_bigttsConfident teenage male voice
en_female_dacey_uranus_bigttsDacey — English female voice
en_male_tim_uranus_bigttsTim — 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 ​

bash
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 }
    }
  }'
python
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"])
js
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 ​

FieldNotes
audio_base64The complete audio, Base64-encoded. Decode it to get a playable file
formatAudio format, as requested (mp3 by default)
mime_typee.g. audio/mpeg, audio/L16, audio/ogg
sample_ratee.g. 24000
modelseed-tts-2.0
statusAlways succeeded
id / task_idThe same ID, for matching logs and bills. It cannot be queried
usage.text_wordsBilled characters, punctuation and spaces included
json
{
  "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_words the reply reports.
  • A failed request (4xx / 5xx) is not charged.

Errors ​

HTTPCause
400req_params, req_params.text or req_params.speaker is missing, or the text is over 3000 characters
400Unsupported format or sample_rate
401Missing or invalid API key
500Voice not enabled, audio over the size ceiling, or an upstream failure. Retest with a short text and a voice from the table
503No channel serves seed-tts-2.0 for your key's group

Notes ​

  • status is always succeeded; there are no intermediate states such as queued.
  • Pass additions as a string containing JSON. An object fails with 500.
  • This endpoint returns the whole audio at once. It does not stream.