BETA
Documentation
Create speech
POST/v1/audio/speech
Text-to-speech. Unlike every other route, the response is binary audio, not JSON — it's streamed through by Content-Type, not parsed.
cURL example
terminal
curl https://apily.pro/v1/audio/speech \
-H "Authorization: Bearer apily_your-api-key" \
-H "Content-Type: application/json" \
-d '{"model":"<tts-model-id>","input":"Hello from Apily","voice":"alloy"}' \
--output speech.mp3No completion axis on this route — there's no max_tokens/max_output_tokens field to set.