music.generate
Generate a music track with Google Lyria (the model behind Flow Music) for a music/ambience placeholder, sized to the clip. Costs credits per track, charged to the project owner. Runs in the background — poll generation.list with placeholderId. The finished track fills the clip (undoable).
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": {
"projectId": "<projectId>",
"placeholderId": "<placeholderId>"
},
"name": "music.generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | lyria-3-clip (30 s) or lyria-3.5 (full song); defaults by the clip's length | |
| lyrics | No | Words to sing, with optional [Verse]/[Chorus] tags. Ignored when instrumental | |
| prompt | No | Genre, mood, instruments, tempo. Defaults to the clip's prompt, then the scene's music prompt | |
| projectId | Yes | ||
| instrumental | No | ||
| placeholderId | Yes | A music or ambience placeholder on an audio track (timeline.add_placeholder; scenario.apply_to_timeline makes a "Score" one) |