Lyria 2 API

Lyria 2 is Google's advanced music generation model capable of creating high-quality, diverse musical compositions from text.

Modalities
Audio, TextAudio
Price
$0.1per generation
Model type
Music generation
Released
Dec 5, 2025

Lyria 2 overview

Music sample

Lyria 2

Generated through AI/ML API on Nov 3, 2026

0:000:32

Generated from the text and settings shown here.

Lyria 2 specs

Model ID
google/lyria2
Developer
Google
Input
Audio, Text
Output
Audio
Endpoint
POST https://api.aimlapi.com/v2/generate/audio

Lyria 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.

Use cases

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.

Lyria 2 benchmarks by Artificial Analysis

Human-preference results for Lyria 2 in instrumental music, next to models available on AI/ML API. Data retrieved Nov 3, 2026.

Instrumental music

Elo · instrumental arena

AI/ML API price

USD per generation

Models on AI/ML API

Arena results for models you can call with the same API key.

Instrumental music

Blind votes on instrumental tracks generated from a prompt. Lyria 2 ranks #18 of 19.

Lyria 2 API pricing

Lyria 2 pricing in US dollars
UsagePriceUnit
Music generation$0.1per generation

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Lyria 2 vs other music models: prices

AI/ML API rates for 4 models, per generation.

AI/ML API prices in USD per generation
ModelPer generation
Lyria 2$0.1
MiniMax Music 2.0$0.03
MiniMax Music$0.035
Music 2.6$0.15

How to use the Lyria 2 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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"
}'

Related articles

All posts

Lyria 2 FAQ

What inputs and outputs does Lyria 2 support?

Lyria 2 takes audio, text as input and returns audio.

How much does Lyria 2 cost?

Lyria 2 costs $0.1 per generation on AI/ML API, billed as you go with no subscription.

How is Lyria 2 billed?

Lyria 2 is billed per generation, a fixed charge per output rather than by prompt length.

Who created Lyria 2?

Lyria 2 was built by Google.

How do I call Lyria 2 on AI/ML API?

Use google/lyria2 as the model id on AI/ML API.

Is Lyria 2 available through a single API key?

Yes. Lyria 2 is served through AI/ML API, so the same key and endpoint format used for other models applies.

What is the Lyria 2 model ID?

Use google/lyria2 as the model parameter. Requests go to https://api.aimlapi.com/v2/generate/audio with your AI/ML API key.

Start building with Lyria 2

Lyria 2 API

google/lyria2

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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"
}'