POST
/
audio
/
speech
Generate speech from text
curl --request POST \
  --url https://api.anyapi.ai/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "MODEL_EXAMPLE",
  "input": "The quick brown fox jumped over the lazy dog.",
  "voice": "alloy"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

application/json

Response

200
audio/mpeg

The audio file content

The response is of type file.