/run traffic, so submitting a batch never delays your interactive requests.
Batch Jobs is currently in beta. Join our Discord to provide feedback and get support.
When to use batch vs /run
Choose batch when your workload can tolerate multi-hour latency — for example, nightly dataset processing, pre-computing embeddings, or running evaluations.
Batch lifecycle
A batch moves through the following states:- DRAFT — The batch is a draft. You can add, update, or remove individual requests. Batch workers have not started any work.
- FINALIZED — The batch is locked; no further requests can be added or removed. Batch workers process the requests while the batch stays in this state, and there is no separate
RUNNINGorCOMPLETEDbatch status. Track progress through therequestTotal,requestInProgress,requestCompleted, andrequestFailedcounts — all requests have finished whenrequestCompleted + requestFailedequalsrequestTotal. - FAILED — The batch itself failed before or during execution (distinct from individual request failures in a batch whose other requests finished successfully).
- CANCELLED — You cancelled the batch. See Cancellation for details.
/finalize before the batch begins processing. A DRAFT batch will not be executed.
API walkthrough
1. Create a batch
[] to create a batch and add requests later, or send a populated array to include an initial list of requests. Each element uses the same shape as a standard /run call — a JSON object with an input field.
2. Add more requests
While the batch is DRAFT, append additional requests:3. Finalize the batch
Once you’ve added all requests, finalize the batch to make it eligible for execution:FINALIZED and requests are locked. You can no longer add or remove individual requests.
4. Poll batch status
Check overall progress by fetching the batch summary:status: FINALIZED; there is no RUNNING or COMPLETED status. All requests have finished when requestCompleted + requestFailed equals requestTotal. The batch reaches a terminal state only when status is FAILED or CANCELLED. The createdAt field is a Unix epoch timestamp in milliseconds.
5. Retrieve results
Fetch paginated results for all child requests in the batch:offset and limit query parameters to page through results. The hasMore field indicates whether more pages remain.
Full API reference
For full request and response schemas, see the API reference.
Monitoring batches in the console
Open your endpoint in the Runpod console and select the Batch tab to see all batches. Each row shows the batch name, status, and progress counts. Click a batch to open the detail view, which shows:- Top-level status and progress
- Per-request rows with status, timestamps, and error messages for failed requests
- Links to the full request detail view for each child request
Notifications
When a batch reaches a terminal state (FAILED or CANCELLED), Runpod sends:
- Console Inbox notification — includes batch ID, endpoint name, terminal status, and item counts (completed / failed / total)
- Webhook event — if your account has a webhook subscription configured for batch events
Cancellation
To cancel a batch:- Queued requests are cancelled immediately and are not billed.
- In-progress requests are allowed to finish and are billed normally.
CANCELLED once all in-progress work has drained.
Limits
The maximum queued requests per endpoint can go up to 1,000,000 daily jobs. Limits are configurable for enterprise accounts. Contact support for custom limits.
Billing
Batch jobs are billed at the same rate as standard serverless requests on your endpoint. For enterprise customers, flex worker discounts apply to batch jobs. Billing is based on the compute time used by each child request, regardless of whether the batch was later cancelled (in-progress requests that completed before cancellation are billed normally).Error handling
Individual request failures — A failed child request does not fail the entire batch. The batch staysFINALIZED and continues processing the remaining requests; overall completion is inferred from the request counts (all requests are done when requestCompleted + requestFailed equals requestTotal). Inspect failed requests via the console or the GET .../requests endpoint; each failed request includes an error message from the handler.
Batch-level failure — If the batch itself fails (status FAILED), it indicates a systemic problem rather than individual handler errors. Contact support if you see this state and cannot explain it from request-level errors.
Redis durability — Batch jobs use the same Redis-backed queue as standard serverless requests. In the event of a Redis failure, queued batch requests may be lost. This is an MVP limitation that applies equally to /run traffic.
Known limitations
- Batch jobs inherit the GPU type configured on your endpoint. You cannot specify a different GPU per batch or per request.
- There is no per-request scheduling or ordering. Requests within a batch are processed in an unspecified order.
- Cost estimation before finalization is not available at launch.
- Runpod schedules batch workers based on global queue urgency and off-peak capacity, so start times aren’t guaranteed.