lyria-3.5
Generate speech, music and audio with Lyria 3.5 from Gemini through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.
Pricing
$0.104 per song.
Limits
- Runs
- In the background
- Returns
- audio
- Longest queue wait
- 1 hour
- Run deadline
- 30 minutes
- Longest run, end to end
- 255 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
input required | JSON | — | The input for the interaction. |
response_format | JSON | — | Audio output format. Lyria 3.5 returns 44.1 kHz stereo audio as MP3 (the default) or WAV. |
Same request in code
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": {}
}
}'Frequently asked questions
How much does Lyria 3.5 cost?
$0.104 per song. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Lyria 3.5 through an API?
Send `POST /v1/runs` with `"provider": "gemini"`, `"model": "lyria-3.5"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Gemini to use Lyria 3.5?
No. Spiral runs it on its own Gemini account and charges your Spiral balance.
Can my AI agent use Lyria 3.5?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.