Models/Audio/Lyria API
Live3 models

Lyria API — Google Lyria 3 Pro, Lyria 3 & Lyria 2 Music Generation

The Lyria API on Muapi gives you Google's Lyria music models through one REST integration: the Lyria 3 Pro API for full songs up to three minutes at $0.08 per generation, the Lyria 3 API for clips up to 30 seconds at $0.04, and the Lyria 2 API for roughly 30-second instrumentals at $0.06.Describe the genre, mood, tempo, instruments, and structure in a text prompt of up to 2,000 characters, submit it with your Muapi key, and poll the request ID for an MP3.

i

Lyria 3 Pro, Lyria 3, and Lyria 2 are live on Muapi

Pick a Lyria model by track length and price, write a text prompt, and poll the returned request ID for an MP3 file.

Lyria 3 Pro

Full-length songs up to three minutes1 models
MusicNewFeatured
Lyria 3 Pro

Lyria 3 Pro

Google's flagship music model: compose a full-length song of up to three minutes from a text prompt, at $0.08 per generation.

Songs up to 3 min
$0.08/generation
Try Model

Lyria 3

Short music clips up to 30 seconds1 models
MusicNew
Lyria 3

Lyria 3

Short, high-quality music clips of up to 30 seconds for jingles, intros, loops, and background tracks, at $0.04 per generation.

Clips up to 30 secFast
$0.04/generation
Try Model

Lyria 2

Roughly 30-second instrumental tracks1 models
MusicNew
Lyria 2

Lyria 2

Google's instrumental music model: a roughly 30-second instrumental track from a style and mood prompt, at $0.06 per generation.

~30 sec instrumentals
$0.06/generation
Try Model

What is the Lyria API?

Lyria is Google's family of text-to-music models. Muapi exposes three of them as separate endpoints — lyria-3-pro, lyria-3, and lyria-2 — that share one request shape: a single prompt field of up to 2,000 characters describing the music. Each returns an MP3 asynchronously via polling or webhook.

The Lyria 3 Pro API composes full-length songs up to three minutes at $0.08 per generation. The Lyria 3 API produces clips up to 30 seconds at $0.04 per generation. The Lyria 2 API produces roughly 30-second instrumentals at $0.06 per generation. All three use the same Muapi key, the same submit-and-poll flow, and pay-per-generation billing.

Lyria API capabilities

Full songs with Lyria 3 Pro

Describe genre, mood, tempo, instruments, structure, and lyrics if you want vocals, and receive a song of up to three minutes.

Short clips with Lyria 3

Generate jingles, intros, loops, and background tracks of up to 30 seconds.

Instrumentals with Lyria 2

Get a roughly 30-second instrumental track from a style and mood description.

One request shape

All three endpoints take a single prompt of up to 2,000 characters and return an MP3, so switching models only changes the endpoint name.

Pay per generation

Lyria 3 is $0.04, Lyria 2 is $0.06, and Lyria 3 Pro is $0.08 per generation, with no subscription.

Lyria API use cases

Songs and demos

Draft full-length songs and concept demos with Lyria 3 Pro.

Jingles and intros

Create short branded stings, podcast intros, and loops with Lyria 3.

Background music

Generate instrumental beds for video, games, and apps with Lyria 2 or Lyria 3.

Prototyping

Try a short Lyria 3 clip to test a prompt before committing to a full Lyria 3 Pro song.

Lyria 3 vs Lyria 2 vs Lyria 3 Pro: pricing and limits

ModelProviderPriceBest For
Lyria 3 ProGoogle$0.08/generationFull songs up to 3 minutes
Lyria 3Google$0.04/generationMusic clips up to 30 seconds
Lyria 2Google$0.06/generationRoughly 30-second instrumentals

All three accept a prompt of up to 2,000 characters and return an MP3.

Lyria API examples

Submit a prompt with your Muapi API key, save the request ID, and poll the standard prediction result endpoint for the MP3 URL.

Generate a song with the Lyria 3 Pro API

curl -X POST https://api.muapi.ai/api/v1/lyria-3-pro \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"An upbeat synth-pop song about driving at night, shimmering arpeggios, punchy drums, female vocals, anthemic chorus."}'

# Response: {"request_id":"REQUEST_ID"}

lyria-3-pro composes a full-length song of up to three minutes at $0.08 per generation.

Generate a clip with the Lyria 3 API

curl -X POST https://api.muapi.ai/api/v1/lyria-3 \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A warm lo-fi hip hop loop with mellow Rhodes chords, vinyl crackle and a laid-back drum groove."}'

# Response: {"request_id":"REQUEST_ID"}

lyria-3 returns a clip of up to 30 seconds at $0.04 per generation.

Generate an instrumental with the Lyria 2 API

curl -X POST https://api.muapi.ai/api/v1/lyria-2 \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A cinematic orchestral build with soaring strings, deep brass and thundering timpani."}'

# Response: {"request_id":"REQUEST_ID"}

lyria-2 returns a roughly 30-second instrumental at $0.06 per generation.

Poll the audio result

curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
  -H "x-api-key: YOUR_API_KEY"

# Poll until status is completed, then read the generated MP3 URL from outputs.

Poll until status is completed, then read the MP3 URL from the response.

Lyria API FAQ

What is the Lyria API?

The Lyria API on Muapi exposes Google's Lyria text-to-music models — Lyria 3 Pro, Lyria 3, and Lyria 2 — as separate endpoints that take a text prompt and return an MP3.

How much does the Lyria 3 Pro API cost?

The Lyria 3 Pro API costs $0.08 per generation, for a full-length song of up to three minutes.

What is the difference between Lyria 3 and Lyria 2?

Lyria 3 produces music clips of up to 30 seconds at $0.04 per generation. Lyria 2 produces roughly 30-second instrumental tracks at $0.06 per generation. Lyria 3 Pro is the longer option: songs up to three minutes at $0.08.

How much does the Lyria 3 API cost?

The Lyria 3 API costs $0.04 per generation for a clip of up to 30 seconds. The Lyria 2 API costs $0.06 per generation.

How long can the prompt be?

All three Lyria endpoints accept a prompt of up to 2,000 characters. Describe genre, mood, tempo, and instruments; for Lyria 3 Pro you can also describe structure and include lyrics if you want vocals.

What format does the Lyria API return?

Each endpoint returns an MP3 file URL from the standard prediction result endpoint once the status is completed.

How do I call the Google Lyria API?

Create a Muapi API key, POST a prompt to /api/v1/lyria-3-pro, /api/v1/lyria-3, or /api/v1/lyria-2, then poll /api/v1/predictions/{request_id}/result or pass a webhook URL.

Ready to generate music with the Lyria API?

Use one Muapi API key across Lyria 3 Pro, Lyria 3, and Lyria 2.