Skip to main content
POST
Create speech

Authorizations

Authorization
string
header
required

A workspace API key in an Authorization: Bearer header. A missing header, a scheme other than Bearer, a key of the wrong shape, and a key we reject are all 401.

Body

application/json
model
string
required

The exact provider-qualified ID from GET /v1/models, for a model whose endpoint_families include audio_speech.

Example:

"openai/tts-1"

input
string
required

The text to speak. Its characters are what is held and charged.

Example:

"Hello there."

voice
string
required

Model-specific voice.

Example:

"alloy"

response_format
string

Model-specific audio format.

Example:

"mp3"

Response

The provider's binary audio, relayed unchanged apart from platform headers.