Batch Processing

Run grouped Claude API requests asynchronously when the work can finish in the background.

Choose a workload that can wait

Batch processing works well for independent jobs such as evaluating a prompt over a fixed dataset or classifying a large catalog. Anthropic documents a 50 percent reduction in standard model token pricing for eligible batch requests. Check the current model and tool rates before budgeting.

Match output back to the input

Give every request a stable custom identifier and record it beside the business record. Poll the batch status and join completed responses by identifier. Keep a separate list of failures and expired requests so you can retry only the unresolved cases.

Source documentation

Official Claude documentation