Batch API vs Background Mode for Overnight LLM Workflows

Key takeaways
- Use Batch API for large independent LLM jobs that can wait until later.
- Use background mode when each job needs tools, branching, or multi-step execution.
- Batch is the lower-cost option, while discounted background mode offers faster completion windows on supported models.
- Job-level retries and status tracking are easier to manage in background mode than in Batch.
- Batch and discounted background mode share queued-token capacity, so one async workload can affect another.
Use the Batch API when you have many independent requests and next-day completion is acceptable. Use background mode when each job is multi-step, uses tools, or needs job-level retries, status tracking, or webhooks.
Boltout is a software agency.
Batch is the default for independent overnight jobs
Batch is the better default when the work is a large set of independent requests and you only need the results after completion. OpenAI describes the Batch API as asynchronous grouped processing, with a 24-hour completion window and 50% lower costs.
Batch fits jobs like:
- support ticket labeling
- document classification
- field extraction
- CRM or catalog enrichment
If each item can be handled with one prompt and the business does not need item-level orchestration while the run is in progress, Batch is the simpler design.
Background mode fits workflow-shaped jobs
Background mode is the better fit when one job can branch, call tools, or run in multiple steps. OpenAI's background mode guide says it supports multi-step agent runs and completion through polling or webhooks.
Background mode fits jobs that need to:
- fetch context before choosing the next step
- call tools during the run
- write intermediate state
- retry one job without resubmitting a larger batch
If one document review needs extraction, validation, and a final decision, background mode matches the shape of the work better than Batch.
Cost and completion window point to different choices
Batch is the lower-cost option, while discounted background mode can finish sooner. OpenAI says Batch offers 50% lower costs, and supported background mode windows offer 30% lower token pricing at 2 hours and 40% lower at 8 hours.
Use this rule:
- Choose Batch when next-day completion is fine and cost matters most.
- Choose 2-hour background mode when you need results in the same shift.
- Choose 8-hour background mode when you want overnight completion but still need job-level orchestration.
The retry model is the main architectural split
Background mode is easier to operate when retries and status matter per job. One background request gives you a clear unit for state, failure handling, and completion tracking.
Batch handles retries differently. You usually identify failed items after the run completes, extract them, and submit follow-up work yourself.
Use this rule:
- If retries should happen per item with their own status and audit trail, use background mode.
- If retries can happen later as a cleanup pass, use Batch.
Batch and discounted background mode share queue capacity
Batch jobs and discounted background requests can compete for the same async queue capacity. OpenAI's rate limit guide says Batch and 2-hour or 8-hour background requests share the same Batch/Background queued-token limit.
Plan for:
- queue depth monitoring
- job-size caps
- scheduling windows for large submissions
- a fallback path when async capacity is already full
If one system runs nightly enrichment, ticket triage, and document review at the same time, this shared limit affects all of them.
The practical choice is simple
Use Batch for large independent jobs. Use background mode for long-running jobs that behave like workflows.
For common overnight workflows:
- Support ticket triage: Start with Batch. Switch to background mode if each ticket needs account lookups, tool calls, or per-ticket retry tracking.
- Document review: Start with background mode. Switch to Batch if every document follows the same one-pass prompt and you only need the final output set later.
- Back-office enrichment: Start with Batch. Switch to background mode if processing branches by record or depends on tool use and intermediate state.
Before you ship, write down four things:
- acceptable completion window
- retry unit
- queue budget
- whether the job needs tools or branching
If you want a second opinion, our AI and automation team can review one workflow and tell you which pattern fits.
Sources
Frequently asked questions
Choose Batch API when each request is independent, you do not need per-job orchestration during execution, and next-day completion is acceptable.
Background mode is the better option when one job may run in multiple steps, call tools, branch based on intermediate results, or need its own retries and status tracking.
Not for the discounted 2-hour and 8-hour background windows. OpenAI says those requests share the same Batch/Background queued-token limit as Batch jobs.
Yes. A common design is to use Batch for bulk classification or enrichment and background mode for the smaller set of jobs that need tools, branching, or job-level control.
Written by
Ready to add AI to your product?
We integrate LLMs and automation into real workflows, bounded pilots, clear metrics, sensible fallbacks when the model is wrong.
Discuss your project