Generate episode music
generate_episode_musicGenerate a background music track for an episode. Requires the episode to already have an assembled video. Spends credits. Returns a job id — poll it with get_job.
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": {
"episode_id": "<episode_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "generate_episode_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | The music prompt for this track: genre, mood, instruments, tempo. It is saved as the project's music prompt, so later music uses it too. Without it, the project's saved prompt is used, or the general default. | |
| episode_id | Yes | Episode id. | |
| idempotency_key | Yes | Stable key identifying this generation request. Reuse the SAME key when retrying the same request — the original job is returned and no second charge is made. Use a NEW key when you deliberately want another generation. |