Skip to main content
POST
Audio Speech

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

OpenAI-compatible text-to-speech request.

Synthesizes input text into audio with the given voice. Unknown top-level fields are dropped.

model
string
required

provider/model, e.g. 'openai/tts-1'

input
string
required

The text to synthesize into audio.

voice
string
required

Voice preset, e.g. 'alloy'.

response_format
string | null

Audio format: 'mp3', 'opus', 'aac', 'flac', 'wav', or 'pcm'. Defaults to 'mp3'. Note: Gemini TTS models always return WAV and ignore this field.

speed
number | null

Playback speed. OpenAI/Azure TTS accept 0.25-4.0; other providers may use a different range or ignore it.

instructions
string | null

Optional guidance for voice and delivery style.

Response

Successful Response