Generate episode music
generate_musicAn instrumental score for one episode (ElevenLabs Music v2.5), composed scene by scene: each scene is a section as long as the scene, so the cold open hits on the hook, the music sits low under dialogue, peaks on the spike and ends on a cliffhanger sting. prompt: the direction for the score, any language: genre and sound, instruments, mood, tempo (BPM), key, era (e.g. "dark hybrid orchestral revenge score, pulsing synth bass, taiko, 90 BPM, C minor"); it is saved as the episode's music_prompt. Without one, the episode's saved music_prompt, else a brief from the drama's genre and visual style. get_episode_music shows the cue sheet first (free). Render mixes it under the clips' own sound, ducked when someone speaks. Costs credits (see estimate_cost); the result arrives as a take: poll with get_jobs or wait_for_jobs.
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>"
},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mood | No | Older: a get_catalog("music_moods") key, added to the direction | |
| model | No | A model id from list_models; omitted = the drama's default for this kind | |
| notes | No | Extra direction for this generation only (not saved to the story) | |
| prompt | No | The score's direction; saved as the episode's music_prompt | |
| seconds | No | Length of the score in seconds (10–300). Omit to match the episode. | |
| episode_id | Yes | The episode id (ep_…), from get_drama_context or get_episode. | |
| idempotency_key | No | Any unique string you choose; resending the same key returns the first job instead of paying twice |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||