HOW-TO GUIDE17 min read

Deferred Batch LLM Inference: Cut Non-Realtime Spend

A practical guide to routing agent work through deferred Responses API windows, with implementation steps, cost maths and safeguards.

P
PADISO teamPublished 8 Nov 2026

Deferred batch LLM inference lets you run work that does not need an immediate answer on a slower, lower-cost path. With OpenAI Responses API completion windows, eligible background requests can receive a 30 percent discount for a two-hour window or a 40 percent discount for an eight-hour window, according to the published rates in the research brief as of December 2026. The key is to route by deadline, preserve control of each agent turn, and measure cost per completed task rather than token price alone. If you are designing the workflow itself, our guide to AI agents and automation is a useful companion.

This approach is not a fit for every prompt. It is for work where a person or downstream system can wait, but where an agent still needs to make decisions, call tools, and continue after a tool result. A static batch file is often cheaper, but it cannot run a live tool loop in the same way.

What deferred batch LLM inference is, and when to use it

Deferred inference means you submit a model request now and retrieve the answer later. The model does not have to return a response while the user is waiting. A completion window tells the provider the time range in which the request can be scheduled and completed. In the OpenAI pattern described here, background Responses API requests can use a two-hour or eight-hour completion window.

This creates a middle lane between synchronous requests and traditional batch processing:

Lane Typical fit Interaction pattern Cost and timing trade-off
Interactive Live chat, customer support, in-call assistance Synchronous response Lowest wait, standard rates
Deferred Internal investigations, reviews, drafts and agent workflows Asynchronous response, with follow-up turns Two-hour or eight-hour completion window, with the discounts stated in the December 2026 rate schedule
File batch Large, independent offline jobs Submit a file of requests, collect results later 24-hour batch processing and the published 50 percent discount for eligible batch workloads

The discounts and timing above are from the OpenAI completion-window and Batch API information in the Background Mode guide and Batch API guide, alongside the December 2026 rate schedule in the research brief. Check the current documentation and account terms before you deploy. Provider features and rates can change.

Choose deferred execution when all of these are true:

  • The work does not need a near-instant response.
  • The task has a clear deadline that the business can tolerate.
  • A person or another system can carry on while the model works.
  • The workflow may need several model turns, tool calls or internal lookups.
  • You can make a safe decision if the task misses its deadline or returns an unusable result.

Examples include overnight case triage, first-pass document review, internal compliance checks, draft generation and investigation of support tickets. Do not defer a user-facing interaction just to save tokens if the delay damages the service or pushes a decision beyond its operational deadline.

What do you need before you change the inference path?

Do not start by changing the API call. First establish the task, its deadline and its existing unit economics. A cheaper token rate can still produce a more expensive task if requests wait too long, are retried unnecessarily, or need people to do extra work.

1. A task with a real business deadline

Write down when the output is needed, not merely when the request enters your system. “Run this overnight” is not a complete service-level agreement. “The audit queue must be ready for review by 7 am Sydney time” gives engineering and operations a deadline to design around.

Record the deadline for the whole workflow, including time for retrieval, tool execution, validation and human review. The completion window applies to an individual model response, not automatically to every step in a multi-turn workflow. If an agent waits on a model, calls a database tool, then asks the model to interpret the result, each model turn can add further waiting time.

2. A baseline that separates tokens from outcomes

For a representative period, capture:

  • Number of tasks submitted, completed, failed and abandoned.
  • Input and output tokens by model and workflow.
  • Cost per task, including retries and any tool or infrastructure costs you track.
  • Time from submission to usable result, including the slow tail, not just the average.
  • Human correction or review effort, where you can measure it consistently.

Keep the denominator stable. If you report cost per successful review, define what counts as successful. For example, a syntactically valid JSON response is not necessarily a correct review. Our article on cost per successful agent task explains why this distinction matters.

3. A workflow that can resume safely

Your orchestration service needs to store the task state outside a single web request. It should know which model response is pending, which tool call is next, what deadline applies and what has already completed. If the process restarts, it should resume from recorded state rather than submit the same work as if it were new.

4. A policy for sensitive data and provider retention

Deferred processing may change where and how long request data is stored while the provider makes a response retrievable. The research brief flags temporary storage in background mode, including cases where a request uses store: false or a Zero Data Retention setting. Do not assume a setting removes every operational retention requirement. Confirm current terms and technical behaviour with the provider, your security team and your legal or privacy advisers before sending sensitive data.

For Australian regulated organisations, map the design to your existing obligations and controls. APRA-regulated entities should assess the service against relevant requirements such as CPS 234 and CPS 230, as applicable, and consider the Privacy Act and OAIC guidance for personal information. Our pages on AI for financial services and AI for insurance cover the operating context. These links are not a substitute for advice about your obligations.

