Relay an ElevenLabs POST
Passes the request to https://api.elevenlabs.io/{path} with the secret xi-api-key header
added. Fits endpoints like v1/text-to-speech/{voice_id} (which answers with binary audio),
v1/text-to-dialogue, v1/sound-generation, v1/voice-changer/{voice_id}, or
v1/audio-isolation. Everything the upstream returns — chunked /stream output and binary
audio included — comes back untouched.
Authentication
Your per-client bearer token — the API key the gateway issued to you. Present it in
Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a
401. Before the call is sent upstream the token is removed (stripped, or swapped for the
upstream’s own credential); it never makes it past the gateway.
Path parameters
The path to call on the ElevenLabs API, any further / segments included — all of it after
/elevenlabs/ is passed to https://api.elevenlabs.io/ when the gateway’s allowlist
admits the path. Examples: v1/text-to-speech/{voice_id}, v1/text-to-speech/{voice_id}/stream,
v1/text-to-dialogue, v1/voices, v2/voices, v1/shared-voices, v1/models,
v1/sound-generation, v1/speech-to-text, v1/voice-changer/{voice_id},
v1/audio-isolation, v1/convai/conversation/get-signed-url.
Request
Response
The upstream’s answer, relayed as-is. Text-to-speech and sound-generation hand back audio as
binary (audio/mpeg or PCM), chunked on the /stream variants. The remaining endpoints
answer with JSON.

