MarktSupport← Zurück zur App

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
POST https://api.lithovas.com/api/generate

Body: { "model": "<slug>", "input": { … } }

Antwort: { "taskId": "<id>", "state": "waiting" }

Ergebnis abfragen

GET
GET https://api.lithovas.com/api/generate/<taskId>

Antwort: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

Asynchron
Ein 200 von „Task erstellen“ bedeutet nur, dass der Task angenommen wurde — nicht, dass er fertig ist. Frage diesen Endpunkt ab, bis state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.

Endpunkte

ModellTaskmodel slug
Audio IsolationAudio to Audioelevenlabs/audio-isolation
Text To Dialogue V3Text to Speechelevenlabs/text-to-dialogue-v3
Text To Speech Multilingual V2Text to Speechelevenlabs/text-to-speech-multilingual-v2
Text To Speech Turbo 2.5Text to Speechelevenlabs/text-to-speech-turbo-2-5

Audio Isolation · Audio to Audio

POSTAudio to Audioelevenlabs/audio-isolation
input-Felder
audio_urlstringerforderlich

URL of audio to isolate voice from (mp3/wav/aac/mp4/ogg, max 10MB)

Beispiel
cURL
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

POSTText to Speechelevenlabs/text-to-dialogue-v3
input-Felder
dialoguearray<object>erforderlich

Array of dialogue items with text and voice; combined text <=5000 chars

dialogue[].textstringerforderlich

Dialogue text content for speech generation

dialogue[].voiceenum<string>erforderlich

Voice ID or preset name for speech synthesis (60 voice IDs)

stabilitynumberoptional

Voice stability parameter controlling consistency

language_codestringoptional

Language code (50+ codes); omit for automatic detection

Beispiel
cURL
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

POSTText to Speechelevenlabs/text-to-speech-multilingual-v2
input-Felder
textstringerforderlich

Text to convert to speech (max 5000 characters)

voicestringerforderlich

Voice ID or preset name for speech generation (59 voice IDs)

stabilitynumberoptional

Voice stability control (0-1, step 0.01)

similarity_boostnumberoptional

Similarity boost parameter (0-1, step 0.01)

stylenumberoptional

Style exaggeration level (0-1, step 0.01)

speednumberoptional

Speech speed multiplier (0.7-1.2, step 0.01)

timestampsbooleanoptional

Return word-level timestamps in output

previous_textstringoptional

Prior context text for continuity (max 5000 chars)

next_textstringoptional

Following context text for continuity (max 5000 chars)

language_codestringoptional

ISO 639-1 language code for enforcement (max 500 chars)

Beispiel
cURL
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

POSTText to Speechelevenlabs/text-to-speech-turbo-2-5
input-Felder
textstringerforderlich

Text to convert to speech (max 5000 characters)

voicestringoptional

Voice ID or preset name for speech generation (60+ voice IDs)

stabilitynumberoptional

Voice stability parameter (0-1, step 0.01)

similarity_boostnumberoptional

Similarity boost parameter (0-1, step 0.01)

stylenumberoptional

Style exaggeration level (0-1, step 0.01)

speednumberoptional

Speech speed multiplier (0.7-1.2, step 0.01)

timestampsbooleanoptional

Return word-level timing information

previous_textstringoptional

Prior context text for continuity (max 5000 chars)

next_textstringoptional

Following context text for continuity (max 5000 chars)

language_codestringoptional

ISO 639-1 language code for enforcement

Beispiel
cURL
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"
  }
}'