How to implement deferred batch LLM inference step by step

Step 1: Sort work by its deadline

Start with a simple question: how long can this request wait before the answer loses business value? Assign a deadline class to each task. Do not put a workflow into a deferred lane just because it runs in the background today. A background job can still have a tight operational deadline.

A practical first routing policy is:

  1. Interactive lane: The user or live process needs the answer now. Use synchronous inference.
  2. Deferred lane: The workflow can wait for hours, but needs model-led decisions or tool calls. Use background Responses API execution with a suitable completion window.
  3. Batch lane: Requests are independent and can be processed from a static file. Use a file-based batch API where its turnaround and format fit.

For example, a live agent helping an employee find a policy belongs in the interactive lane. A queue of overnight claim files that may need lookup and follow-up reasoning is a candidate for deferred execution. Re-tagging a large historical product catalogue, where each record can be processed independently, may suit file batch.

Write down the routing rule and the owner who can approve exceptions. If routing depends on a deadline field, ensure the field is set by the business workflow and not guessed by the model.

Step 2: Decide whether the job needs an agent loop

Ask whether the model must do anything after its first response. If it must call a database, fetch a record, run a calculation or inspect a tool result, the workflow needs orchestration around the model. A conventional file batch is designed for independent requests and returned results, not a dynamic sequence that pauses for your application to run a tool between turns.

Make a small workflow diagram before you write code:

  • What starts the task?
  • What information is sent to the model?
  • Which tools can it request?
  • What validates the tool arguments?
  • What happens after each tool result?
  • Which output counts as complete?
  • What does the system do when the deadline is at risk?

Keep tool execution in your application. The model may propose a tool call, but your service should validate permissions, arguments and data access before running it. A delayed response is not a reason to relax normal security controls.

Step 3: Select a completion window from the deadline backwards

Choose the slowest window that still gives the whole workflow enough time to finish. The two-hour window is the more conservative deferred option in the supplied rate schedule. The eight-hour window offers a larger stated discount, but leaves less room for multi-turn work inside a short business deadline.

A useful calculation is:

Remaining workflow time = business deadline minus current time minus reserved review and delivery time.

Then reserve time for the expected number of model turns, tool execution, validation and recovery. Do not treat the provider's completion window as a promise that the entire agent task will finish within that duration. It applies to a model response. A workflow with several sequential turns can take longer.

If the calculation does not leave a credible buffer, route the task to a faster lane or start it earlier. Do not choose an eight-hour window for an item due in eight hours and assume the rest of the system will complete instantly.

Step 4: Add the background request configuration

The request pattern in the supplied OpenAI documentation uses the Responses API endpoint, POST /v1/responses, with background execution enabled and a completion window. The research brief identifies service_tier: "default" as necessary for the stated discounted Standard rates, and says streaming must be disabled or omitted for these windows. Developers discussing implementation patterns highlight these requirements when seeking to reduce costs using background mode with completion windows. Confirm parameter names and supported values in the current Responses API reference before deploying.

A simplified request shape looks like this:

{
  "model": "gpt-6.2-sol",
  "background": true,
  "service_tier": "default",
  "background_options": {
    "completion_window": "2h",
    "continuation_id": "run_invoice_audit_98124"
  },
  "input": "Review the supplied ledger items and flag policy variances."
}

Treat this as an illustrative example, not a complete production request. The model name, tool definitions, input format and options must match the models and API version available to your account. Use a stable internal task identifier for your own records. Do not put sensitive business identifiers into a continuation value unless your data-handling policy permits it.

Record the provider response ID, your internal task ID, selected lane, requested window and submission time. Store these in a durable job record. Do not depend on a process holding a connection open for the duration of the work.

Step 5: Track completion through polling or a webhook

The background request returns an identifier that your application can use to retrieve status and results. You can poll the response endpoint or use the webhook mechanism supported by the provider. Polling is straightforward, but polling too often creates needless traffic and noisy logs. Use a backoff schedule and stop polling when the response is complete, failed or cancelled.

Webhooks can reduce polling, but they introduce their own delivery concerns. Verify the sender, handle duplicate notifications idempotently, and record the event before advancing workflow state. A webhook is a notification, not proof that your application successfully processed the result.

Use explicit states, for example:

  • queued: accepted for background processing.
  • waiting_for_model: response is still pending.
  • tool_required: model has returned a tool request that needs application execution.
  • waiting_for_follow_up: tool result was submitted and another response is pending.
  • completed: validated output is ready for the next business step.
  • failed or deadline_risk: the workflow needs recovery or escalation.

The names are yours to choose. The important part is being able to explain, for every task, what has happened and what should happen next.

Step 6: Run tools, then continue the agent deliberately

