Google · Music Generation

Google Lyria 3.5 API

Google DeepMind's flagship music model. Full songs with vocals and lyrics, or instrumentals, up to a few minutes long. Length follows duration_seconds approximately.

$0.081 per track · priced before it runs · no subscription

About Google Lyria 3.5

Google Lyria 3.5 is a music model from Google that writes a track from a style prompt, with your lyrics or without, up to 240 seconds long. It is billed per track, $0.081 per track. You can call it without an account, an API key or a subscription.

Use Google Lyria 3.5 for

  • Background music for videos, games and apps, generated to a style prompt
  • Songs with your own lyrics, or instrumentals with none
  • Jingles and short stings an agent writes and scores in one run

Google Lyria 3.5 specs

Endpoint
POST /api/v1/audio/generations
Price
$0.081 per track
Longest track
240 seconds
Lyrics
Your own lyrics, or none
Instrumental
Yes

How to call Google Lyria 3.5

Pass google/lyria-3.5 as the model field. The first request returns a 402 with the exact price; a signed retry runs it, and the client libraries fold the two into one call — how the payment works. Request and response shapes are in the docs.

curl -X POST https://blockrun.ai/api/v1/audio/generations \
  -H "Content-Type: application/json" \
  -d '{"model": "google/lyria-3.5", "prompt": "upbeat lo-fi beat for a product video", "instrumental": true}'

Google Lyria 3.5 or another music model

Every music model here takes the same request on the same endpoint, so trying another is a one-line change to the model field. The AI Music and Sound Effects page lists all of them side by side.

Google Lyria 3.5 API questions

How much does the Google Lyria 3.5 API cost?

$0.081 per track, including the per-call transaction fee. The exact price is quoted in the 402 response before anything is generated, and you pay per request with no subscription.

Do I need an API key to use Google Lyria 3.5?

No. Each request carries its own payment, so an agent or script can call Google Lyria 3.5 with no account and no key. Teams that prefer one can use an API key with card or invoice billing instead.

How do I call Google Lyria 3.5?

Send a POST to /api/v1/audio/generations with "model": "google/lyria-3.5". The request shape is shown above, and the same endpoint serves every music model on the catalog, so switching models is a one-line change.

How long can a Google Lyria 3.5 track be?

Up to 240 seconds per generation.

Google Lyria 3.5 or another model — which should I use?

Compare it with Google Lyria 3 Clip ($0.041 per track), MiniMax Music 2.5+ ($0.200 per track) in the table above. They take the same request on the same endpoint, so you can try two on one prompt and keep the one you prefer.

Two ways to run this

Get an API key

Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.

Get an API key 

Or let your agent pay per call, in USDC

No account, no API key. Three steps, and the last one is the request this page is about.

  1. 01
    Point your agent at BlockRun

    Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.

    curl -fsSL https://blockrun.ai/ClawRouter-update | bash
  2. 02
    Fund a wallet with USDC

    Send USDC to a wallet on Base, Solana or Arc. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.

  3. 03
    Call Google Lyria 3.5

    The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.

    curl -X POST https://blockrun.ai/api/v1/audio/generations \
      -H "Content-Type: application/json" \
      -d '{"model": "google/lyria-3.5", "prompt": "upbeat lo-fi beat for a product video", "instrumental": true}'