Text to natural speech

Speech Generation

Turn text into speech with voices from several providers through the OpenAI-compatible audio API.

POST /v1/audio/speech

Hello,welcometoLLMGateway!

3.1s
gemini-2.5-flash-preview-tts · voice Kore
01

Many providers

One request shape for all of them.

02

Many voices

Pick the voice per request.

03

Streaming

Start playback before it finishes.

04

Cost in the stream

Usage on the last SSE event.

Built for

  • Voice apps

    Read answers out loud

  • Narration

    Turn articles into audio

  • Accessibility

    Audio versions of any text

Make it talk
terminal
curl https://api.llmgateway.io/v1/audio/speech \  -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "gemini-2.5-flash-preview-tts",    "input": "Hello, welcome to LLM Gateway!",    "voice": "Kore"  }' \  --output speech.wav
Read docs

More in models & modalities

All features

Start using Speech Generation today

One API key. Every model. Live in minutes.