Skip to main content

Request Body

model
string
default:"tts-1"
TTS model: tts-1 (standard) or tts-1-hd (higher quality).
input
string
required
The text to generate audio for. Maximum 4096 characters.
voice
string
required
Voice to use: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse.
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