Skip to main content

API reference

TTS

TTS: Synthesize speech. Published endpoints, request parameters, JSON responses and authentication.

Release v1.0.0 · This reference describes the release shown here. Console shows the current published configuration.

Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
240 s
Request body
64 KiB
Response body
86400044 B

Synthesize speech

POST/tts/v1/synthesize

Convert a complete text into a complete WAV file. Up to 10000 weighted input characters: each Unicode Han character counts as two, every other Unicode code point counts as one, including whitespace and Markdown syntax. Markdown filtering changes speech output only. Both stella and tide voices are supported. Only an explicit upstream success followed by validated complete audio is billable; synthesis failures are not charged. Download interruption after successful synthesis does not cancel billing. The public endpoint does not stream partial audio. Errors use the platform JSON error envelope.

$0.15 / 10,000 weighted charactersHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
filter_markdownbooleanNo
textstringYes
voice_idstringNo
Values: ["stella","tide"]
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "filter_markdown": true,
  "text": "string",
  "voice_id": "stella"
}

Success response200

No success response model was published.