Skip to content
mentoor

Topic 2 of 5 · 3 min read

Usage pricing by token, credit or task

Goal: Estimate a monthly bill under a usage plan from given volumes and prices, and spot the line item most likely to surprise the buyer.

Usage pricing charges for what you consume: tokens, credits or completed tasks, instead of a flat fee per person. It follows the vendor's real cost, which is why it is the default for AI developer APIs and increasingly common in apps.

Check yourself · 1 of 3

On most model API price lists, how are tokens charged?

Choose one answer

Why it matters

A bill that grows with use is fair, but it is hard to predict. A team that tests a new feature can double its bill in a week. Knowing the units lets you estimate a bill before it arrives, and spot what will move it most.

The three common units

  1. Tokens. A token is a small piece of text, roughly a short word or part of one. Model APIs from OpenAI, Anthropic and Google price input tokens (what you send) and output tokens (what the model writes) separately, and output usually costs more per token. Prices are listed per million tokens on each vendor's pricing page.
  2. Credits. An app sells a bundle of credits, and each action burns some: a short chat might use one, an image or a long analysis many more. Credits hide the real unit price, so check how many each action uses.
  3. Tasks. A fixed price per run, such as per document processed or per image generated. It is simple to quote, but a complex task may cost the vendor far more than a simple one.

How to estimate a bill

  1. Count how many requests you will make a month.
  2. Estimate the input and output size of each. Remember that long documents, chat history and instructions sent every time all count as input.
  3. Multiply by the price per million tokens, input and output separately, and add them.
  4. Add a margin for retries, testing and growth.

Before and after

Before: "It is a few cents per request, so it is basically free."

After: "We send 4,000 input tokens and get 500 back, across 20,000 requests a month. At the listed prices, input is the bigger line, so shortening what we send saves more than shortening the answer. Prices change, so we will recheck the pricing page each quarter."

Where surprises come from

The usual surprise is input that repeats: a long system prompt or full chat history sent with every message. Another is agents that loop and make many calls for one user request. Rate limits can also hit at the worst time, and vendors do change prices and plan limits, so a budget based on today's page can be wrong next year.

What goes wrong

  • Estimating from a single test request instead of real volume.
  • Ignoring input tokens because the answer is the visible part.
  • Having no cap or alert, so a bug in a loop becomes a large bill.

Examples

A bill from three numbers

A support bot makes 10,000 requests a month. Each sends 3,000 tokens in and gets 300 back. That is 30 million input tokens and 3 million output tokens. Multiply each by the listed price per million and add them. The input line is ten times the volume of the output line, so it is the one to watch.

The credit that is not one credit

A design app sells 500 credits a month. A text edit costs 1 credit, an image costs 20. A user who makes 30 images has used 600 credits and runs out in mid-month, though the plan looked generous.

Key points

  • Usage pricing charges by tokens, credits or tasks, so the bill follows how much you use.
  • Model APIs usually price input and output tokens separately, with output costing more per token.
  • Credits and task prices hide the real unit cost, so check how many credits each action burns.
  • Repeated long input, such as a big instruction block sent every call, is a common source of surprise bills.
  • Set spending caps and alerts, and recheck prices, because vendors change prices and limits.

Common mistakes

  • Estimating cost from one test call instead of expected monthly volume.
  • Counting only the answer and forgetting the input sent with every request.
  • Running agents or loops without a spending cap or alert.
  • Assuming today's prices and limits will hold for the whole year.

Check yourself · 2 of 3

A bot sends a 5,000-token instruction block with every request and gets 200 tokens back. Which saving is likely to cut the bill most?

Choose one answer

Check yourself · 3 of 3

A team budgets from one test call and the first month bill is four times higher. What most likely caused the gap?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic