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

POST /v1/music/finetunes — ElevenLabs API

ElevenLabs API

Create Music Finetune

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 234 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 POST 'https://api.elevenlabs.io/v1/music/finetunes' \  -H "xi-api-key: $ELEVENLABS_API_KEY" \  -F 'name=example-name' \  -F 'primary_genre=example-primary-genre' \  -F '[email protected]' \  -F 'tags=string' \  -F 'visibility=private' \  -F 'model_id=music_v1'

Parameters

Name In Type Required Description
name body string Yes Name for the finetune (5-200 characters).
primary_genre body string Yes Primary musical genre of the finetune.
files body string[] No Audio files to train on.
tags body string[] No Tags to associate with the finetune.
visibility body string No Finetune visibility. Only 'private' and 'workspace' can be set.
model_id body string No Request body field model_id.

Response 200 OK

{
  "id": "string",
  "name": "string",
  "tags": [
    "string"
  ],
  "primary_genre": "string",
  "model_id": "string",
  "created_at": "2026-09-03T00:00:00Z",
  "visibility": "private",
  "created_by": "self",
  "status": "pending",
  "training_progress": 0,
  "failure_reason": "audio_processing_failed"
}
Get a free ElevenLabs API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.