# Google Lyria — card for AI agents

Google music generation models (Lyria 2, 3, 3.5) on the Gemini API and Vertex AI.

Category: AI music and sound generators · maker Google · checked 2026-11-04

## Price
- Price: Paid
- Free tier: None on the Gemini API.
- Usage price: Gemini API: Lyria 3 Clip $0.04/song; Lyria 3 Pro and 3.5 $0.08/song.
- Pricing page: https://ai.google.dev/gemini-api/docs/pricing

## License
Vertex AI Lyria 3 Preview terms, Google Cloud Service Specific Terms and Gemini  — https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3

- commercial: **conditions** (Commercial use with conditions)
  > Customers may elect to use it for production or commercial purposes, or disclose Generated Output to third-parties
  (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3)
- attribution: **no** (No credit needed)
  > Customers may elect to use it for production or commercial purposes, or disclose Generated Output to third-parties
  (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3)
- in app: **conditions** (Ship inside your app with conditions)
  > Customers may elect to use it for production or commercial purposes, or disclose Generated Output to third-parties
  (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3)
- youtube: **conditions** (Monetized YouTube with conditions)
  > Customers may elect to use it for production or commercial purposes, or disclose Generated Output to third-parties
  (https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3)
- ai training: **banned**
  > You may not use the Services to develop models that compete with the Services
  (https://ai.google.dev/gemini-api/terms)
- bots: **allowed**
  > call the `interactions.create` method with a text prompt.
  (https://ai.google.dev/gemini-api/docs/music-generation)

## Rules to follow
- Do not prompt with artist voices or copyrighted lyrics; such prompts are blocked.
- Expect a SynthID watermark on all output.

## Can an AI agent use it by itself?
**No** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- Gemini API: POST https://generativelanguage.googleapis.com/v1beta/interactions (Interactions API, interactions.create) with a text prompt; SDKs for Python, JavaScript, Java, Go. Also available on Vertex AI. (sign-in: api-key)
- Formats: mp3, wav
- Not allowed: Prompts that ask for specific artist voices or copyrighted lyrics are blocked by safety filters.
- Not allowed: All generated audio carries a SynthID watermark.
- Not allowed: Vertex Lyria 3 is a Preview offering under the Pre-GA Offerings Terms; output is MP3 44.1 kHz.
- Not allowed: Gemini API terms bar using the service to build competing models.

## How to connect
- Public API
- API docs: https://ai.google.dev/gemini-api/docs/music-generation (API key needed)
- API limits: Lyria 2 clips 32.8 s; Lyria 3 Clip 30 s; Lyria 3 Pro 184 s; Lyria 3.5 about 2 min.
- npm: `npm install @google/genai`
- Website: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/music/overview

## Notes
Model IDs: lyria-002, lyria-3-clip-preview, lyria-3-pro-preview, lyria-3.5.

## Lines to paste into your prompt or AGENTS.md

```
- Google Lyria (AI music and sound generators). Google music generation models (Lyria 2, 3, 3.5) on the Gemini API and Vertex AI. Price: paid; commercial use with conditions; no credit needed; ship inside your app with conditions; no AI training on its content.
  Connect: API docs https://ai.google.dev/gemini-api/docs/music-generation (API key needed); npm @google/genai. Limits: Lyria 2 clips 32.8 s; Lyria 3 Clip 30 s; Lyria 3 Pro 184 s; Lyria 3.5 about 2 min.
  Get files: Gemini API: POST https://generativelanguage.googleapis.com/v1beta/interactions (Interactions API, interactions.create) with a text prompt; SDKs for Python, JavaScript, Java, Go. Also available on Vertex AI (mp3, wav).
  Not allowed: Prompts that ask for specific artist voices or copyrighted lyrics are blocked by safety filters.
  Not allowed: All generated audio carries a SynthID watermark.
  Not allowed: Vertex Lyria 3 is a Preview offering under the Pre-GA Offerings Terms; output is MP3 44.1 kHz.
  Not allowed: Gemini API terms bar using the service to build competing models.
  Rule: Do not prompt with artist voices or copyrighted lyrics; such prompts are blocked.
  Rule: Expect a SynthID watermark on all output.
  License: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3 (checked 2026-11-04; details: https://agentgid.com/assets/google-lyria/)
```

Not verified: Terms not read; Vertex pricing and indemnity not readable; pip package name not stated.

## Links
- AgentGid page: https://agentgid.com/assets/google-lyria/
- Is it free for commercial use? https://agentgid.com/assets/google-lyria/commercial-use/
- Source: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/music/generate-music
- Source: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/music/overview
- Source: https://ai.google.dev/gemini-api/docs/music-generation
- Source: https://ai.google.dev/gemini-api/docs/pricing
- Source: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
