Google Lyria 2 API - AI Music Generation | Muapi: AI Audio & Music

Call the Google Lyria 2 API for text-to-music. 30-second instrumentals. $0.06 per generation, async polling and webhooks. Lyria 2 is Google's instrumental music generation model. Describe the style and mood in a text prompt and get a roughly 30-second instrumental track as an MP3.

Interactive model controls

Lyria 2 is Google's instrumental music generation model. Describe the style and mood in a text prompt and get a roughly 30-second instrumental track as an MP3.

📝

Overview

About this model

Lyria 2 is Google's instrumental music generation model. Describe the style and mood in a text prompt and get a roughly 30-second instrumental track. Through Muapi you call it with a single endpoint and receive a hosted MP3 asynchronously via polling or webhook.

1Instrumental background music
2Cinematic and ambient beds
3Game and app audio
4Music for short-form video
💰

Pricing & Value

Cost analysis

muapiapp$0.06

Flat $0.06 per generation, matching Google's official API price.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

Describe the instrumental music: genre, mood, tempo and instruments (up to 2,000 characters).

Default ValueA cinematic orchestral build with soaring strings, deep brass and thundering timpani.
📖

Implementation Guide

Developer documentation

How to Use Lyria 2

  1. Describe the music: genre, mood, tempo, instruments (and lyrics for vocals) in prompt, up to 2,000 characters.
  2. Submit: POST to /api/v1/lyria-2 with your x-api-key; you receive a request_id.
  3. Collect the result: poll /api/v1/predictions/{request_id}/result or pass a webhook URL to be notified when the MP3 is ready.
❓

Common Questions

Frequently asked

How long is the generated audio?

Roughly 30-second instrumental tracks.

What format is the output?

A hosted MP3 file.

How much does Lyria 2 cost?

$0.06 per generation, matching Google's official API price.