Lyria 3 music API and MCP for AI agents
TollNode gives Claude, Cursor or any AI agent Lyria 3, Google's music model that composes 30-second clips from a text description, over API and MCP, from $0.055 per clip, with no subscription.
Describe the song, like 'Warm lo-fi hip hop instrumental, mellow electric piano...', and get the audio file link back.
No subscription · Sign-up optional · From $0.055 per call · Charged only when it works · No Google account needed
Compose music: Warm lo-fi hip hop instrumental, mellow electric piano chords, soft vinyl...
TollNode · Google · music-lyria-3$0.055 · 1 audio file
| Result | Detail |
|---|---|
| File | 1 audio link, does not expire |
| Price | one flat price per call |
Real result, shown below.
Lyria 3 audio examples
Made by this node in our own tests, from the request shown under each.
“Warm lo-fi hip hop instrumental, mellow electric piano chords, soft vinyl crackle, laid-back boom-bap drums, 80 bpm”
The request that made it
Send the same body to get this kind of result. Change the prompt or the options to get your own.
{
"prompt": "Warm lo-fi hip hop instrumental, mellow electric piano chords, soft vinyl crackle, laid-back boom-bap drums, 80 bpm"
}What you control with Lyria 3
Lyrics and style
Lyria 3 song generator
Describe the genre and mood, add lyrics if you want.
- Prompt
- Warm lo-fi hip hop instrumental, mellow electric piano chords, soft...
- Returns
- 1 audio link
You get
- prompt: what to create, in plain words
- seed: repeat a result by reusing the number
Result and price
Lyria 3 audio output
One flat price per audio.
- Returns
- 1 audio link
- Price
- flat, clip
- Charged
- only when a result comes back
You get
- result: a link to the finished audio file
- price: one flat price per clip
Failed calls are never charged. Image and audio links returned by TollNode don't expire.
What people ask their AI to do with it
Content creators
Background music for videos
“Write a 30-second calm, upbeat instrumental for my travel vlog”
1 call
Cost today$0.055
Marketers
A jingle for a campaign
“Compose a catchy jingle for a local coffee shop, bright and friendly”
3 calls
Cost today$0.165
Game developers
Menu and level themes
“Make a looping chiptune theme for a puzzle game”
3 calls
Cost today$0.165
Podcasters
Intro and outro music
“Create a short intro sting for a business podcast, confident and modern”
1 call
Cost today$0.055
Founders
Music for a product demo
“Compose a modern, optimistic track for a product launch video”
1 call
Cost today$0.055
Video editors
Temp music for a rough cut
“Give me a 30-second calm piano bed to lay under this rough cut”
1 call
Cost today$0.055
Use it as a Lyria 3 MCP server in Claude, Cursor or Codex
Connect once. Then just ask.
Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
You can use TollNode's Lyria 3 node to make a audio file. Call POST https://tollnode.com/api/v1/nodes/music-lyria-3 with prompt (required). The price is one flat price per call and is charged only when a result is returned. Over MCP, call the "music-lyria-3" tool; use list_models to see prices. Give me the file link when it is done.Price
$0.055
per clip
Charged only when a call returns a result. Failed or empty calls cost $0.
Lyria 3 without a Google account
No subscription, no credit packs
Pay per clip: $0.055 for every call, whatever you ask for.
No Google account, no quota form
Your agent calls TollNode. You never set up billing with the model's maker or request access.
Only charged when it works
If generation fails or returns nothing, the call costs nothing.
One connection, many music models
The same setup also gives your agent other models and live data tools, so it can compare results.
FAQ
- Is this the official Google API?
- No. TollNode is an independent service. It gives your agent access to Lyria 3 through its own API and MCP server, priced per clip, with no Google account needed.
- Can I use it as a Lyria 3 MCP server in Claude?
- Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "music-lyria-3" tool appears with its options and prices.
- How much does a call cost?
- One flat price per clip, the same for every call, shown above. There is nothing to choose that changes it.
- Can I write the lyrics myself?
- Yes. Put them in the request with [Verse] and [Chorus] tags where you like. Describe the style, mood and instruments separately.
- What if nothing comes back?
- You're not charged. TollNode only collects payment when a usable result is returned.
- How long are the links valid?
- They don't expire. Download the file or keep the link.
- How do I pay for Lyria 3 music?
- Your agent sends the request, gets an HTTP 402 with the exact price (from $0.055 per call), signs a USDC payment on Base and retries. Or use an account balance with an API key. Either way you are charged only when a result comes back.
- What does the Lyria 3 music response look like?
- A JSON object with a link to the finished file. The link does not expire, so you can download it later or keep the link.
Works well with
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/music-lyria-3
Input
| Field | Type | Notes |
|---|---|---|
| seed | integer | |
| prompt* | string | Genre, instruments, mood and tempo |
Example response
{
"audio": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
]
}Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.