Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt

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

For coding agents, discover the current recommended TTS shortlist first with GET /v1/models?recommended_for=tts, then send the selected model explicitly to this endpoint.

Request Body

Synchronous request timeout: This non-chat endpoint waits for the routed model to finish. Large inputs, long audio, or large batches can exceed common 30s client defaults, so set your HTTP client timeout to at least 120s.
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