Generate many at once
generate_batchStarts many generations in one call, e.g. every scene video of episode 1, or all portraits and plates. Checks first that the total fits the balance (and the connection's spend cap); if not, nothing starts and the answer says how much is missing. With idempotency_key, each item uses ":". Jobs queue and run a few at a time. 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": {
"drama_id": "<drama_id>",
"items": "<items>"
},
"name": "generate_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | What to generate: each item has its type (scene_video, character_sheet, location_plate…) and the id of its target. | |
| drama_id | Yes | The drama id (drm_…), from list_dramas or create_drama. | |
| 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 | |||