Skip to main content
POST
Submits a text-to-speech task and returns a generation_id for tracking. The audio is generated asynchronously—use the Get Generation endpoint to check when it’s ready.
Endpoint

Request

string
required
The text to convert to speech. Maximum 50,000 characters (varies by plan).
string
required
The voice ID to use. Get available voices from /voices.
string
default:"base"
The model tier to use.
  • base: Standard high-quality voices. Lowest cost/latency.
  • advanced: Premium voices. Supports cloning and higher expressiveness.
number
default:"1.0"
Playback speed multiplier. Range: 0.5 to 2.0.

Advanced Model Settings

number
default:"2.5"
Controls how strictly the model follows the text/style. Range: 1.0 - 5.0.
number
default:"0.5"
Controls emotional fluctuation/expressiveness. Range: 0.0 - 1.0.
string
default:"wav"
Output format: wav or mp3.
string
Optional language code for the input text. The accepted values depend on model:
  • Base model uses single-letter codes: a (American English), b (British English), j (Japanese), z (Mandarin Chinese), e (Spanish), f (French), h (Hindi), i (Italian), p (Brazilian Portuguese).
  • Advanced model uses ISO 639-1 codes: en, ar, da, de, el, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, pt, ru, sv, sw, tr, zh.
If omitted, the model falls back to its default language.

Response

string
Unique identifier for this generation job. Use this to poll /tts.
string
Initial status: IN_QUEUE.
string
The input text that was submitted.
string
Voice ID used for generation.
string
Human-readable voice name.
string
TTS model used (base or advanced).
integer
Number of tokens consumed.
number
Cost in USD (set when generation completes).
string
Payment method used: API_WALLET or CREDITS_BALANCE.
string
URL to download the generated audio (when status=COMPLETED).
string
Error details if status=FAILED.
string
ISO 8601 timestamp of creation.
string
ISO 8601 timestamp when processing started.
string
ISO 8601 timestamp when processing completed.

Error Responses

Invalid parameters (e.g. invalid model, voice not found).
Insufficient balance.
Rate limit exceeded.