# ElevenLabs Music (`music_v1`)

> AI music generation. Prompt-driven background tracks.

- Capability: Music (tool `music`) — Music
- Price: from $0.01 per run (1 credit = $0.01). Exact price for a request: POST https://api.varg.ai/v2/estimate
- Typical time: ~30 s
- JSON Schema: https://api.varg.ai/v2/tools/music?model=music_v1 (public, no key)
- Try it: https://varg.ai/dashboard/tools/playground?model=music_v1

## Call it

REST: `POST https://api.varg.ai/v2/tools/music/call` with `Authorization: Bearer $VARG_API_KEY` (create a key at https://varg.ai/dashboard/api).
It answers `202` with a job right away. Poll `GET /v2/jobs/{id}` until `status` is `completed`, then read `output.outputs[0].url` — or pass `options.webhook_url` and get the finished job POSTed to you.

```bash
curl -X POST https://api.varg.ai/v2/tools/music/call \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "music_v1",
  "prompt": "upbeat lo-fi hip hop, chill vibes, 90 BPM",
  "duration": 10
}'
```

MCP: the varg server `https://mcp.varg.ai/mcp` (OAuth sign-in, no key) runs it with `call_tool`:

```json
{
  "tool": "music",
  "input": {
    "model": "music_v1",
    "prompt": "upbeat lo-fi hip hop, chill vibes, 90 BPM",
    "duration": 10
  },
  "wait": true
}
```

## Inputs

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `model` | string | yes | — | `music_v1` or a route key below | Which model runs the job. |
| `prompt` | string | yes | — | — | — |
| `duration` | integer | no | — | 1–600 | — |

Media inputs are URLs. Upload a local file first with `POST /v2/files` and pass the returned URL.

## Provider options

Optional, per provider, under `provider_options.<provider>`. Only the options of the provider that runs the job apply — pin a route to choose it.

### provider_options.elevenlabs

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `prompt` | string | no | — | — | — |
| `music_length_ms` | number | no | — | — | — |

## Routes

`"model": "music_v1"` picks a route automatically (priority order, then the inputs you send). To pin one, pass its key as `model`.

| model key | provider | modality | price from | typical time |
|---|---|---|---|---|
| `elevenlabs:music_v1` | elevenlabs | music | $0.01 | ~30 s |

## Example output

- audio/mpeg: https://s3.varg.ai/files/194b94d0-58ff-4e8b-91de-4f1959d04013/file_780705e0a549.mp3

---

Catalog version 2026-11-11T12:59:09.901887+00:00. All models: https://varg.ai/models/llms.txt
