Costs and buying

What a token is, and how it turns into a bill

AI providers bill by the token. Knowing what one is tells you why long prompts and chatty agents cost more.

By the duyan team · Updated · 3 min read

Costs and buying

In short

  • A token is a small piece of text, often part of a word.
  • In English, 100 tokens come to roughly 60 to 80 words.
  • Providers charge per million tokens, and text out costs more than text in.
  • The same text can count as more tokens on one model than another.
  • Ask any builder for the cost per task, measured on your own data.

What a token is

A token is the unit of text a language model reads and writes. AI providers count the tokens in and out of every request. They charge for each one.

A token is often part of a word. Short, common words are usually one token, and long or rare words split into several.

How text becomes tokens

For English, OpenAI and Google both put a token at about 4 characters. OpenAI says 100 tokens are about 75 words, and Google says 60 to 80.

The count also depends on the language and the model. So the same message can come to more tokens on one model than another.

Images, audio and files count as tokens too. Gemini, for example, counts a small image as 258 tokens.

How tokens become a bill

Prices are per million tokens, with a higher price for output than input. Claude Sonnet 5.5 costs $2 per million tokens in and $10 out, as of November 2026.

Say an agent reads a 1,500⁠-⁠word report and writes a 150⁠-⁠word summary. That is about 2,000 tokens in and 200 out.

The input costs 2,000 × $2 ÷ 1,000,000 = $0.004. The output costs 200 × $10 ÷ 1,000,000 = $0.002.

One summary costs $0.006. At 10,000 summaries a month, that is $60.

Some models also reason before they answer. OpenAI, Anthropic and Google bill those thinking tokens as output, even when you never see them.

What it means for a buyer

Your bill follows the length of what goes in and out. An agent resends its instructions and earlier steps at every step, so input grows fast.

Take an agent with 3,000 tokens of instructions that runs 5 steps per task. The instructions alone come to 15,000 input tokens per task, before it reads any document.

A prompt that doubles in length roughly doubles the input cost. A whole manual pasted into the instructions is paid for again at every step.

The model you pick matters as much. On Claude, Haiku 5.5 costs $0.10 per million input tokens and Fable 5.1 costs $10.

Two settings bring it down. Caching rereads repeated text, such as fixed instructions, for a fraction of the input price.

Batch processing runs work that can wait at about half price. All three providers offer it.

Common mix⁠-⁠ups

  • Tokens and words. A token is often smaller than a word. Plan on about 4 tokens for every 3 English words.
  • Comparing prices. A price per million tokens doesn't compare directly across models. Anthropic says its newer models count about 30% more tokens for the same text.
  • Input and output. Output costs more. On Claude Sonnet 5.5 and gpt-6.1⁠-⁠sol, it costs 5 times as much.
  • Long prompts. Some prices rise with prompt length. On its flagship models, OpenAI charges twice the input price and 1.5 times the output price once a prompt passes 272,000 tokens. Claude Haiku 5.5 costs 5 times as much once a prompt passes 100,000 tokens.

What to ask or check

  • What does one task cost, in tokens and in dollars?
  • Which model does it use, and was a cheaper one tested?
  • Is repeated text cached?
  • Is there a limit on output length and on steps per task?

The provider's usage page shows tokens per request. Ask for the cost per task from a test on your own records.

Priced before we start

A 2⁠-⁠week pilot is $2,400, and builds start at $15,000, fixed. Run and support is from $600 a month. Any model fees go to your own account, never marked up.

Sources

  1. OpenAI Help Center, "Understanding and counting tokens", help.openai.com (accessed 5 November 2026)
  2. Google, "Understand and count tokens", ai.google.dev (accessed 5 November 2026)
  3. Anthropic, "Pricing" (Claude Platform docs), platform.claude.com (accessed 5 November 2026)
  4. Anthropic, "Token counting", platform.claude.com (accessed 5 November 2026)
  5. Anthropic, "Pricing" (Claude API), claude.com (accessed 5 November 2026)
  6. OpenAI, "Pricing" (API docs), developers.openai.com (accessed 5 November 2026)
  7. OpenAI, "Reasoning models", developers.openai.com (accessed 5 November 2026)
  8. Anthropic, "Steering thinking" (Pricing section), platform.claude.com (accessed 5 November 2026)
  9. Google, "Gemini Developer API pricing", aistudio.google.com (accessed 5 November 2026)
  10. OpenAI, "gpt-6.1⁠-⁠sol" model page (Pricing), developers.openai.com (accessed 5 November 2026)

Get a fixed price in writing

Tell us the job. Within three working days, a two⁠-⁠page scope with one price on it. You owe nothing for it.

One fixed price per scope.