generate_music
Generate full songs, loops, and musical segments from text descriptions. Create melodic compositions with structured rhythms using Lyria models in WAV, MP3, or FLAC formats.
Instructions
Generates full songs, loops, or musical segments. Best for melodic content, rhythm, and structured compositions. (PAID MODELS - Pro: $0.08, Clip: $0.04).
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": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the music (e.g., 'An upbeat jazz track with a fast tempo'). | |
| model | No | The Lyria model to use. 'lyria-3-pro-preview' (Full songs, $0.08) or 'lyria-3-clip-preview' (30s clips, $0.04). Defaults to Pro. | |
| format | No | Output format (wav, mp3, flac). | |
| auto_play | No |