# Eleven Music v2 API

> Eleven Music v2 by ElevenLabs: a track from a description with or without vocals and background music for your video. Tracks up to 10 minutes, and you can attach a sound reference.

Developer: ElevenLabs
Model key in the API: `elevenlabs_music`

## Connect in three steps

1. [Get a key](https://api.cyhub.ai/docs/connection.md?lang=en): Create a key in the dashboard after you confirm your email. One key opens every model.
2. [Check the price](https://api.cyhub.ai/docs/generations.md?lang=en): POST /v1/price shows the cost of a run in advance, without charging you.
3. [Run a task and collect the result](https://api.cyhub.ai/docs/tasks.md?lang=en): POST /v1/tasks starts a task, GET /v1/tasks/{id} shows its status and files.

## Ready-to-use code

Replace YOUR_API_KEY with your key. The code starts a task and waits for the result. In cURL, repeat the second request with the id from the first response instead of TASK_ID until status becomes succeeded.

```bash
curl -X POST "https://api.cyhub.ai/v1/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "elevenlabs_music",
  "settings": {
    "mode": "song",
    "prompt": "Спокойная акустическая гитара и мягкие барабаны, женский вокал на русском о летнем вечере у моря",
    "duration": 90,
    "title": "Летний вечер",
    "model": "music_v2"
  }
}'

curl "https://api.cyhub.ai/v1/tasks/TASK_ID" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python
import time

import requests

API = "https://api.cyhub.ai/v1"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}

body = {
    "model": "elevenlabs_music",
    "settings": {
        "mode": "song",
        "prompt": "Спокойная акустическая гитара и мягкие барабаны, женский вокал на русском о летнем вечере у моря",
        "duration": 90,
        "title": "Летний вечер",
        "model": "music_v2",
    },
}

response = requests.post(f"{API}/tasks", json=body, headers=HEADERS, timeout=60)
response.raise_for_status()
task = response.json()
while task["status"] in ("queued", "running"):
    time.sleep(5)
    task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS, timeout=30).json()
print(task["status"], task["result"])
```

```javascript
const API = "https://api.cyhub.ai/v1";
const HEADERS = { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" };

const body = {
  "model": "elevenlabs_music",
  "settings": {
    "mode": "song",
    "prompt": "Спокойная акустическая гитара и мягкие барабаны, женский вокал на русском о летнем вечере у моря",
    "duration": 90,
    "title": "Летний вечер",
    "model": "music_v2"
  }
};

async function main() {
  let response = await fetch(`${API}/tasks`, { method: "POST", headers: HEADERS, body: JSON.stringify(body) });
  if (!response.ok) throw new Error(await response.text());
  let task = await response.json();
  while (task.status === "queued" || task.status === "running") {
    await new Promise((resolve) => setTimeout(resolve, 5000));
    response = await fetch(`${API}/tasks/${task.id}`, { headers: HEADERS });
    task = await response.json();
  }
  console.log(task.status, task.result);
}

main();
```

[Get a key](https://cyhub.ai/cabinet/keys)

## Price before the run

Prices as of 15.10.2026: from 1 ₽. POST /v1/price shows the exact price of your settings.

Send the same settings to POST /v1/price: the response shows the price of the run without charging you.

```bash
curl -X POST "https://api.cyhub.ai/v1/price" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "elevenlabs_music",
  "settings": {
    "mode": "song",
    "prompt": "Спокойная акустическая гитара и мягкие барабаны, женский вокал на русском о летнем вечере у моря",
    "duration": 90,
    "title": "Летний вечер",
    "model": "music_v2"
  }
}'
```

- amount_minor: the price of the run in minor units (kopecks for rubles)
- currency: the wallet currency
- available_minor: how much your balance has for new tasks right now

## <a id="song"></a>Track from a description

> A track from a text description, with or without vocals. A sound reference can be attached.

Value of the mode field: `song`

This page is about Eleven Music v2: send model = music_v2. Without the model field the task runs on music_v2_5.

Price in this mode from 5 ₽.

### Parameters

Model parameters go inside settings. Omitted optional fields take their default values.

#### `prompt` (Required)

What music is needed: genre, mood, instruments, tempo. Describe the voice here too, and give your own lyrics here naming their language.

- Type: String
- Minimum characters: 1
- Maximum characters: 4100

#### `model` (Optional)

Model version: 2.5 is the newest, 2 is the previous one. The price is the same.

- Type: String
- Allowed values: `music_v2` (Version 2)
- Default: `"music_v2_5"`

#### `vocal` (Optional)

With vocals or instrumental. With instrumental the model does not accept negative_prompt, seed, a sound reference or adherence other than high.

- Type: String
- Allowed values: `with_vocals` (With vocals), `instrumental`
- Default: `"with_vocals"`

#### `duration` (Optional)

Track length in seconds, 10 to 600. The price grows with it.

- Type: Integer
- Minimum: 10
- Maximum: 600
- Default: `60`

#### `style` (Optional)

A ready style from the ElevenLabs library: the model keeps to its sound, the description sets the rest. none: no style.

- Type: String
- Allowed values: `none` (No style), `hrgo9qt4ebv9ondvrfby` (Percussive Rhythm), `myxkfft8fgqlknydgc9j` (Cinematic Ambient Atmosphere), `c8gueokxdvc0websp3mh` (Relaxing Ambient), `jhkwafhohc9agcda0cfr` (Whispery Angelic (Female)), `cmogtn8kgmqiog8dhexe` (Deep Hip-Hop Voice (Male)), `p1ywem2msdf5te27nvsq` (18th Century Symphony), `da3djkopsam0aiywt9pr` (Emotional Piano), `xiuhw6zlkhnmecbjoa1m` (Country), `vwseitetkxqcdgsmkp8q` (EDM Dance Pop (Female)), `pqqhd6miiqq1sck8hxpo` ('80s Nu-Disco Revival), `slmgjlsj7you9jtua7rs` (Bass Techno), `ycnbaxci6zvbfumryyjn` (Dark Cinematic), `iurf2sy9ee0sdcpenlxj` (Emo Trap Autotune (Male)), `ibgjl6wsy1m9zi7osp27` (Hard Rock (Male)), `p7uzmv4semqmck6dqlnh` (Hype Hip-Hop), `vs645jaw0kcr5ei0rsjv` (Deep House Groove), `pjrzgdgqqvyyukiukl7m` (High Energy House), `v1hamfp8dn8witowl0ku` (Golden Hour Indie Guitar), `aslj0pdvdods2agammwb` (Indie Dance), `rhesfql7yrkaaboxnxgp` (Angsty Alt Rock (Male)), `ojz144r6sblq1foezx1g` (Melancholic Indie (Male)), `rqjgx0tz2gjqz9bkewmb` (Jazz Hop), `sqwy9yr9rgik4fjq83lq` (Lofi Pulse), `etmjawmxfo7j0rhjoh9b` (Melodic House And Techno), `cba2y9ttpddnmakxzwps` (Metal), `voz6njhbsmhfoxlq4iiz` (Superhero Swell inspired by Stan Lee), `hs1ude6s5b5xecfqkeus` (Brazilian Funk), `kzyrnjd6p1wkctkwcndw` (Commercial Pop), `deg4quj3g28cbyuetrwl` (Power Pop (Male)), `gduoyhnzn5nvb246gg7i` (Upbeat Pop), `hzluexd1oy54d4g2rili` (Y2K RnB Pop (Female)), `suq4dir7rrlyldbl2hzq` (Reggaeton), `zhmmiqfkkv39avzbamxn` ('70s Cambodian Rock), `idlsxb9wbecwwrfdsctg` (Electronic Rock), `fc7ohoxr46pbtqmwpbub` (Gothic Power Rock (Female)), `el6hpw7kwoqvxf6xixct` (Peak Energy), `lh6n3z81aznqz0ohl9pn` (Rock Français), `mgvvvssqtnvoghqnciso` (Emo Trap), `tr9up85ilbll68sx8s7y` (Wooden Slit Drum), `vqipbdqc1msstidmcusy` (Afro House Beats), `isbeh7g7hu3yntwv25af` (Arabic Groove), `dnzdxqdeszfpxwry2pbe` (Baile Beats), `ymhinvkahlf4oath9qfu` (Golden Age Mambo inspired by Celia Cruz), `g6jrtolcvctpxfjtzt0b` (New York Salsa inspired by Celia Cruz), `psgsvdptlafmrwao54vr` (Retro Fanfare inspired by Stan Lee)
- Default: `"none"`

#### `title` (Optional)

Track name: it goes into the caption and the file name. Not set: the model names the track.

- Type: String
- Maximum characters: 80

#### `negative_prompt` (Optional)

What the music must not have, comma separated: no drums, no shouting.

- Type: String
- Maximum characters: 500

#### `adherence` (Optional)

How strictly to follow the description: high almost literally, low as a mood.

- Type: String
- Allowed values: `high` (Strict), `medium`, `low` (Loose)
- Default: `"high"`

#### `seed` (Optional)

Seed: with the same number and settings the result is similar, though not necessarily the same. Not set: a fresh take every time.

- Type: Integer
- Minimum: 0
- Maximum: 2147483647

#### `audio_urls` (Optional)

Sound reference: one URL of a recording up to 30 seconds. The model takes instruments, sound, tempo and mood from it, the genre stays as described. Billed as generating the same length.

- Type: List (String, uri)
- Maximum items: 1

#### `reference_strength` (Optional)

How strongly the reference drives the sound. No effect without a reference.

- Type: String
- Allowed values: `low`, `medium`, `high`, `xhigh` (Maximum)
- Default: `"medium"`

#### `output` (Optional)

Format of the finished file: standard MP3, best quality MP3 or lossless WAV. It does not affect the price.

- Type: String
- Allowed values: `mp3_44100_192` (MP3, standard), `mp3_48000_320` (MP3, best), `pcm_44100` (WAV, lossless)
- Default: `"mp3_44100_192"`

#### `lyrics_file` (Optional)

Attach the lyrics with timing as a separate LRC file: for subtitles and karaoke.

- Type: Boolean
- Default: `false`

#### `ai_mark` (Optional)

An invisible mark inside the file saying the music was made by AI. It does not change the sound and works with MP3 only.

- Type: Boolean
- Default: `false`

Parameters not listed here are not accepted: the response is 422 unknown_setting.

> The API sets these settings itself, do not send them: `files_as_is` = `true`

### Input

- A sound reference is a URL of an MP3 or WAV file up to 50 MB and 30 seconds, sent as a whole.

| Field | Accepts | Formats | Files | File size up to |
|---|---|---|---|---|
| `audio_urls` | Audio | mp3, wav | 1 | 50 MB |

[How to send files](https://api.cyhub.ai/docs/files.md?lang=en)

### Request example

Send this JSON to POST /v1/tasks with your API key. To check the price first, send the same JSON to POST /v1/price.

A song from a description

```json
{
  "model": "elevenlabs_music",
  "settings": {
    "mode": "song",
    "prompt": "Спокойная акустическая гитара и мягкие барабаны, женский вокал на русском о летнем вечере у моря",
    "duration": 90,
    "title": "Летний вечер",
    "model": "music_v2"
  }
}
```

The price is calculated when the task is accepted, currency `RUB`.

[Complete generation example](https://api.cyhub.ai/docs/generations.md?lang=en)

### Output

- An MP3 or WAV track. A song with lyrics also comes with the lyrics text, and on request with an LRC file of timed lyrics.

| Kind | Formats | How many | Note |
|---|---|---|---|
| `audio` or `document` | mp3, wav | 1 | WAV (output = pcm_44100) comes as a document. |
| `document` | lrc | 0 or 1 | Timed lyrics: with lyrics_file = true, when the song has lyrics. |

`result.texts`: The lyrics, when the song has any.

A finished task as GET /v1/tasks/{id} returns it (some fields left out). The caption may sit on the task or on a single file and may be empty; the model picks the file name.

```json
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "status": "succeeded",
  "finished_at": "2026-10-01T12:03:41+00:00",
  "result": {
    "caption": "Caption of the result: the model and its settings",
    "texts": [
      "Text of the result, for example lyrics"
    ],
    "files_expire_at": "2026-10-08T12:03:41+00:00",
    "files_expired": false,
    "artifacts": [
      {
        "index": 0,
        "kind": "audio",
        "filename": "audio.mp3",
        "size": 4194304,
        "caption": "",
        "download_path": "/v1/tasks/7c9e6679-7425-40de-944b-e07fc1f90ae7/artifacts/0"
      },
      {
        "index": 1,
        "kind": "document",
        "filename": "result.lrc",
        "size": 2097152,
        "caption": "",
        "download_path": "/v1/tasks/7c9e6679-7425-40de-944b-e07fc1f90ae7/artifacts/1"
      }
    ]
  }
}
```

[How to read the result and download files](https://api.cyhub.ai/docs/tasks.md?lang=en#result)

## <a id="video"></a>Music for a video

> Background music for your video: length and mood follow the picture. The music here never has singing.

Value of the mode field: `video`

This page is about Eleven Music v2: send model = music_v2. Without the model field the task runs on music_v2_5.

Price in this mode from 1 ₽, with a 1 s file.

### Parameters

Model parameters go inside settings. Omitted optional fields take their default values.

#### `prompt` (Required)

What music the video needs: mood, genre, instruments.

- Type: String
- Minimum characters: 1
- Maximum characters: 1000

#### `model` (Optional)

Model version: 2.5 is the newest, 2 is the previous one. The price is the same.

- Type: String
- Allowed values: `music_v2` (Version 2)
- Default: `"music_v2_5"`

#### `video_urls` (Required)

One URL of the video. The music length and the price come from the video.

- Type: List (String, uri)
- Maximum items: 1

#### `tags` (Optional)

Words about the sound, comma separated, up to 10: metal, orchestra, fast tempo. The model already sees the plot in the video.

- Type: String
- Maximum characters: 200

#### `title` (Optional)

Music name: it goes into the caption and the names of the video and music files. Not set: the files are named music.

- Type: String
- Maximum characters: 80

#### `output` (Optional)

Format of the finished file: MP3 or lossless WAV. ElevenLabs gives no best quality MP3 in this mode. It does not affect the price.

- Type: String
- Allowed values: `mp3_44100_192` (MP3, standard), `pcm_44100` (WAV, lossless)
- Default: `"mp3_44100_192"`

#### `ai_mark` (Optional)

An invisible mark inside the file saying the music was made by AI. It does not change the sound and works with MP3 only.

- Type: Boolean
- Default: `false`

Parameters not listed here are not accepted: the response is 422 unknown_setting.

> The API sets these settings itself, do not send them: `files_as_is` = `true`

### Input

- The video is a URL of an MP4 file up to 200 MB and 10 minutes, sent as a whole.

| Field | Accepts | Formats | Files | File size up to |
|---|---|---|---|---|
| `video_urls` | Video | mp4 | 1 | 200 MB |

[How to send files](https://api.cyhub.ai/docs/files.md?lang=en)

### Request example

Send this JSON to POST /v1/tasks with your API key. To check the price first, send the same JSON to POST /v1/price.

Music for a video

```json
{
  "model": "elevenlabs_music",
  "settings": {
    "mode": "video",
    "prompt": "Лёгкая вдохновляющая музыка для ролика о путешествии",
    "tags": "акустика, струнные, светлое настроение",
    "video_urls": [
      "https://example.com/trip.mp4"
    ],
    "model": "music_v2"
  }
}
```

The price is calculated when the task is accepted, currency `RUB`.

[Complete generation example](https://api.cyhub.ai/docs/generations.md?lang=en)

### Output

- Your video with the new music and the same music as a separate MP3 or WAV file.

| Kind | Formats | How many | Note |
|---|---|---|---|
| `video` | mp4 | 1 | Your video with the new music. |
| `audio` or `document` | mp3, wav | 1 | The same music on its own, WAV comes as a document. |

A finished task as GET /v1/tasks/{id} returns it (some fields left out). The caption may sit on the task or on a single file and may be empty; the model picks the file name.

```json
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "status": "succeeded",
  "finished_at": "2026-10-01T12:03:41+00:00",
  "result": {
    "caption": "Caption of the result: the model and its settings",
    "texts": [],
    "files_expire_at": "2026-10-08T12:03:41+00:00",
    "files_expired": false,
    "artifacts": [
      {
        "index": 0,
        "kind": "video",
        "filename": "video.mp4",
        "size": 12582912,
        "caption": "",
        "download_path": "/v1/tasks/7c9e6679-7425-40de-944b-e07fc1f90ae7/artifacts/0"
      },
      {
        "index": 1,
        "kind": "audio",
        "filename": "audio.mp3",
        "size": 4194304,
        "caption": "",
        "download_path": "/v1/tasks/7c9e6679-7425-40de-944b-e07fc1f90ae7/artifacts/1"
      }
    ]
  }
}
```

[How to read the result and download files](https://api.cyhub.ai/docs/tasks.md?lang=en#result)

## See also

- [Eleven Music v2: features and prices](https://api.cyhub.ai/models/eleven-music-v2)
- Other versions: [Eleven Music API](https://api.cyhub.ai/en/models/eleven-music/api.md)
- Similar models: [Suno V6 API](https://api.cyhub.ai/en/models/suno/api.md)
- [API documentation](https://api.cyhub.ai/docs.md?lang=en)
- [API errors and how to handle them](https://api.cyhub.ai/docs/errors.md?lang=en)
