API
Audio endpoint
POST /api/v1/audio — text-to-speech on your ElevenLabs or Google key, with voice, style, and format options.
On this page
Request
POST /api/v1/audio generates speech on your ElevenLabs or Google key and saves the clip privately to your account. Music generation is available in the Audio product; the API endpoint covers speech.
| Field | Type | Notes |
|---|---|---|
text | string (required) | The words to speak, up to 4,000 characters. |
provider | string (optional) | google or elevenlabs. Inferred from the model when omitted. |
model | string (optional) | A speech model id, e.g. elevenlabs/eleven_v4 or google/gemini-3.8-flash-tts. |
voice | string (optional) | A voice id for the provider. ElevenLabs defaults to a standard voice when omitted. |
voiceLabel | string (optional) | A display label stored with the clip. |
style | string (optional) | Delivery style guidance for the model. |
format | string (optional) | mp3, wav, or pcm — must match what the provider returns, or the call returns 400 naming the expected format. |
curl https://www.lumivoralabs.com/api/v1/audio \
-H "Authorization: Bearer lv_live_..." \
-H "Content-Type: application/json" \
-d '{ "provider": "google", "text": "Welcome to Lumivora Labs." }'Response
{
"audio": {
"id": "c41a...",
"provider": "google",
"modelId": "gemini-3.8-flash-tts",
"modelLabel": "Gemini 3.8 Flash TTS",
"voiceId": "...",
"voiceLabel": "...",
"contentType": "audio/wav",
"byteSize": 512000,
"createdAt": "2026-12-01T12:00:00.000Z",
"url": "/api/v1/audio/c41a..."
},
"credits": { "charged": 1, "remaining": 1997 }
}GET /api/v1/audio/:id streams the clip bytes. ElevenLabs speech requires a paid membership; on Free, use a Google voice. If the clip is created but cannot be saved, the run is not charged.
Questions this page does not answer? Email support@lumivoralabs.com.
