Run a batch
run_batchRun the same paid tool on up to 50 inputs at once (for example 10 product shots, 20 ad variants or one video per language), with one quote for the whole batch and one approval. Call it once without max_credits for the total, tell the user, then call it again with the same items plus max_credits. The batch itself is free; each item uses credits like the tool would on its own, and failed items are refunded. Returns a batch_id; call get_batch for the results.
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": {
"tool": "<tool>",
"items": "<items>"
},
"name": "run_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional short name for this batch, shown in get_batch. | |
| tool | Yes | The paid PopNow tool to run for every item, for example create_image, create_video, edit_image, create_3d or translate_video. | |
| items | Yes | 1 to 50 argument objects, one per run, each exactly what you would pass to that tool (leave out max_credits). Example for create_image: [{"prompt": "a red sneaker on sand"}, {"prompt": "a blue sneaker on snow"}]. | |
| max_credits | No | The most PopNow credits the user agreed to spend on the whole batch. Only set it after the user confirmed the quoted total. |