Skip to main content
POST
/
v1
/
audio
/
speech
curl -X POST "https://api.lemondata.cc/v1/audio/speech" \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1-hd",
    "voice": "nova",
    "input": "Hello, welcome to LemonData!"
  }' \
  --output speech.mp3

Request Body

model
string
required
TTS model: tts-1 or tts-1-hd.
input
string
required
The text to generate audio for. Maximum 4096 characters.
voice
string
required
Voice to use: alloy, echo, fable, onyx, nova, shimmer.
response_format
string
default:"mp3"
Audio format: mp3, opus, aac, flac, wav, pcm.
speed
number
default:"1.0"
Speed of audio (0.25 to 4.0).

Response

Returns the audio file in the requested format.
curl -X POST "https://api.lemondata.cc/v1/audio/speech" \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1-hd",
    "voice": "nova",
    "input": "Hello, welcome to LemonData!"
  }' \
  --output speech.mp3

Voice Samples

VoiceDescription
alloyNeutral, balanced
ashCalm, measured
balladMelodic, expressive
coralWarm, inviting
echoWarm, conversational
fableExpressive, narrative
novaFriendly, clear
onyxDeep, authoritative
sageWise, thoughtful
shimmerSoft, gentle
verseDynamic, versatile