Instrumental music
Elo · instrumental arena
Custom pricing for production workloads
Lyria 2 is Google's advanced music generation model capable of creating high-quality, diverse musical compositions from text.
google/lyria2POST https://api.aimlapi.com/v2/generate/audioLyria 2 is Google's advanced music generation model capable of creating high-quality, diverse musical compositions from text.
Lyria 2 API Pricing
- Pricing on request
Audio generation
Create speech, sound effects, or music from prompts.
Soundtrack generation for short-form video is documented as a use case for Lyria 2, with the model used to create music for brief video content.
Music AI Sandbox experiments for composers is another documented use case, with Lyria 2 described as powering Music AI Sandbox features for creative exploration.
Royalty-tracked Dream Track covers in YouTube Shorts are also listed, indicating Lyria 2 is used for creating music experiences inside YouTube Shorts.
Prototyping film, game, and ad scores is documented as a use case, with Lyria 2 presented as suitable for score prototyping across those media contexts.
Human-preference results for Lyria 2 in instrumental music, next to models available on AI/ML API. Data retrieved Nov 3, 2026.
Elo · instrumental arena
USD per generation
Arena results for models you can call with the same API key.
Blind votes on instrumental tracks generated from a prompt. Lyria 2 ranks #18 of 19.
| Usage | Price | Unit |
|---|---|---|
| Music generation | $0.1 | per generation |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API rates for 4 models, per generation.
| Model | Per generation |
|---|---|
| $0.1 | |
| $0.03 | |
| $0.035 | |
| $0.15 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v2/generate/audio' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/lyria2",
"prompt": "An upbeat lo-fi hip hop instrumental with warm piano chords, soft vinyl crackle and a relaxed drum groove"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "google/lyria2",
"prompt": "An upbeat lo-fi hip hop instrumental with warm piano chords, soft vinyl crackle and a relaxed drum groove"
}
response = requests.post("https://api.aimlapi.com/v2/generate/audio", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v2/generate/audio", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "google/lyria2",
"prompt": "An upbeat lo-fi hip hop instrumental with warm piano chords, soft vinyl crackle and a relaxed drum groove"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Lyria 2 takes audio, text as input and returns audio.
Lyria 2 costs $0.1 per generation on AI/ML API, billed as you go with no subscription.
Lyria 2 is billed per generation, a fixed charge per output rather than by prompt length.
Lyria 2 was built by Google.
Use google/lyria2 as the model id on AI/ML API.
Yes. Lyria 2 is served through AI/ML API, so the same key and endpoint format used for other models applies.
Use google/lyria2 as the model parameter. Requests go to https://api.aimlapi.com/v2/generate/audio with your AI/ML API key.