Seed TTS 3.0 API
Expressive text-to-speech with 82 performance tags in 100+ languages.
POST /v2/seed-tts-3.0 · submit + poll 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3import segmind
4
5# Async (v2): submit to the queue and block until COMPLETED.
6# run() returns the final result dict (600s deadline, 1.0s poll by default).
7result = segmind.run(
8 "seed-tts-3.0",
9 text="[whispering] Shh — hide, he's almost here. [gasps] [excited] Surprise! Happy 10th birthday, Theo! [laughs] [curious] Wait... are you crying? [reassuring] Oh, happy tears. Come here, buddy.",
10 voice_id="multi_female_stokie_v3_uranus_bigtts",
11 language_code="auto",
12 speed=1,
13 volume=1,
14 output_format="mp3",
15 bit_rate=160000,
16)
17print(result["status"]) # COMPLETED
18print(result.get("output")) # model output (e.g. media URL)
19print(result["metrics"]["inference_time"]) # server compute seconds
20
21# --- Or submit + poll manually (track request_id, control the cadence) ---
22from segmind import SegmindClient, InferenceFailed, InferenceTimeout
23
24client = SegmindClient() # reads SEGMIND_API_KEY
25payload = {
26 "text": "[whispering] Shh — hide, he's almost here. [gasps] [excited] Surprise! Happy 10th birthday, Theo! [laughs] [curious] Wait... are you crying? [reassuring] Oh, happy tears. Come here, buddy.",
27 "voice_id": "multi_female_stokie_v3_uranus_bigtts",
28 "language_code": "auto",
29 "speed": 1,
30 "volume": 1,
31 "output_format": "mp3",
32 "bit_rate": 160000,
33}
34job = client.submit_async("seed-tts-3.0", **payload)
35print(job.request_id) # available immediately
36try:
37 result = job.wait(timeout=600, interval=1.0)
38except InferenceTimeout as e:
39 print("still running:", e.request_id)
40except InferenceFailed as e:
41 print("failed:", e.detail) 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3import segmind
4
5# Async (v2): submit to the queue and block until COMPLETED.
6# run() returns the final result dict (600s deadline, 1.0s poll by default).
7result = segmind.run(
8 "seed-tts-3.0",
9 text="[whispering] Shh — hide, he's almost here. [gasps] [excited] Surprise! Happy 10th birthday, Theo! [laughs] [curious] Wait... are you crying? [reassuring] Oh, happy tears. Come here, buddy.",
10 voice_id="multi_female_stokie_v3_uranus_bigtts",
11 language_code="auto",
12 speed=1,
13 volume=1,
14 output_format="mp3",
15 bit_rate=160000,
16)
17print(result["status"]) # COMPLETED
18print(result.get("output")) # model output (e.g. media URL)
19print(result["metrics"]["inference_time"]) # server compute seconds
20
21# --- Or submit + poll manually (track request_id, control the cadence) ---
22from segmind import SegmindClient, InferenceFailed, InferenceTimeout
23
24client = SegmindClient() # reads SEGMIND_API_KEY
25payload = {
26 "text": "[whispering] Shh — hide, he's almost here. [gasps] [excited] Surprise! Happy 10th birthday, Theo! [laughs] [curious] Wait... are you crying? [reassuring] Oh, happy tears. Come here, buddy.",
27 "voice_id": "multi_female_stokie_v3_uranus_bigtts",
28 "language_code": "auto",
29 "speed": 1,
30 "volume": 1,
31 "output_format": "mp3",
32 "bit_rate": 160000,
33}
34job = client.submit_async("seed-tts-3.0", **payload)
35print(job.request_id) # available immediately
36try:
37 result = job.wait(timeout=600, interval=1.0)
38except InferenceTimeout as e:
39 print("still running:", e.request_id)
40except InferenceFailed as e:
41 print("failed:", e.detail)API Endpoint
https://api.segmind.com/v1/seed-tts-3.0Parameters
textrequiredstringText to speak, up to 10,000 characters. Direct it with English tags in square brackets, such as [happy], [whispering] or [sighs]. Tag characters are billed.
bit_rateoptionalintegerFor MP3 and Ogg Opus. MP3 at 8,000 Hz takes only 64 kbps.
16000064000160000enable_markdown_filteroptionalbooleanParse Markdown in the text.
falselanguage_codeoptionalstringOutput language or Chinese dialect — 119 codes. Auto-detect handles mixed-language text; set it when the accent matters.
"auto""auto""af""am""ar""as""ast""az""be""bg""bn"output_formatoptionalstringAudio format. PCM has no header; Ogg Opus is always 48,000 Hz.
"mp3""mp3""pcm""ogg_opus"sample_rateoptionalintegerHz. Left empty: 24,000 for MP3 and PCM, 48,000 for Ogg Opus.
8000160002205024000320004410048000speedoptionalnumberSpeaking rate, 0.5 to 2. Lower it for narration, raise it for brisk announcements.
1Range: 0.5 - 2text_normalizationoptionalbooleanRead numbers and dates the way a person would.
truevoice_idoptionalstringOne of 495 preset voices. Pick one whose native language matches your text for the most natural accent.
"multi_female_stokie_v3_uranus_bigtts""multi_male_mpho_v3_uranus_bigtts""multi_male_livesteve_v3_uranus_bigtts""multi_male_yangguangjieshuonan_v3_uranus_bigtts""multi_female_xinwenjieshuonv_v3_uranus_bigtts""multi_female_wenrouzhishijieshuonv_v3_uranus_bigtts""multi_male_valentino_v3_uranus_bigtts""multi_female_skye_v3_uranus_bigtts""multi_female_sharron_v3_uranus_bigtts""multi_male_ryan_v3_uranus_bigtts""multi_female_nadia_v3_uranus_bigtts"volumeoptionalnumberLoudness multiplier, 0.5 to 2.
1Range: 0.5 - 2Response Type
Returns: Audio
Asynchronous requests (v2)
Use Async for video, long-running (>~60s), or high-concurrency workloads; Sync is simplest for fast image & LLM calls. Async submits a request and you poll it to completion.
- 1
POST /v2/seed-tts-3.0Submit — returns request_id, status_url, response_url
- 2
GET /v2/requests/{id}/statusPoll — until COMPLETED or FAILED
- 3
GET /v2/requests/{id}Result — final response body
Status states
- A FAILED request is served as HTTP 422 — the body still carries the error detail.
- An unknown or expired request_id returns HTTP 404.
- Results are retained for 1 hour, then expire.
- Content / RAI blocks surface as FAILED, not a separate state.
- Track completion by polling the status endpoint.
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out