Skip to main content
POST
Generate speech (TTS)
See the Audio guide for runnable examples and voices.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Body

application/json
input
string
required
model
string
required
format
string
parameters
object
response_format
string

Alias of format (OpenAI's name for it). If both are sent they must match. On /v3/audio/speech a value that is not an audio format (e.g. b64_json) is ignored; the compat route rejects it.

speed
number
store
boolean

Persist the generated audio to /v3/files and return a reusable file_id. Defaults to false; set true to store.

voice
string

Response

Successful response

audio
object
required
created
integer
required
id
string
required
model
string
required
usage
object
required
Last modified on June 16, 2026