API Cache

Batch API vs. Realtime LLM Cost & SLA Calculator

Compare monthly batch, synchronous, and hybrid costs with a 24-hour batch window, timeout retries, and queue overhead.

View estimate

Traffic and routing assumptions

Request volume and token rates
Batch and queue
Realtime and deadline

Illustrative rates. Use the response-time estimate and batch window from your workload.

Monthly cost and deadline fit

Hybrid total / month—

All realtime—

All batch—

Hybrid routing—

Hybrid savings vs. all realtime
—
Hybrid queue spend
—
Hybrid billable timeout waste
—
Expected hybrid retry attempts
—
Expected hybrid jobs exhausted
—

A route fits when its timing is within the deadline and every request is modeled to complete.

Budget a hybrid API workload

Add monthly token spend and queue operations to your broader infrastructure budget.

Explore BudgetHub

Method & FAQ

When does batch fit the deadline?

Batch fits when its completion window is within the deadline. Realtime uses the assumed successful response time including retries and warns when requests may exhaust retries.

How is timeout waste modeled?

Each realtime attempt has the same independent timeout probability. Retries continue up to the cap. Successful attempts are charged at the normal rate. A timed-out attempt is charged at the entered billable share of normal token cost.

Which costs does hybrid routing include?

Hybrid assigns a whole-number share of monthly requests to batch and routes the rest to realtime. Batch costs include discounted tokens plus per-request queue costs and the queue’s fixed monthly cost whenever at least one request uses batch. Batch jobs are modeled as completing once within the configured window.