Shipping ItLesson 51 of 74

Module 6 · Shipping a model, not just a web app

What a prediction costs, worked out

In this lesson

  • 10 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalPut a model behind an HTTP endpoint with a measured latency budget and a stated cost per request, ship a new version by shadow then canary rather than by hope, and detect the week its inputs stop resembling the data it was trained on.

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
The same request, three ways of paying for itHosted API, 1,200 in and400 out0.80Own GPU, sustained 20requests a second0.01Own GPU, one request every10 seconds2.2US dollars per 1,000 requestsA rented GPU at 80 cents an hour costs 576 dollars a month whether it works or idles. Busy, itundercuts the API a hundredfold. At one request every ten seconds, which is a realistic small product,it costs nearly three times more.
A rented GPU at 80 cents an hour costs 576 dollars a month whether it works or idles. Busy, it undercuts the API a hundredfold. At one request every ten seconds, which is a realistic small product, it costs nearly three times more.

Figure

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

Do the arithmetic before you choose

Every argument about hosted APIs versus self-hosting is settled by two numbers you can compute in ten minutes: cost per request, and requests per month. People skip this and choose by preference, then discover the answer on an invoice.

Prices change constantly, so learn the method and re-run it with today’s numbers. The shape of the answer has been stable for years even as the constants fall.

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 Agents and Automation exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘What a prediction costs, worked out’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/the-arithmetic-of-tokens-and-gpus (Accessed: 29 November 2026).