Calculator
Batch vs Realtime Calculator
The batch API is cheaper than realtime whenever the work can wait for an asynchronous result and the model publishes batch rates. The calculator prices your monthly requests at realtime rates, then moves the batch-eligible share of that traffic to the published batch rate, or to the discount you enter when a model publishes none, and shows the blended monthly bill and the saving. Summaries, classification, extraction, evals, and backfills usually qualify; chat and anything a user is waiting on does not.
Open the live Batch vs Realtime calculator - Batch discount modeling →
Example scenario
Worked example with the default batch workload: 100,000 calls a month at 8,000 input and 800 output tokens per call. Ministral 3 3B, the cheapest capable model that publishes batch rates, costs $88.00 a month at realtime rates and $44.00 at its published batch rates, 50 percent less. If 65 percent of the traffic can wait (the calculator default), the blended bill is about $59.40 before retry overhead.
What the inputs mean
- Model: sets the realtime rates and, when the provider publishes them, the batch rates.
- Requests per day: converted to a 30-day month of calls.
- Request shape: input and output tokens per call.
- Batch-eligible share: the part of the traffic that can wait for an asynchronous result.
- Batch discount: used only when the selected model has no published batch rate.
- Retry overhead: extra calls from failures, added to the realtime baseline.
What the result means
You get the all-realtime monthly bill, the blended bill with the eligible share on batch, and the monthly saving. A small saving means either little traffic can wait or the model’s batch rate is close to its realtime rate.
Assumptions
- Realtime and batch rates are list prices from the source-backed index; a published batch rate always wins over the discount input.
- The batch-eligible share is your product judgment; the calculator cannot tell which requests can wait.
- Batch jobs return later, so latency-sensitive traffic stays on realtime calls.
- The worked example uses the default batch workload and excludes retry overhead, caching, taxes, and negotiated discounts.
Where the prices come from
Token rates come from the source-backed pricing index, where every figure links to the provider’s own page and carries a last-checked date. This tool reads those committed numbers; it never calls a provider or fetches live prices.
Formula and methodology
realtime = monthly requests x per-call cost at realtime rates x (1 + retry overhead). The batch discount is the published batch saving for the selected model, or your discount input when none is published. blended = realtime - realtime x batch-eligible share x batch discount, and saving = realtime - blended. Standard arithmetic on committed list prices.
Interpretation guide
- Compare alternatives with the same workload assumptions.
- Stress-test output-heavy, retry-heavy, cache-miss, and power-user cases before committing budget.
- Verify source links and production logs before using the estimate for billing decisions.
Limitations before production billing decisions
Treat ByteCosts calculations as planning estimates, not final billing totals. Real invoices can differ because token mix, retry rate, cache hit rate, rate limits, taxes, gateway fees, regional pricing, and negotiated discounts change the effective cost.
Verify the provider source before production billing decisions, then compare the estimate with your own logs or invoice once production traffic is live.
Frequently asked questions
When is the batch API cheaper than realtime?
Whenever the work can wait for an asynchronous result and the model publishes batch rates. The saving is the gap between the realtime and batch rates on every eligible call, so it scales with volume; interactive traffic still needs realtime calls.
Which workloads fit batch processing?
Latency-tolerant jobs: document extraction, summarization, classification and tagging, evals, and backfills. Chat, agents a user is watching, and anything with a response-time promise stay on realtime calls.
What if my model has no published batch rate?
The calculator then applies the batch discount you enter. Check the provider’s pricing page first, because a model without a published batch rate may not offer a batch API at all.
Batch vs Realtime Calculator. ByteCosts. https://bytecosts.com/tools/batch-vs-realtime/