allmodels.ioDocs
API ReferenceElevenLabs SDK

Clone a voice (SDK add)

POST/el/v1/voices/add

Clones a voice with ElevenLabs voices.add(). The returned voice_id is an AllModels voice ID and works as the {voice_id} path parameter on the /el text-to-speech endpoints. AllModels clones on ITS OWN providers, not on ElevenLabs: send x-allmodels-provider to choose one, or let AllModels pick the provider that needs nothing the SDK cannot send. Cloning is charged once, when the voice is created, and only clone voices you have the speaker's permission to use — sending this request is that attestation.

Authorization

xi-api-key<token>

Tenant key (ElevenLabs SDK convention).

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

const body = new FormData();body.set(name, "My Narrator")fetch("https://example.com/el/v1/voices/add", {  method: "POST",  headers: {    "Content-Type": "multipart/form-data"  },  body})
{  "voice_id": "AM:@narrator",  "requires_verification": true}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}

{  "error": "missing_api_key"}

{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}
{  "detail": {    "message": "string",    "status": "string",    "property1": null,    "property2": null  }}