# Lyria 3.5 · Music Generation

Generate speech, music and audio with Lyria 3.5 · Music Generation from Gemini through one Spiral API key. Composes music from a text prompt or an image with Google's Lyria 3.5, returning 44.1 kHz stereo audio as an MP3 or WAV file. Google refuses prompts that name a real artist or include explicit lyrics, and resending the same prompt fails again: describe the style, mood and instruments instead. It runs in the background and returns audio. Pay as you go, with no subscription.

- Provider: Gemini
- Category: Audio
- Runs: In the background
- Returns: audio
- Released: 2026-09-03
- Tool id: `gemini` / `lyria-3.5`
- Model: `google/lyria-3.5` (the same on every tool of this model)
- Page: https://spiral.ai/tools/gemini/lyria-3.5

## Pricing

$0.104 per song.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 255 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `input` (required) | JSON |  | — | The prompt: text, with an optional image. Lyria sets the length itself; a length named in the prompt is only a guide and short requests come back longer, so trim the audio for an exact length. For a set length, use a music model with a length setting. |
| `response_format` | JSON |  | — | Audio output format. Lyria 3.5 returns 44.1 kHz stereo audio as MP3 (the default) or WAV. |

## How to use Lyria 3.5 · Music Generation

From your AI agent, the command line or your own code. One Spiral account runs it every way.

### Use Spiral's MCP server

1. **Add Spiral's MCP server**: Any MCP client takes https://api.spiral.ai/mcp with your API key as a Bearer token. In Claude Code:

```bash
claude mcp add spiral --transport http https://api.spiral.ai/mcp \
  --header "Authorization: Bearer $SPIRAL_API_KEY"
```

2. **Ask for Lyria 3.5 · Music Generation**: Your agent finds it on Spiral, shows the price and runs it.

```
Use Lyria 3.5 · Music Generation from Gemini on Spiral with my own input.
```

### Use the Spiral skill

1. **Send your agent this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

3. **Ask for Lyria 3.5 · Music Generation**: Your agent finds it on Spiral, shows the price and runs it.

