Explainer

What are tokens in AI models?

Learn what tokens in AI models are, how text gets split into them, why they drive cost and speed, and how to start measuring them.

By the Cloudverg engineering team · · 5 min read

What it is

A token is the small chunk of text an AI model actually reads and writes. Models don't see words or letters. They see tokens: whole short words, pieces of longer words, punctuation marks, spaces, sometimes a single character. The word "cat" is usually one token. A word like "reconciliation" may be split into two or three pieces.

Think of tokens as the model's unit of measurement, the way a shipping company thinks in pallets instead of individual boxes. Everything you send in (your question, instructions, pasted documents) is counted in tokens. Everything the model sends back is counted too.

Tokens in AI models are not the same across providers. Each model family has its own tokenizer, the piece of software that does the splitting. The same paragraph can come out as a different token count on two different models. That's why you can't treat a token count as a universal number.

How it works

Before a model processes your text, a tokenizer chops it into pieces from a fixed vocabulary. Each piece maps to a numeric ID, and the model works on those IDs. When it replies, it produces one token at a time, each chosen based on everything that came before it. The tokenizer then turns the IDs back into readable text.

A rough rule for English: one token is a bit under a word, so a page of plain prose is a few hundred tokens. Treat that as a ballpark only. Text that isn't ordinary English prose splits less efficiently. Source code, JSON, tables, URLs, product SKUs and many non-English languages tend to break into more, smaller pieces. A page of dense JSON can cost noticeably more tokens than a page of an email.

There are two sides to every request. Input tokens are what you send. Output tokens are what the model generates. Providers usually price them separately, and output tokens are typically the more expensive side, because generating text takes more work than reading it. Output is also produced one token at a time, so long answers take longer to arrive.

Every model also has a limit on how many tokens it can handle in one request, covering your input and its reply together. Go over it and the request fails or older content gets cut.

Why it matters for a business

Tokens are the meter on your AI bill. Hosted models charge per token, so cost scales with how much text flows through the system, not with how many users you have or how many features you ship. A feature that quietly attaches a long document to every request can cost far more than one that sends a short question, even if users see no difference.

Tokens also shape speed. More input means more to process before the first word comes back, and more output means a longer wait for the last word. If your support tool feels sluggish, check how many tokens you're sending and requesting before you blame the model.

For self-hosted or open-weight models, tokens still matter, just in a different form. Your cost is GPU time, and token volume decides how much GPU capacity you need to keep response times acceptable at peak load. Either way, a budget that says "we'll use AI for support tickets" is incomplete until someone estimates tokens per ticket and tickets per month.

The practical upshot: token usage is a design decision. How long your instructions are, how much history you resend, and how verbose you let the model be all show up directly in cost and latency.

Common mistakes

The most common one is estimating cost by counting words and stopping there. Word counts miss the instructions, the retrieved documents, the conversation history and the formatting that ride along with every call. The real input is usually much bigger than the user's message.

Another is forgetting that chat history gets resent. In many chat setups, each new turn includes the earlier turns so the model has context. A long conversation means each reply costs more than the last. Teams that test with three-message chats and then launch to users who chat for forty messages get a surprise.

People also ignore output length. If you don't ask for brevity or set a maximum, the model may write a lot more than you need. Set a cap on output tokens and say what format and length you want.

Finally, teams assume one tokenizer fits all. They count tokens with one tool, then switch models and find the numbers shifted. Always count with the tokenizer for the model you'll run, and re-check when you change providers or versions.

How to get started

Start by measuring, not guessing. Most providers return token counts for input and output in every API response. Log those numbers per request from day one, along with which feature triggered the call. A simple table of tokens by feature will tell you more than any estimate.

Next, build a rough cost model. Take a typical request, count its input and output tokens, multiply by expected monthly volume, then do it again for a busy month and a worst case. Use the current rates from your provider's pricing page rather than numbers you remember. Include the hidden parts: system instructions, retrieved text, and resent history.

Then trim. Shorten instructions, send only the document sections that matter, cap output length, and pick a smaller model for easy tasks. Test each change against quality, since cutting tokens too hard can hurt answers.

If you want help with this, Cloudverg's AI readiness assessment is one option. It's $5,500/month, renews monthly until cancelled, runs two weeks at a fixed scope, and includes a token, GPU and run-cost model alongside use case ranking and a reference architecture. Plenty of teams can also build the first version of this model themselves with the logging approach above.

Frequently asked questions

How many tokens is 1,000 words?

For ordinary English prose, it's usually somewhere above 1,000 tokens, since a token is often a bit under a word. The exact number depends on the model's tokenizer and the kind of text. Code, tables and non-English text generally produce more tokens per word.

Are input tokens and output tokens priced the same?

Usually not. Providers commonly charge different rates for tokens you send and tokens the model generates, and output is often the pricier side. Check the current pricing page for the specific model you plan to use.

How can I count tokens before sending a request?

Most providers publish a tokenizer tool or library for their models, and the API response also reports the counts after each call. Use the tokenizer that matches your model, because counts differ between model families. For budgeting, log the real counts from test traffic.

Monthly plan

Want help with this? AI readiness assessment

$5,500/month

2 weeks · Starts within 10 business days

Two weeks to rank your AI and agent ideas by value and risk, check your data, and plan a first project with a cost model.

Renews monthly. Cancel any time.
Prefer to pay once?

Pay $5,500 once for one month of the AI readiness assessment. It ends on its own, nothing renews.

What is included

Related guides

More ai and agents guides   AI and machine learning

Smallest way to start

Get a senior architect on your problem this week

Ninety minutes a month on the cloud, AI or security question that is blocking you, a pre-read of your material and a written summary within two business days.

$450/month

Renews monthly. Cancel any time.
Prefer to pay once?

Pay $450 once for one month of the Expert architecture session. It ends on its own, nothing renews.