Benchmark Study #7

Batch API vs. Real-Time Inference Latency & Cost Audit

Batch APIs offer a flat 50% discount with a 24-hour completion window—but when does real-time 95%-off prompt caching actually beat 50%-off Batch, and when does Batch win decisively?

Rate Card & Spec Audit: Published by: ShiftFrameLabs Data Processing: 100% Local Client-Side Browser Math

When Does Asynchronous Batch Beat Real-Time Prompt Caching?

Direct Answer Summary (Verified 2026-12-01)

Asynchronous JSONL Batch APIs discount BOTH input and expensive reasoning/output tokens by 50% (typically finishing in 30 minutes to 3 hours within a 24-hour SLA) while bypassing real-time RPM limits. However, on workloads with a huge shared prefix and tiny outputs, real-time 90%–95% prefix cache reads beat flat 50%-off Batch by up to 65%.

Cost & Turnaround Comparison Across 10,000 Jobs ($2/$10 Reference Tier)

Comparing two common 10,000-item workloads on Claude Sonnet 5.5 / GPT-6.2 Sol ($2.00/1M input, $0.10/1M cached read, $10.00/1M output): (A) Shared-Rubric Triage (24,000 shared prefix tok + 400 item tok + 80 output tok) vs. (B) Unique Document Summarization (2,000 unique input tok + 800 output tok):

Execution Mode Typical Turnaround Workload A (Shared 24K Prefix) Workload B (Output-Heavy) Best Workload Fit
Real-Time Sync API (Uncached) Immediate (RPM-gated) $496.00 $120.00 User-facing interactive chat & live copilots
Real-Time Sync API + 90% Prefix Cache Immediate (Fast TTFT) $85.60 (-83%) $120.00 (0% shared) Huge shared rubric/manual + short structured output
Asynchronous JSONL Batch API (50% Off) 35 mins – 4 hrs (<24h SLA) $248.00 (-50%) $60.00 (-50%) Unique articles, translations, reasoning evals, nightly ETL

Critical Insight: Output Share Dictates Batch vs. Cache

Notice Workload A vs. Workload B above: Batch API discounts output tokens by 50% (which Prompt Caching never discounts), making Batch unbeatable for unique-input or output/reasoning-heavy pipelines ($60 vs. $120). Conversely, when 98% of your prompt is an identical 24K rubric with 80-token outputs, real-time 90% cache reads ($0.10/1M) cost $85.60 vs. $248.00 on uncached Batch!

Frequently Asked Technical Questions

Do Batch API jobs count against my organization's real-time Tokens-Per-Minute (TPM) quota?

No. Batch queues draw from a separate spare-capacity pool, allowing you to process millions of evaluation rows without throttling live production users.

Can a Batch API job exceed 12 hours?

During major model launch weeks, 25,000-row jobs occasionally hit 11 to 19 hours. Never wire user-blocking onboarding flows to asynchronous Batch queues.

What happens if 2% of rows inside a JSONL batch fail validation?

Providers write failed custom_id items into a separate error_file_id JSONL without aborting the remaining 98% of valid completions, and you are only billed for completed rows.