API Batch Time Calculator

Check whether a batch will finish within its processing window given request limits, token limits and parallel workers.

Loading calculator…

Results are estimates for informational purposes only. Consult professionals for important decisions.

How to use this calculator

  1. Use the quota and time available to your job

    Start with current request and token budgets after allowing for shared traffic. Measure how long an ordinary request remains in flight. Use input or output tokens according to your provider’s accounting.

  2. Space starts and wait for a slot

    Use the slower interval implied by the request and token budgets, rounded up to a millisecond. Start the first request immediately and each subsequent one when both the spacing and a parallel slot allow it. Include the last request’s full response time.

  3. Work through a 500-request batch

    At 120 requests per minute and 60,000 tokens per minute with 1,000 tokens per request, start at most once per second. Three slots with four-second requests begin at seconds 0, 1 and 2, then 4, 5 and 6. The last request finishes at 669 seconds, leaving 51 seconds in a 12-minute window.

Frequently asked questions

Which tokens should I count?
Use the amount the rate limiter counts for this workload. For example, Google’s Gemini docs list an input-token rate limit. Google’s rate limit dimensions.
Will my actual job take exactly this long?
This estimate uses regular launches and equal work per request. Use headroom for latency changes, retries, shorter quota windows and daily limits. Check the service’s current documented rules before scheduling. OpenAI’s guide to API rate limits.

Related calculators

Give feedback on this calculator