Skip to main content
POST
/
openai
/
v1
/
audio
/
speech
OpenAI Compatible Speech Synthesis
curl --request POST \
  --url http://localhost:8080/openai/v1/audio/speech \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>",
  "voice": "<string>",
  "instructions": "<string>",
  "response_format": "<string>",
  "speed": 123
}'
This response does not have an example.

Body

application/json
model
string
required

Model to use for speech synthesis in 'provider/model' format

input
string
required

Text to convert to speech

voice
required
instructions
string

Additional instructions for voice synthesis

response_format
string

Audio format for the response

speed
number

Speed of the generated audio

Response

200 - audio/mpeg

Audio file

The response is of type file.