models/Elevenlabs/ElevenLabs Music V2
Elevenlabs

ElevenLabs Music V2

music
Compare

ElevenLabs Music v2 composes songs and instrumental tracks from a prompt or detailed composition plan.

MODALITIES
text
PER SECOND
$0.0025
RELEASED
2026-07-24

ElevenLabs Music V2 (elevenlabs/music-v2) is a music model from Elevenlabs, released 2026-07-24. Pricing via AIgateway: $0.0025 per second. Call it via https://api.aigateway.sh/v1/audio/music — set model="elevenlabs/music-v2".

model · elevenlabs/music-v2

Use this model

model: elevenlabs/music-v2
curl https://api.aigateway.sh/v1/audio/music \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"elevenlabs/music-v2","prompt":"lo-fi piano with light rain","duration":15}'
API schema

Call ElevenLabs Music V2 from any OpenAI SDK

POST https://api.aigateway.sh/v1/audio/music·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "elevenlabs/music-v2",
  "prompt": "Calm lo-fi instrumental, warm Rhodes, vinyl crackle",
  "is_instrumental": true,     // omit and pass "lyrics" for a vocal track
  "duration": 15,             // seconds — honored, clamped to this model's range
}

// Response is an async job — poll /v1/jobs/<id> until status === "completed".

Response

json
{
  "id": "job_abc123",
  "status": "queued",
  "model": "elevenlabs/music-v2",
  "created": 1776947082
}

// After completion:
{
  "id": "job_abc123",
  "status": "completed",
  "result": {
    "url": "https://media.aigateway.sh/music/abc123.mp3",
    "duration": 30
  }
}

Quickstart

# See docs at https://aigateway.sh/docs

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is ElevenLabs Music V2?
ElevenLabs Music v2 composes songs and instrumental tracks from a prompt or detailed composition plan. It is a music model from Elevenlabs, accessible via AIgateway's OpenAI-compatible API at slug elevenlabs/music-v2.
How much does ElevenLabs Music V2 cost via AIgateway?
Pass-through pricing. See the pricing panel on this page for exact rates.
How do I call ElevenLabs Music V2 from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "elevenlabs/music-v2". The request and response shapes match OpenAI exactly.
Does ElevenLabs Music V2 support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
Can I bring my own Elevenlabs API key (BYOK)?
Yes. Attach a Elevenlabs key in your AIgateway dashboard and this model flips to pass-through — you pay Elevenlabs directly and AIgateway adds no platform fee on those calls.