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.
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.
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.
Google's flagship music model: compose a full-length song of up to three minutes from a text prompt, at $0.08 per generation.
Short, high-quality music clips of up to 30 seconds for jingles, intros, loops, and background tracks, at $0.04 per generation.
Google's instrumental music model: a roughly 30-second instrumental track from a style and mood prompt, at $0.06 per generation.
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.
Describe genre, mood, tempo, instruments, structure, and lyrics if you want vocals, and receive a song of up to three minutes.
Generate jingles, intros, loops, and background tracks of up to 30 seconds.
Get a roughly 30-second instrumental track from a style and mood description.
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.
Lyria 3 is $0.04, Lyria 2 is $0.06, and Lyria 3 Pro is $0.08 per generation, with no subscription.
Draft full-length songs and concept demos with Lyria 3 Pro.
Create short branded stings, podcast intros, and loops with Lyria 3.
Generate instrumental beds for video, games, and apps with Lyria 2 or Lyria 3.
Try a short Lyria 3 clip to test a prompt before committing to a full Lyria 3 Pro song.
| Model | Provider | Price | Best For |
|---|---|---|---|
| Lyria 3 Pro | $0.08/generation | Full songs up to 3 minutes | |
| Lyria 3 | $0.04/generation | Music clips up to 30 seconds | |
| Lyria 2 | $0.06/generation | Roughly 30-second instrumentals |
All three accept a prompt of up to 2,000 characters and return an MP3.
Submit a prompt with your Muapi API key, save the request ID, and poll the standard prediction result endpoint for the MP3 URL.
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.
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.
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.
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.
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.
The Lyria 3 Pro API costs $0.08 per generation, for a full-length song of up to three minutes.
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.
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.
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.
Each endpoint returns an MP3 file URL from the standard prediction result endpoint once the status is completed.
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.
Use one Muapi API key across Lyria 3 Pro, Lyria 3, and Lyria 2.