Google AI (Gemini API)Music GenerationAI generation

Google: Lyria 3.5

google-ai.music-gen.lyria-3-5

Compose a full song (about three minutes) from a text prompt with Lyria 3.5 on Google's own API; the MP3 returns inline as base64 with its lyrics or section markers.

Price
$0.08/successAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
Sep 30, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/google-ai.music-gen.lyria-3-5Preview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Path parameters
modelstringRequiredlyria-3.5
  • Path parameters
  • modelstringRequired

    Example: lyria-3.5

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.music-gen.lyria-3-5' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle."}]}]}'

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.08/success, including the service fee.