Skip to main content
POST
/
audio
/
speech
Generate speech from text (TTS)
curl --request POST \
  --url https://api.orcarouter.ai/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "tts-1",
  "input": "<string>",
  "voice": "<string>",
  "response_format": "mp3",
  "speed": 1
}
'

Authorizations

Authorization
string
header
required

OrcaRouter API keys look like sk-orca-.... Pass them in the Authorization: Bearer sk-orca-... header.

Body

application/json
model
string
required
Example:

"tts-1"

input
string
required
voice
string
required

Provider-specific voice identifier.

Examples:

"alloy"

"echo"

"fable"

"onyx"

"nova"

"shimmer"

response_format
enum<string>
default:mp3
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
default:1
Required range: 0.25 <= x <= 4

Response

Binary audio content.