POST
/
audio
/
speech
curl --request POST \
  --url https://api.openai.com/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>",
  "instructions": "<string>",
  "voice": "ash",
  "response_format": "mp3",
  "speed": 1
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/octet-stream

OK

The response is of type file.