DevStudioIT

What is a token and how do I count them?

Practical token counting for API budgets.

Direct answer

A token is a chunk of text a model bills on. Rough English estimate is often ~4 characters per token, but real BPE tokenizers differ.

Practical steps

  1. 1

    Use the free token counter for planning, then verify with the vendor tokenizer for invoices.

  2. 2

    CJK text often uses more tokens per character.

  3. 3

    Context windows are also measured in tokens.

Related guides

Frequently asked questions

What is a token and how do I count them?

A token is a chunk of text a model bills on. Rough English estimate is often ~4 characters per token, but real BPE tokenizers differ.

Are these official provider prices?

No. Guides and calculators are planning estimates. Always confirm billing with the provider.

Are these AI tools free?

Yes. All tools and the prompt library are free, with no signup. The site is funded by ads.

Do I need an OpenAI or Anthropic API key?

No. These tools run locally in the browser. They estimate cost and improve prompts with rules. They do not call a model API.