Async inference (batch processing)
Async inference submits model work for later retrieval instead of keeping an interactive request open. Completion windows, prices and failure behavior depend on the selected provider and API.
Example input
Three offline requests have IDs A, B and C. A and B complete; C expires.
In more detail
What it means
Asynchronous or batch inference separates request submission from result retrieval. It fits workloads that can tolerate delayed answers, such as offline evaluation, classification or embeddings. Provider completion windows and discounts are API-specific rather than universal. OpenAI currently documents a 24-hour Batch window and a 50% cost reduction, but also documents failed and expired states; this is not an unconditional promise that every request will complete successfully. Use stable request IDs, validate inputs, retrieve completed outputs, collect failed or expired items separately, and retry only the missing work. Record provider, model, window and billing basis before designing a deadline. Do not put a batch dependency on an interactive path where a user needs an immediate answer.
Part 1 of 3
When to use it, and when not
Use it for
- Offline workloads where delayed results are acceptable.
- Evaluation, classification or embedding jobs with explicit completion and retry handling.
- Work with stable IDs and a way to reconcile partial outputs.
Skip it for
- User-facing interactions that require an immediate answer.
- A hard deadline without a verified provider agreement and a failure plan.
Part 2 of 3
Example
What goes in, and what comes out.
Input
Three offline requests have IDs A, B and C. A and B complete; C expires.
Output
Save A and B by ID. Record C as expired and retry only C with a bounded policy.
Illustrative handling logic, not a completed provider benchmark or a promise of completion.
Part 3 of 3
Common mistakes
- Treating a provider completion window as a universal SLA or a guarantee of successful completion.
- Assuming all providers apply the same discount, limits and supported endpoints.
- Resubmitting completed requests when only failed or expired items need retrying.
FAQ
Questions readers ask.
What is async inference (batch processing)?
Async inference submits model work for later retrieval instead of keeping an interactive request open. Completion windows, prices and failure behavior depend on the selected provider and API.
Is asynchronous inference always complete within 24 hours?
No universal rule is established. OpenAI’s Batch documentation describes a 24-hour window and an expired state when work does not complete in that window. Check the selected provider and API.
Is it always half price?
OpenAI currently documents a 50% Batch reduction. Do not apply that number to every provider, model, endpoint or contract.
How should partial or expired work be handled?
Use stable IDs, collect completed outputs and failed or expired items separately, and retry only the missing work. Make retries bounded and idempotent.
When should you use async inference (batch processing)?
Offline workloads where delayed results are acceptable. Evaluation, classification or embedding jobs with explicit completion and retry handling. Work with stable IDs and a way to reconcile partial outputs.
When should you not use async inference (batch processing)?
User-facing interactions that require an immediate answer. A hard deadline without a verified provider agreement and a failure plan.
What are the common mistakes with async inference (batch processing)?
Treating a provider completion window as a universal SLA or a guarantee of successful completion. Assuming all providers apply the same discount, limits and supported endpoints. Resubmitting completed requests when only failed or expired items need retrying.
Last updated: 2026-10-13. Raw markdown: https://promtable.com/glossary/async-inference.md. Found a mistake? Tell us.