Generate a batch of images
grok_batchRuns multiple image generation jobs in sequence, checks the full batch against the daily budget before starting, and continues after individual job errors unless budget limits stop it.
Instructions
Run several image jobs one after another. Each job: {"prompt", "name", "aspect"?, "n"? (1..4, default 1),
"mode"?, "max_side"?, "size"?, "keep_original"?, "timeout_s"?, "out_dir"?}.
The whole batch is checked first (job count, total submissions vs today's budget); nothing runs if it does not fit.
Batches needing more than confirm_over submissions need confirm=true (ask the user first).
Returns {"results": [...], "submissions_planned", "usage"}; a failed job gets an "error" and the batch goes on,
except budget/no-extension errors, which stop it and mark the rest "skipped".
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": {
"jobs": "<jobs>"
},
"name": "grok_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | Yes | ||
| confirm | No | ||
| out_dir | No |