Building with AILesson 74 of 80

Module 8 · Cost, latency and running it in production

The batch window: half price for anything that can wait

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 of 10 in this chapter

This chapter’s goalProduce a cost and latency budget for an AI feature at a stated scale, defend each line of it with a measurement, and operate the feature through a provider outage, a model deprecation and a tenfold traffic increase without an unplanned bill or an unplanned outage.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The offer

The major providers offer a batch mode: submit a file of requests, receive the results within a window, usually twenty-four hours and often much sooner, at a discount of about half against the interactive price. The provider runs your work when it has spare capacity, and the discount is what they pay you for the flexibility.

Half is a large number. A feature spending ten million tokens a day interactively at $3 per million pays $30; the same work through the batch endpoint pays $15. Over a year that is the difference between five and a half thousand dollars and eleven.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘The batch window: half price for anything that can wait’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/the-batch-window (Accessed: 29 November 2026).