Free lesson · Module 1, lesson 6 of 7

Costs, limits and honest expectations

Estimate what one agent run costs in tokens and rupees, say what a free tier allows in a day, and explain why an agent's change is reviewed like a junior colleague's pull request.

Lessons in this module

Lesson notes

For the student

An agent run is a series of model calls, and each call is billed in tokens or counted against a free tier's limit. This lesson works out what a run costs at the course's made-up prices, what a free tier allows, and why an agent's change is reviewed before it is kept.

What one run costs

  • A token is a small piece of text: about four characters of English, as a rough estimate
  • Each step of a run is one model call. Each call sends the whole conversation so far (input tokens) and gets a reply (output tokens)
  • A coding agent's tool results (files read, test output) stay in the conversation, so the input grows at every step
  • Made-up prices used in this course: ₹50 per million input tokens, ₹200 per million output tokens. They are no provider's prices
  • Cost of a call = (input tokens × ₹50 + output tokens × ₹200) ÷ 1,000,000; a run's cost is every call's cost added up

The worked run (made-up)

  • 5 steps; input 4,000, 6,000, 8,000, 10,000, 12,000 tokens = 40,000; output 5 × 300 = 1,500 tokens
  • Input ₹2.00 + output ₹0.30 = ₹2.30 at made-up prices
  • Not 5 × the first step (₹1.30): the input grows

Quick estimate

  • When the input grows evenly: run input ≈ (first step + last step) ÷ 2 × steps
  • An estimate for planning only; module 3's cost log records each call's real token counts

What a free tier allows

  • No money and no payment card; a free account
  • Free tiers commonly limit requests per minute and per day. The provider sets the figures and they change. At the time of recording, the course's free option allowed 20 requests a minute and 50 a day (the companion README); lesson 7 sets it up
  • Every step of a run is one request. A run that reaches the limit is refused in the middle of its work
  • Limit reached: wait for the reset, replay a recorded run, or use the local model
  • Worked example (50 a day at the time of recording, 12-step runs, 24 used): 26 requests left, 2 complete runs

Honest expectations

  • An agent's change is a proposal, like a pull request from a junior colleague (a proposed change a teammate reads before it joins the main code)
  • Its report that the tests pass is text the model wrote, not a test run
  • Review: read the diff first (what changed, what was removed), then run the tests yourself, then decide
  • A deleted test cannot fail: a removed test needs a reason

Try it

  • A made-up run of 6 steps: step 1 sends 3,000 input tokens, each later step 1,000 more; each step writes 200 output tokens
  • Work out the input total, the output total and the cost at the made-up prices, then check the input with the quick estimate
  • You should get 33,000 input tokens, 1,200 output tokens and ₹1.89 (₹1.65 + ₹0.24)

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · medium

A made-up run of 3 steps. Step 1 sends 6,000 input tokens; each later step sends 2,000 more than the one before. Each step writes 400 output tokens. At the course's made-up prices (₹50 per million input tokens, ₹200 per million output tokens), what does the run cost?

Question 2 · medium

At the time of recording, the course's free option allowed 50 requests a day. Nisha has used 14 requests today, and each run of her agent takes 10 steps, one request each. How many more complete runs fit today?

Question 3 · easy

Arjun's free tier has refused his requests for the rest of the day. Which is one of the course's answers?

Question 4 · medium

A run's input grows evenly, from 3,000 tokens at step 1 to 11,000 tokens at step 5. Using the lesson's quick estimate, about how many input tokens does the whole run send?

Question 5 · hard

After an agent's run on his own project, Ravi runs the tests himself and they all pass. He has not read the diff yet; it edits the search function and removes one test file. Why is the passing run not yet enough to keep the change?

The agentic engineering job: the work, the skills, the interviewNext: Setting up: Python, uv, Git, a model and Docker on an 8 GB laptop