Courses / Learn from zero
Estimate AI usage costs before committing a budget
Outcome: A simple calculation sheet using fictional training prices, followed by a checklist for verifying current real pricing. Nothing here represents a quote from a model provider.
Teaching examples are not claimed live model runs; review each lesson’s limits.
Download practice worksheet ↓Lesson 1: Price and consumption are different things
An electricity bill depends on the price per unit and how many units you use. Usage-based AI pricing is similar. Text services may bill by tokens, and input tokens may have a different rate from generated output tokens. A token is not always a full word, particularly across languages.
Our invented example charges $1 per million input tokens and $3 per million output tokens. Try it: Name the two things needed to calculate a bill: quantity and price. Prices for actual providers require checking their official, current pages.
Review question: Why compare model spending to an electricity meter?
The bill depends on usage volumes, including input and output tokens, not only the model name.
Lesson 2: Keep input and output separate
Suppose a request contains 2,000 input tokens and produces 1,000 output tokens. Our fictional cost is (2000 / 1,000,000 × 1) + (1000 / 1,000,000 × 3) = $0.005.
Try it: Double the output to 2,000 tokens while keeping the input fixed. The result is $0.008. Check the decimal point carefully: $0.005 is half a US cent, not fifty cents.
Review question: Why separate prompt tokens from response tokens?
They may have different rates; multiplying the combined count by one unverified price misstates cost.
Lesson 3: Extend the calculation to a month
At $0.005 per request, one hundred requests cost $0.50 per day. For thirty equal days, that's $15. Double the number of requests and you get $1 per day or $30 over thirty days under the same invented assumptions.
Try it: Explain why a “monthly estimate” is not a guaranteed bill. Output lengths, extra services, taxes, or provider terms may change the calculation.
Review question: How can a monthly estimate be calculated before purchasing?
Estimated per-request price times expected daily requests times days, with assumptions recorded.
Lesson 4: Add a margin and an action threshold
A budget shouldn't assume perfectly stable use. Suppose you can spend $20 and estimate $15. The margin is $5. A 40% increase on $15 would mean $21, exceeding the plan.
Try it: Write a rule that pauses an automated job or requests approval before it consumes more than an agreed amount. Verify whether your actual provider supports hard spending limits; an alert is not necessarily an automatic stop.
Review question: Why set a buffer and a stop threshold?
Actual response lengths and volumes can exceed the forecast; a threshold limits unexpected spending.
Lesson 5: Deliver a budget that can be audited
Your sheet should show provider/version, pricing URL and date, input and output rates, estimated token volume, total cost, exclusions, and contingency. If you haven't checked current rates, label the example “fictional” and leave product fields blank.
You learned: to avoid confusing request count with token volume, to handle decimal rates, and to justify an estimate rather than invent a reassuring number.
Review question: What makes a budget estimate transparent?
Units, dated price source, input assumptions and clear labeling as an estimate rather than a real bill.
What did you accomplish?
Finish only when you can complete the final exercise and explain each step’s outcome or limits.
Topic-specific worked final project
Practice input
A fictional text service with separate input and output rates
Reference deliverable
Illustrative prices only: 1,000 input tokens at $0.002 per 1,000 and 1,000 output tokens at $0.006 per 1,000. Estimated request cost = $0.008; 100 such requests = $0.80 before any additional fees.
How do we judge success?
Clearly label imaginary rates; separate input and output; never call the estimate an actual provider bill.