# ElevenLabs Music v2 API

> ElevenLabs Music v2 generates studio-quality songs and instrumentals with vocals from a text prompt, up to 10 minutes long.

Source: https://www.sandbase.ai/models/elevenlabs/music/2
API reference: https://www.sandbase.ai/models/elevenlabs/music/2/docs

## Facts

- Provider: ElevenLabs
- Type: Audio model
- Model ID: `elevenlabs/music/2`
- Price: From $0.75 per run
- Capabilities: text to music
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "elevenlabs/music/2",
  "prompt": "Mysterious original soundtrack, themes of jungle, rainforest, nature, woodwinds, busy rhythmic tribal percussion.",
  "force_instrumental": false
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call ElevenLabs Music v2 through SandBase?

Create a SandBase API key, then send requests with the model ID "elevenlabs/music/2" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate ElevenLabs account?

No. One SandBase API key and balance gives you access to ElevenLabs Music v2 and the other models in the catalog; you do not need to sign up with ElevenLabs separately.

## README

### ElevenLabs Music v2

ElevenLabs Music v2: studio-quality songs and instrumentals with vocals, up to 10 minutes.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Genre, mood, instruments, vocals, and lyrics. |
| `force_instrumental` | boolean | false | Generate without vocals. |
| `music_length_ms` | integer 3000–600000 | — | Length in milliseconds (3,000–600,000). |

#### Billing

$0.75 per started minute, with a one-minute minimum. Without `music_length_ms` the quote assumes 1 minute.

| Length | Price |
|---|---|
| 30s | $0.75 |
| 60s | $0.75 |
| 150s | $2.25 |
| 600s | $7.50 |

Failed runs are not charged.

#### Prompting

- Describe structure and vocals; put lyrics in the prompt if you need exact words.

#### Limits

- Up to 10 minutes.

#### Also on SandBase

Other ElevenLabs Music versions: `elevenlabs/music`, `elevenlabs/music/2.5`.
