Google Lyria 3 Instrumental Music & Audio Stem Composer
compose_lyria_music_trackGenerates instrumental music tracks, ambient loops, and multi-instrument arrangements from genre, tempo, and mood prompts for scores, stems, and rhythmic audio.
Instructions
Composes studio-grade instrumental music tracks, ambient loops, and multi-instrument arrangements from genre, tempo, and mood prompts using Google Lyria 3. Use when generating musical scores, soundtrack stems, or rhythmic audio loops; for converting written text into spoken human voice narration (TTS), use synthesize_gemini_speech_audio instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'prompt' ('genre_preset' defaults to 'cinematic_synth'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "compose_lyria_music_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Musical style, instrumentation, BPM tempo, and harmonic mood description. | |
| genre_preset | No | Primary acoustic or electronic genre; defaults to 'cinematic_synth' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Music generation model executed ('lyria-3-clip'). | |
| notice | Yes | Composition completion notice. | |
| output | Yes | Generated audio track payload and arrangement metadata. | |
| success | Yes | True when Lyria 3 audio synthesis succeeded. |