batch
Run ONE preset over several photos in one call: apply_look, crop_for_platform, product_shot, make_story, make_sticker, recolor, my_looks (applies one of your saved looks, args {name}), with the same arguments for each. Give sources (1 to 10 upload handles like "upload:abc123" from request_upload, one link can carry several photos, or https:// image URLs), preset, and args: that preset's arguments without image (e.g. {marketplace: "etsy_square"} for product_shot). Each photo is opened, processed, its download link(s) collected, and closed; one image is open at a time. A photo that fails (an address that can't be fetched included) is reported and the batch goes on. A look is exported as a JPEG after it is applied. If the time budget can't fit another photo it stops and returns remaining (the sources not yet done): call again with those. Credits are charged as for the single calls (AI selection included). Only presets you can call yourself can be batched.
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": {
"sources": "<sources>",
"preset": "<preset>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | The preset's arguments, without `image`. | |
| preset | Yes | Which preset to run on every photo. | |
| sources | Yes | 1 to 10 photos: "upload:<id>" handles or https:// image URLs. |