# ElevenLabs Music API

> Music is ElevenLabs's AI audio generation model. Produce high-quality music tracks, sound effects, and audio landscapes from natural language prompts.

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

## Facts

- Provider: ElevenLabs
- Type: Audio model
- Model ID: `elevenlabs/music`
- Price: From $0.60 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",
  "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 through SandBase?

Create a SandBase API key, then send requests with the model ID "elevenlabs/music" 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 and the other models in the catalog; you do not need to sign up with ElevenLabs separately.

## README

### ElevenLabs Music

ElevenLabs Music generates songs or instrumentals from a prompt, 3 seconds to 10 minutes long.

#### 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.60 per started minute, with a one-minute minimum. Without `music_length_ms` the quote assumes 1 minute.

| Length | Price |
|---|---|
| 30s | $0.60 |
| 60s | $0.60 |
| 150s | $1.80 |
| 600s | $6.00 |

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/2`, `elevenlabs/music/2.5`.
