GeminiText to musicAvailable now
lyria-3.5
lyria-3.5 is a text to music tool from Gemini that runs in the background and returns audio. Pay as you go from $0.104 per song, with one API key.
Try itfrom $0.104 / song
Pricing
$0.104 per song.
Limits
- Runs
- In the background
- Returns
- audio
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- 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": {}
}
}'