Eleven Music v2.5 on Vercel AI Gateway

Eleven Music · ElevenLabs

Serverless

Last refreshed 2026-11-25. Next refresh: weekly.

Why use Eleven Music v2.5 on Vercel AI Gateway?

Vercel AI Gateway offers Eleven Music v2.5 with pay-as-you-go audio pricing at $0.0025/second. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.

Compare Eleven Music v2.5 across 4 providers to find the best fit for your use case
Audio / sec
$0.0025
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
elevenlabs/music-v2.5

Request example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="elevenlabs/music-v2.5",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "elevenlabs/music-v2.5", not the LLMReference slug "eleven-music-v2-5".
  • creator/model-name e.g. kwaipilot/kat-coder-pro-v2
  • The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.

Compare Eleven Music v2.5 Across Providers

ProviderInput (per 1M)Output (per 1M)
ElevenLabs API——
fal API——
AtlasCloud——
Vercel AI Gateway——

Pricing

TypeRate
Audio second$0.0025/sec

Capabilities

Audio

About Eleven Music v2.5

Eleven Music v2.5 is ElevenLabs’ music-generation model for prompted songs, instrumentals and reference-guided composition. It supports composition plans and section editing, with selectable access through ElevenMusic, ElevenCreative and the ElevenLabs API.

Get Started