Building with AILesson 76 of 80

Module 8 · Cost, latency and running it in production

Running your own inference: the break-even arithmetic

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 6 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
You rent the hour; the API sells the token0102010100GPU utilisation, per centDollars per million output tokens—— One rented 80 GB card at $3 an hour– – The same open model, per token, from an APIOne 80 GB card at $3 an hour producing 500 output tokens a second flat out, which is 1.8 million anhour. Utilisation is the whole argument: at the bursty, working-day pattern most products have, thecard costs several times the API price for the same open weights.
One 80 GB card at $3 an hour producing 500 output tokens a second flat out, which is 1.8 million an hour. Utilisation is the whole argument: at the bursty, working-day pattern most products have, the card costs several times the API price for the same open weights.

Figure

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

Three reasons, and only three

Run your own model when the data cannot leave your infrastructure; when the volume is high and steady enough to keep a card busy most of the day; or when you need something the APIs do not sell: a fine-tuned model of your own, a custom sampling method, latency inside your own network. “It will be cheaper” is not on the list, because at the utilisation most products have, it is not. This lesson is the arithmetic that shows when it becomes true.

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) ‘Running your own inference: the break-even arithmetic’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/running-your-own-inference (Accessed: 27 November 2026).