POST
/v1/music/finetunes
ElevenLabs APICreate Music Finetune
- 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
→ 229 tokens · Vary: Accept
→ 229 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=string' \ -F 'primary_genre=string' \ -F 'files=@sample.bin' \ -F 'tags=string' \ -F 'visibility=private' \ -F 'model_id=music_v1'Get a free ElevenLabs API key → sponsored
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"
}