Skip to main content
POST
/
v1
/
audio
/
speech
curl --request POST \
  --url 'https://api.elkapi.com/v1/audio/speech' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "tts-1",
  "input": "The weather is great today, perfect for a walk.",
  "voice": "alloy",
  "response_format": "mp3"
}'
"string"

Documentation Index

Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt

Use this file to discover all available pages before exploring further.

curl --request POST \
  --url 'https://api.elkapi.com/v1/audio/speech' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "tts-1",
  "input": "The weather is great today, perfect for a walk.",
  "voice": "alloy",
  "response_format": "mp3"
}'
"string"

Authorizations

Authorization
string
required
All endpoints require Bearer Token authentication.Add it to the request headers:
Authorization: Bearer YOUR_API_KEY

Body

model
string
default:"tts-1"
required
Example: tts-1
input
string
required
Text to convert
voice
string
required
Allowed values: alloy, echo, fable, onyx, nova, shimmer
response_format
string
default:"mp3"
Allowed values: mp3, opus, aac, flac, wav, pcm
speed
number
default:"1"