When the model requests a tool, validate the request before execution. Check that the tool exists, the arguments are well-formed, the user or workflow is authorised, and the query is limited to the required data. Apply normal controls for SQL, APIs and business actions. The model should not be able to bypass them by requesting a tool in a deferred turn.

After the tool runs, return its result to the model using the documented continuation pattern. The supplied brief describes follow-up requests that refer to previous_response_id and carry the same continuation_id, model and completion window. Confirm the current exact semantics in the Responses API reference. If a follow-up call does not preserve the desired processing tier or pricing, your cost measurement will be wrong.

Keep tool outputs compact. Return the fields the model needs, not a full database record or an unbounded log. This reduces input tokens, limits exposure of unnecessary data and makes the model's next decision easier to audit.

Step 7: Enforce a deadline ledger and fallback

Maintain a deadline ledger for each task. Before every follow-up model call, calculate the remaining time to the business deadline and compare it with the time you have reserved for review, delivery and recovery. If the remaining time is too short for another deferred turn, escalate according to a pre-agreed rule.

The fallback might be to use a faster inference lane, switch to a simpler deterministic process, ask a human reviewer to take over, or mark the task as late and notify the downstream owner. Choose the fallback based on the consequences of a late answer. Do not silently let a job wait past its deadline.

A practical policy should define:

  • When the system stops waiting on a deferred response.
  • Which faster lane is permitted, and who pays for it.
  • Whether an incomplete result can be used at all.
  • Who is notified when a task is at risk.
  • How duplicate work is prevented if a fallback starts while the original request is still pending.

The provider's completion window is a scheduling target for a response. The orchestration layer owns the business deadline and the recovery decision.

Step 8: Validate output before making it operational

A completed response is not necessarily a correct or safe response. Run structural validation, check required fields, and enforce business rules outside the model. For high-impact decisions, keep a human review step where required by the risk assessment and operating policy.

Record model, prompt version, tool calls, selected execution lane, completion timestamps, token counts and validation outcomes. Protect this data as operational evidence. Do not log secrets or unnecessary personal information in the name of observability.

How should you compare deferred execution with a file batch?

Use the shape of the job, not just the discount, to decide. The OpenAI Batch API guide describes the file-based path. Other providers also offer batch features, but their request formats, supported models, limits and terms differ. Check current vendor documentation before designing a cross-provider router.

Decision Deferred Responses API Traditional file batch
Best fit An agent workflow that may need tool calls or follow-up turns A large set of independent requests
Input pattern Submit requests through the Responses API Package requests in a JSONL file or provider-specific format
Orchestration Your application can continue after a response and submit another turn Requests are generally submitted as a batch and results collected later
Timing in the supplied brief Two-hour or eight-hour completion windows Up to a 24-hour turnaround window
Discount in the supplied December 2026 schedule 30 percent for two hours, 40 percent for eight hours 50 percent for eligible batch requests
Operational trade-off More state and orchestration to manage Efficient for independent work, but less suitable for dynamic agent loops

Anthropic's Message Batches documentation (detailed in Respan's guide to the Anthropic Message Batches API), AWS's Bedrock pricing page and Google's Gemini batch prediction documentation, alongside Google's guide to Batch Mode in the Gemini API, describe other asynchronous options. Operational patterns for AWS are also outlined in the Wring AWS Bedrock batch inference guide. Do not assume the same discounts, limits, retention terms or completion behaviour apply across providers. Confirm those details for the exact product and model you plan to use.

How much could deferred execution save?

The saving depends on the token mix, model, window eligibility, retries and whether every turn qualifies for the discounted path. The following worked example uses the monthly workload and December 2026 rates supplied in the research brief. It is an illustrative USD token-cost calculation, not a forecast of your bill.

Assume a financial services workflow reviews 40,000 applications each month. Each review uses 40,000 input tokens and 2,000 output tokens. The monthly volume is therefore 1.6 billion input tokens and 80 million output tokens. The example model is GPT-6.2 Sol, with standard rates of $2.00 per million input tokens and $10.00 per million output tokens, as stated in the brief.

Execution path Input calculation Output calculation Monthly token cost
Standard 1,600 million × $2.00 = $3,200 80 million × $10.00 = $800 $4,000
Two-hour window 1,600 million × $1.40 = $2,240 80 million × $7.00 = $560 $2,800
Eight-hour window 1,600 million × $1.20 = $1,920 80 million × $6.00 = $480 $2,400

On those stated rates, the two-hour option reduces model token spend by $1,200 per month compared with Standard, or 30 percent. The eight-hour option reduces it by $1,600, or 40 percent. The rates and discounts are from the supplied December 2026 schedule; check the OpenAI Background Mode guide and your current account pricing before using them in a budget.

