Text to Speech (OpenAI SDK)

VerifiedPOST /oai/audio/speechPublished by AllModels
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "allmodels",
"path": "/oai/audio/speech",
"method": "POST",
"body": {
"model": "",
"input": "",
"voice": ""
}
}'

Changes with the parameters.

$0.0009per callFor the example request; changes with the parameters.

About this endpoint

Generate speech audio from text using the OpenAI SDK-compatible endpoint. Supports all AllModels TTS providers. Returns binary audio in the requested format (mp3, opus, aac, flac, wav, pcm).

Body parameters

More from AllModels

  1. Delete Cloned VoiceDELETE/v1/custom-voices/{voice_id}$0.0000 per call
  2. Text to Speech Stream (ElevenLabs SDK)POST/el/v1/text-to-speech/{voice_id}/stream$0.0009 per call
  3. Clone Voice (ElevenLabs SDK)POST/el/v1/voices/add$0.0100 per call
  4. Get Voice (ElevenLabs SDK)GET/el/v1/voices/{voice_id}$0.0000 per call
  5. Text to Speech Convert (ElevenLabs SDK)POST/el/v1/text-to-speech/{voice_id}$0.0009 per call
  6. List Voices (ElevenLabs SDK)GET/el/v1/voices$0.0000 per call
  7. List ProvidersGET/v1/providers$0.0000 per call
  8. Get Cloned VoiceGET/v1/custom-voices/{voice_id}$0.0000 per call
  9. Clone VoicePOST/v1/custom-voices$0.0100 per call
  10. Search Voices (ElevenLabs SDK)GET/el/v1/voices/search$0.0000 per call
  11. List ModelsGET/v1/models$0.0000 per call
  12. Speech to Text (OpenAI SDK)POST/oai/audio/transcriptionsPriced per call
All 17 AllModels endpoints