Batches
Start a batch
Run one skill once for each input set in a list, in the background.
POST
Start a batch
inputs is the list: one object of the skill’s inputs per run, 1 to 10,000 of them. Every input is checked before anything starts. One bad input refuses the list with 422, each problem named by its position, and nothing runs.
The answer comes at once (202) with the batch, as Get a batch shows it. Poll its poll_url.
Each input is an ordinary run and is charged like one. Check the price first with Estimate a batch. Send an
Idempotency-Key so a retry does not start a second list. See Idempotency.
What batches are: Run one skill over many inputs.
Needs skills:invoke. MCP tool: run_skill_batch.Authorizations
Headers
Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.
Required string length:
1 - 255Body
application/json
Body of POST /v1/skills/{slug}/batches (and of its /estimate).
Response
Successful Response

