ElevenLabs
ElevenLabs-Modelle werden über eine einheitliche, asynchrone Job-API aufgerufen. Starte einen Task mit POST /api/generate und frage dann GET /api/generate/{taskId} ab, bis er fertig ist. Diese Familie stellt 4 Endpunkte bereit.
Überblick
Jeder Endpunkt teilt sich dieselbe Hülle — nur model und die input-Felder ändern sich. Führe einen beliebigen im Playground des Modell-Markts aus.
Authentifizierung
Erstelle einen API-Schlüssel unter /api-keys und sende ihn als Bearer-Token. Anfragen aus dem Browser bei angemeldeter Sitzung funktionieren auch über das Session-Cookie.
Authorization: Bearer <YOUR_API_KEY>Task erstellen
POST https://api.lithovas.com/api/generateBody: { "model": "<slug>", "input": { … } }
Antwort: { "taskId": "<id>", "state": "waiting" }
Ergebnis abfragen
GET https://api.lithovas.com/api/generate/<taskId>Antwort: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.Endpunkte
| Modell | Task | model slug |
|---|---|---|
| Audio Isolation | Audio to Audio | elevenlabs/audio-isolation |
| Text To Dialogue V3 | Text to Speech | elevenlabs/text-to-dialogue-v3 |
| Text To Speech Multilingual V2 | Text to Speech | elevenlabs/text-to-speech-multilingual-v2 |
| Text To Speech Turbo 2.5 | Text to Speech | elevenlabs/text-to-speech-turbo-2-5 |
Audio Isolation · Audio to Audio
elevenlabs/audio-isolationaudio_urlstringerforderlichURL of audio to isolate voice from (mp3/wav/aac/mp4/ogg, max 10MB)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/audio-isolation",
"input": {
"audio_url": "https://example.com/reference.mp3"
}
}'Text To Dialogue V3 · Text to Speech
elevenlabs/text-to-dialogue-v3dialoguearray<object>erforderlichArray of dialogue items with text and voice; combined text <=5000 chars
dialogue[].textstringerforderlichDialogue text content for speech generation
dialogue[].voiceenum<string>erforderlichVoice ID or preset name for speech synthesis (60 voice IDs)
stabilitynumberoptionalVoice stability parameter controlling consistency
language_codestringoptionalLanguage code (50+ codes); omit for automatic detection
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/text-to-dialogue-v3",
"input": {
"dialogue": [],
"dialogue[].text": "example",
"dialogue[].voice": "example",
"stability": 0.5,
"language_code": "example"
}
}'Text To Speech Multilingual V2 · Text to Speech
elevenlabs/text-to-speech-multilingual-v2textstringerforderlichText to convert to speech (max 5000 characters)
voicestringerforderlichVoice ID or preset name for speech generation (59 voice IDs)
stabilitynumberoptionalVoice stability control (0-1, step 0.01)
similarity_boostnumberoptionalSimilarity boost parameter (0-1, step 0.01)
stylenumberoptionalStyle exaggeration level (0-1, step 0.01)
speednumberoptionalSpeech speed multiplier (0.7-1.2, step 0.01)
timestampsbooleanoptionalReturn word-level timestamps in output
previous_textstringoptionalPrior context text for continuity (max 5000 chars)
next_textstringoptionalFollowing context text for continuity (max 5000 chars)
language_codestringoptionalISO 639-1 language code for enforcement (max 500 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/text-to-speech-multilingual-v2",
"input": {
"text": "example",
"voice": "example",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1,
"timestamps": false,
"previous_text": "example",
"next_text": "example",
"language_code": "example"
}
}'Text To Speech Turbo 2.5 · Text to Speech
elevenlabs/text-to-speech-turbo-2-5textstringerforderlichText to convert to speech (max 5000 characters)
voicestringoptionalVoice ID or preset name for speech generation (60+ voice IDs)
stabilitynumberoptionalVoice stability parameter (0-1, step 0.01)
similarity_boostnumberoptionalSimilarity boost parameter (0-1, step 0.01)
stylenumberoptionalStyle exaggeration level (0-1, step 0.01)
speednumberoptionalSpeech speed multiplier (0.7-1.2, step 0.01)
timestampsbooleanoptionalReturn word-level timing information
previous_textstringoptionalPrior context text for continuity (max 5000 chars)
next_textstringoptionalFollowing context text for continuity (max 5000 chars)
language_codestringoptionalISO 639-1 language code for enforcement
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/text-to-speech-turbo-2-5",
"input": {
"text": "example",
"voice": "EkK5I93UQWFDigLMpZcX",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0,
"speed": 1,
"timestamps": false,
"previous_text": "example",
"next_text": "example",
"language_code": "example"
}
}'