```
Use Lyria 3.5 · Music Generation from Gemini on Spiral with my own input.
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

2. **Run Lyria 3.5 · Music Generation**: Waits for the result and saves the run and its files under .spiral/runs.

```bash
spiral runs create \
  --provider gemini \
  --model lyria-3.5 \
  --input '{
    "input": "<input>"
  }' \
  --wait --save
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Lyria 3.5 · Music Generation**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "gemini",
    "model": "lyria-3.5",
    "input": {
      "input": "<input>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=gemini&model=lyria-3.5

## Use Lyria 3.5 · Music Generation in your AI agent

- [Amp](https://spiral.ai/integrations/amp/lyria-3-5)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/lyria-3-5)
- [Claude](https://spiral.ai/integrations/claude-desktop/lyria-3-5)
- [Claude Code](https://spiral.ai/integrations/claude-code/lyria-3-5)
- [Cline](https://spiral.ai/integrations/cline/lyria-3-5)
- [Codex](https://spiral.ai/integrations/codex/lyria-3-5)
- [Cursor](https://spiral.ai/integrations/cursor/lyria-3-5)
- [Devin](https://spiral.ai/integrations/devin/lyria-3-5)
- [dots](https://spiral.ai/integrations/dots/lyria-3-5)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/lyria-3-5)
- [Gemini](https://spiral.ai/integrations/gemini/lyria-3-5)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/lyria-3-5)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/lyria-3-5)
- [goose](https://spiral.ai/integrations/goose/lyria-3-5)
- [Grok](https://spiral.ai/integrations/grok/lyria-3-5)
- [Grok Build](https://spiral.ai/integrations/grok-build/lyria-3-5)
- [Hermes](https://spiral.ai/integrations/hermes/lyria-3-5)
- [Instinct](https://spiral.ai/integrations/instinct/lyria-3-5)
- [Manus](https://spiral.ai/integrations/manus/lyria-3-5)
- [Muse](https://spiral.ai/integrations/muse/lyria-3-5)
- [Muse Code](https://spiral.ai/integrations/muse-code/lyria-3-5)
- [n8n](https://spiral.ai/integrations/n8n/lyria-3-5)
- [Notion](https://spiral.ai/integrations/notion/lyria-3-5)
- [OpenClaw](https://spiral.ai/integrations/openclaw/lyria-3-5)
- [opencode](https://spiral.ai/integrations/opencode/lyria-3-5)
- [Perplexity](https://spiral.ai/integrations/perplexity/lyria-3-5)
- [Raycast](https://spiral.ai/integrations/raycast/lyria-3-5)
- [VS Code](https://spiral.ai/integrations/vscode/lyria-3-5)
- [Windsurf](https://spiral.ai/integrations/windsurf/lyria-3-5)
- [Zapier](https://spiral.ai/integrations/zapier/lyria-3-5)

## Also available from

- [Lyria 3.5 on fal](https://spiral.ai/tools/fal/google/lyria-3.5)

## Provider

- [Google Gemini](https://spiral.ai/providers/gemini)

## Related tools

- [Gemini 3.8 Flash TTS](https://spiral.ai/tools/gemini/gemini-3.8-flash-tts)
- [GPT-4o mini Transcribe](https://spiral.ai/tools/openai/gpt-4o-mini-transcribe)
- [Gemini 3.8 Flash-Lite TTS](https://spiral.ai/tools/gemini/gemini-3.8-flash-lite-tts)
- [GPT-4o mini TTS](https://spiral.ai/tools/openai/gpt-4o-mini-tts)
- [Gemini 3.5 Transcribe](https://spiral.ai/tools/gemini/gemini-3.5-transcribe)
- [Insanely Fast Whisper (with video)](https://spiral.ai/tools/replicate/turian/insanely-fast-whisper-with-video)

## Common questions

### Lyria 3.5 · Music Generation

**How much does Lyria 3.5 · Music Generation cost?**

$0.104 per song. It is paid from your prepaid Spiral balance as you use it, with no subscription.

**How long does Lyria 3.5 · Music Generation take to run?**

It runs in the background: the request returns a run id at once, and you poll `GET /v1/runs/{id}` or name a webhook to hear when it finishes. A run can take at most 255 minutes, end to end.

**What input does Lyria 3.5 · Music Generation take?**

It needs `input`. It also takes 1 optional field: `response_format`. Each field's type, allowed values and default are listed on this page.

**What does Lyria 3.5 · Music Generation return?**

A finished run returns audio output. Each output up to 5 GB is stored as a copy; a larger output comes back as the provider's own link where the provider gives one, and otherwise that output is not delivered and you are not charged for it; a run with nothing delivered fails as too large, without a charge.

**What are the limits of Lyria 3.5 · Music Generation?**

Longest queue wait: 1 hour; largest inline input: 1 MB; largest input file: 2 GB.

**How do I use Lyria 3.5 · Music Generation through an API?**

Send `POST /v1/runs` with `"provider": "gemini"`, `"model": "lyria-3.5"` and its input, using one Spiral API key.

**How do I see what a run of Lyria 3.5 · Music Generation will cost before I start it?**

Send the same request to `POST /v1/estimate`: it prices that exact input without running it.

**What happens if a run of Lyria 3.5 · Music Generation fails?**

Only for work the provider billed. A run that fails before the provider does billable work is not charged, and its hold goes back to your balance; a failure the provider bills for is charged for the work the provider billed, at the tool's price. Each failed run's error says why it failed and what it was charged.

**Do I need an account with Gemini to use Lyria 3.5 · Music Generation?**

No. Spiral runs it on its own Gemini account and charges your Spiral balance.

**Can my AI agent use Lyria 3.5 · Music Generation?**

Yes. Any agent connected to Spiral's MCP server, CLI or agent skill runs it with the same API key, and there are guides for using it from Amp, ChatGPT, Claude, Claude Code, Cline, Codex, Cursor, Devin, dots, Factory Droid, Gemini, Gemini CLI, Google Antigravity, goose, Grok, Grok Build, Hermes, Instinct, Manus, Muse, Muse Code, n8n, Notion, OpenClaw, opencode, Perplexity, Raycast, VS Code, Windsurf and Zapier.

**Can I run Lyria 3.5 · Music Generation from another provider?**

Yes: Lyria 3.5 on fal. Each route has its own price and limits on its own page.

**Can I cap what an agent spends on Lyria 3.5 · Music Generation?**

Yes. Give each agent its own API key with a spend cap: a run whose estimate would pass the cap is refused before it starts.

