apicheats.dev elevenlabs/llms.txt Raw .md
PATCH

/v1/dubbing/resource/{dubbing_id}/speaker/{speaker_id}

ElevenLabs API

Update Metadata For A Speaker

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 210 tokens · Vary: Accept

Critical gotchas

Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.

Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.

cURL

curl -X PATCH 'https://api.elevenlabs.io/v1/dubbing/resource/dubbing-id/speaker/speaker-id' \  -H "xi-api-key: $ELEVENLABS_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "speaker_name": "string",  "voice_id": "string",  "voice_stability": 0,  "voice_similarity": 0,  "voice_style": 0,  "languages": [    "string"  ]}'
Get a free ElevenLabs API key → sponsored

Parameters

Name In Type Required Description
dubbing_id path string Yes ID of the dubbing project.
speaker_id path string Yes ID of the speaker.
speaker_name body string No Name to attribute to this speaker.
voice_id body string No Either the identifier of a voice from the ElevenLabs voice library, or one of ['track-clone', 'clip-clone'].
voice_stability body number No For models that support it, the voice similarity value to use. This will default to 0.65, with a valid range of [0.0, 1.0].
voice_similarity body number No For models that support it, the voice similarity value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
voice_style body number No For models that support it, the voice style value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
languages body string[] No Languages to apply these changes to. If empty, will apply to all languages.

Response 200 OK

{
  "version": 0
}