Endpoints
/v1/audio/speech— text-to-speech (ElevenLabs TTS)./v1/audio/generations— general audio generation (sound effects, dialogue, etc.).- Both are asynchronous — they return an
idandstatus: "pending". PollGET /v1/audio/generations/{id}for the final result.
Request Headers
Text-to-Speech
Request Body
string
required
TTS model ID. e.g.
elevenlabs/tts-turbo, elevenlabs/tts-multilingual.string
required
Text to synthesize.
string
Voice ID for the model.
number
Playback speed multiplier. Default
1.0.string
Optional. RouterBase will
POST the final result to this URL.Example
Response
Audio Generation (sound effects, dialogue, music, etc.)
Request Body
string
required
Audio model ID. e.g.
elevenlabs/sound-effect, elevenlabs/dialogue, elevenlabs/audio-isolation.string
Text describing the desired audio. Required for sound effects / dialogue.
string
Required for
elevenlabs/audio-isolation and elevenlabs/elevenlabs (speech-to-text). Source audio URL.string
Optional callback URL.
Polling
See Async Tasks for the polling pattern.