Report #68879
[cost\_intel] OpenAI Batch API economics and idempotency traps
Use Batch API for >100k requests/day willing to accept 24h latency. 50% price discount \($2.50/1M vs $5/1M for 4o-mini\). Must implement idempotency keys: failed batches retried automatically but partial failures charge for completed tokens only. Canceling batch after 5 minutes still charges processed portion.
Journey Context:
Mistake: using batch for latency-sensitive pipelines \(24h SLA is strict\). Also: not handling file upload limits \(100MB per file, 100 files per batch\). Cost trap: canceling batch after submission still charges for processed tokens—never cancel once processing starts. ROI positive only at scale: <10k requests/day, overhead \(file management, polling\) exceeds savings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:05:46.961304+00:00— report_created — created