This is not the whole cost of operating the workflow. Your business case should include orchestration, storage, observability, retries, exception handling and human review. If a deferred result misses its deadline and triggers a synchronous retry, the cost of the first attempt may not disappear. If the model produces output that needs correction, the token discount may be less important than the added review effort.

Run the same calculation for your own input and output mix. Input-heavy work and output-heavy work can have different cost profiles because rates differ by token type. Then calculate:

Cost per successful task = total model and workflow cost divided by the number of tasks that pass your success criteria.

Use a representative sample before routing all work. Include failed and retried tasks so the result reflects how the system behaves in production, not just the clean path.

What should you measure during a pilot?

Start with one workflow, one deadline class and a limited set of tasks. Compare deferred requests with a control group using the current execution path. The aim is to validate cost, quality and timeliness together.

Track these measures:

  • Cost per successful task: Include all model turns and retries.
  • Deadline attainment: Measure the share of tasks ready by the business deadline.
  • Time to usable output: Include tool execution and validation, not only model response time.
  • Turn count: Identify workflows where follow-up calls erase part of the saving.
  • Tool failure rate: A slow or unreliable internal tool can dominate elapsed time.
  • Fallback frequency: Frequent escalation may show that the selected window is too slow.
  • Quality and correction: Use the same evaluation criteria for both execution paths.
  • Data handling exceptions: Capture any privacy, retention or access-control issue as a stop condition.

Do not judge the pilot on average response time alone. A small number of late responses can be operationally costly if those tasks block a morning queue or a customer decision. Review the distribution and the specific late cases with the business owner.

Common mistakes to avoid

Treating the response window as a workflow SLA

A two-hour window for one model response does not mean a multi-turn agent will finish in two hours. Every sequential turn, tool call, retry and review step consumes time. Keep the business deadline in your own orchestration layer.

Sending every background task to the deferred lane

Some background jobs still need results quickly. Others are better as static batch work. Route by task shape and deadline, not by whether the job happens to run on a worker rather than a web server.

Forgetting that each follow-up call has to be configured correctly

A discounted first turn does not prove that later turns use the same path. Carry the required continuation details and verify actual service tier and usage data for the full workflow. Test a tool call and a follow-up response before calculating expected savings.

Ignoring storage and retention behaviour

Do not infer that store: false, a regional endpoint or a contractual control removes all temporary storage needed for background retrieval. Confirm current provider behaviour and document the data flow. For sensitive data, involve security, privacy and risk owners before launch.

Assuming prompt caching works across lanes

The research brief states that cache entries created during deferred runs are isolated from synchronous Standard requests and can be reused only by subsequent background requests. Validate this behaviour for your workload and current provider configuration. Do not include cache savings in a business case until you have measured them.

Building a router without cost and quality observability

A router that only records which lane it selected cannot tell you if the decision worked. Capture model usage, completion state, deadline outcome, validation and retry history together. Our platform engineering team can help design the application boundaries and operational controls around that router.

A practical rollout plan

Use a staged rollout so you can find problems before the new path handles critical work.

  1. Define the workflow and owner. Agree on the business deadline, success criteria, data classification and acceptable fallback.
  2. Measure the existing path. Record cost, completion time, failures and quality for a representative period.
  3. Build the durable job state. Store task IDs, response IDs, deadline, lane and current step. Make updates idempotent so retries do not create duplicate work.
  4. Test the full agent loop. Exercise a response, a tool call, a follow-up response, a timeout and a failed tool. Verify that every path is visible to operators.
  5. Run a limited pilot. Start with work where a late response is manageable. Compare deferred execution with a control group.
  6. Review safety and privacy. Confirm data handling, access controls, retention assumptions and the required review process.
  7. Expand by workflow, not by default. Add a new task only after its deadline, quality and cost results meet the agreed criteria.

If you cannot explain who owns a late task, how to stop duplicate work or what data the provider retains, the system is not ready for broad rollout.

Where PADISO fits

PADISO helps teams choose the right AI execution pattern, design agent orchestration and put production controls around it through our AI strategy and solutioning and AI agents and automation work. A sensible first step is to map one workflow's deadline, token profile, tool calls and data constraints, then test the deferred path against its current baseline.

The next step

Pick one non-realtime workflow and document its business deadline, cost per successful task and safe fallback. If you want help assessing the use case and its operating constraints, start with the PADISO AI readiness test.

WANT TO TALK THROUGH YOUR SITUATION?

Talk it through with us. Thirty minutes, no slides.

P
Written by the PADISO TeamSydney-based technology leaders who build what they advise on. Seven years of fractional CTO, architecture and AI work for enterprise, government and private equity.

Keep reading

All posts →

Let's talk.

Tell us what you are weighing up, whether it is a build, a roadmap or a deal. You will leave the call knowing your next step.

Book a 30-min callhi@padiso.co