AI Token Counter and API Cost Calculator (GPT, Claude, Gemini)

Before you build an AI feature, a chatbot or an automation, you need to know what it will cost. Paste your prompt below to estimate how many tokens it uses and what it costs per request and per month across current OpenAI, Anthropic Claude and Google Gemini models. Everything is calculated in your browser.

AI Token and Cost Calculator

ModelInput $/1MOutput $/1MPer requestPer month

Prices are standard pay-as-you-go API list prices in USD per 1 million tokens, checked November 21, 2026 against the official OpenAI, Anthropic and Google pricing pages. Short-context rates. Batch processing, prompt caching and promotions lower these costs. You can edit any price in the table. Token counts are estimates (about 4 characters per token for English); every model uses its own tokenizer.

What is a token?

AI language models do not read words the way people do. They split text into tokens: short chunks that are often a whole common word (“the”), part of a longer word (“calcul” + “ator”), a number, or a punctuation mark. For ordinary English text, one token averages about four characters, or roughly three quarters of a word. That means 1,000 tokens is about 750 words, and a typical 1,500-word blog post is around 2,000 tokens.

Tokens matter for two reasons. First, API pricing is charged per token, separately for input (everything you send: instructions, chat history, documents) and output (what the model writes back). Second, every model has a maximum context window, which is the total number of tokens it can consider at once.

How this calculator estimates cost

  1. It counts the characters and words in your pasted text and blends two common rules of thumb (characters divided by 4, and words multiplied by 1.33) to estimate input tokens.
  2. It converts your expected output length from words to tokens the same way.
  3. For each model, it multiplies input tokens by the input price and output tokens by the output price, then divides by one million, because providers quote prices per million tokens.
  4. It multiplies the per-request cost by your monthly request volume.

Exact token counts vary slightly by model because each provider uses its own tokenizer. Code, non-English text, and text full of numbers or symbols usually use more tokens per word than plain English. For production budgeting, add a 10 to 20 percent buffer, or use the token counter in your provider’s dashboard.

Why output tokens cost more

Across every major provider, output tokens cost several times more than input tokens, often five times as much. Generating text is computationally heavier than reading it. In practice that means a short prompt that asks for a long answer can cost more than a long prompt that asks for a short answer. Reasoning models also spend “thinking” tokens before they answer, and those are billed as output.

Five ways to cut your AI API bill

  • Match the model to the task. Classification, extraction and short replies rarely need a flagship model. Smaller models such as GPT-6 Luna, Claude Haiku 5.5 or Gemini Flash-Lite cost a small fraction of flagship prices.
  • Use prompt caching. If many requests share the same long system prompt or document, caching can cut the cost of those repeated input tokens dramatically.
  • Use the Batch API for non-urgent jobs. OpenAI, Anthropic and Google all offer batch processing at roughly half the standard price.
  • Ask for shorter outputs. Set a word limit and a format. “Return JSON with three fields” is far cheaper than an open-ended answer.
  • Trim conversation history. Chatbots resend the whole conversation on every turn. Summarize older messages instead of sending them in full.

Frequently asked questions

Does ChatGPT Plus or Claude Pro charge per token?

No. Consumer subscriptions such as ChatGPT Plus, Claude Pro and Google AI Pro are flat monthly plans with usage limits. Per-token pricing applies to the developer APIs that businesses use to build their own apps.

Are these prices up to date?

They were checked on November 21, 2026. AI pricing changes often, and some providers run limited-time promotions, so always confirm on the official pricing page before committing to a budget. You can type a new price into any row of the table.

How many tokens is my prompt from the Prompt Enhancer?

The Prompt Enhancer shows an estimate under every prompt it builds. A typical structured prompt is 100 to 300 tokens, which costs a fraction of a cent on any current model.