Skip to main content
POST
Generate TTS audio (synchronous)
Synchronous TTS generation. Errors are surfaced with a TTS_GENERATION_* code, a human readable message, and a legacy error field.

Body

application/json
modelId
string

Canonical TTS model id. Takes precedence over provider/model/endpoint when set.

Minimum string length: 1
provider
string

TTS provider key.

Minimum string length: 1
model
string

TTS model key (scoped to provider).

Minimum string length: 1
endpoint
string

Explicit upstream endpoint identifier. Optional when modelId or provider+model resolve to a known TTS spec.

Minimum string length: 1
input
object

Model-specific TTS input payload (text, voice, language, etc.). The accepted keys depend on the resolved TTS spec; see the corresponding model documentation.

Response

TTS generation succeeded.

success
boolean
required
data
object
required