Skip to the workspace
Pebellslearn by building
How LLMs Read and Charge  ›  Capstone Project

Token Based Pricing — Reading the Bill

Token Based Pricing 15 minHosted models charge per token for input and output at separate rates, and because an agent resends its growing history each step, input tokens often dominate the cost of a run.

ai agents / Token Based Pricing — Reading the Bill

Explore each scene at your own pace.

01 · The rule

The rule

Token Based Pricing — Reading the Bill

A demo of Tripmate costs less than a rupee. Then a thousand users each plan a trip, every plan takes a dozen model calls, and the monthly bill arrives with an extra zero. Knowing how model pricing works lets you predict that bill before it surprises you.

The rule

You pay per token, both ways — and agents resend the past every step.

Hosted models are usually priced per million tokens, with two separate rates:

  • Input tokens — everything you send: instructions, tools, history, tool results.
  • Output tokens — everything the model writes. This rate is typically several times higher than the input rate.

Take a made-up model priced at $1 per million input tokens and $4 per million output tokens. One Tripmate call that sends 5,000 tokens and gets back 500 costs:

input:  5,000 ÷ 1,000,000 × $1 = $0.005
output:   500 ÷ 1,000,000 × $4 = $0.002
total                          = $0.007

Bigger, more capable models usually charge more per token than small, fast ones, and models that "think" before answering may bill that hidden reasoning as output tokens too. Real prices differ between models and change often, so always check the current price sheet. The method does not change.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.