What Are Tokens in AI? Why They Run Out So Fast
Skillpedia team · updated 2026-12-01 · 11 min read
Short answer: Tokens are the pieces of text that an AI reads and writes. They measure the memory and the cost of each conversation. The context window is how much fits at once. Your limit often runs out fast because everything counts: your question, the chat history, the files, the tools, and the answer itself.
You may have seen the warning that your Claude limit ran out after just a few messages. The cause is almost always tokens. Understanding how they work changes the way you use AI. You spend less, get better answers, and understand why a conversation sometimes seems to "forget" things.
When a technical term comes up, it is explained right after. The examples come from everyday life.
Index
- What is a token, in practice
- How much is a token worth?
- Context window: the AI's workbench
- What counts as a token?
- Does a full context cause hallucinations?
- Input tokens, output tokens, and price
- Why does the Claude limit run out so fast?
- 10 tips to save tokens
- Skills that help with this
- Frequently asked questions
What is a token, in practice
A token is a piece of text. It can be a whole word, part of a word, a punctuation mark, or a space. It depends on how the system cuts the text.
AI does not read sentences the way we do. It turns your text into tokens, does the math, and sends back new tokens as the answer. If you want to understand what happens behind the scenes, see What is an LLM.
For people who use AI every day, tokens matter for two reasons:
- Cost: plans and APIs measure usage in tokens.
- Memory: the conversation and the files have to fit in the context window.
How does a sentence become tokens?
Take this sentence:
"O café está quente e eu quero ler o livro."
An illustrative split would look like this:
O | café | está | quente | e | eu | quero | ler | o | livro | .
Now a sentence with a proper name and punctuation:
"Marina foi ao mercado e comprou: bananas, café e pão."
Mar | ina | foi | ao | mercado | e | comprou | : | ban | anas | , | café | e | pão | .
Names can be broken into parts. Words with accents can become more pieces. Punctuation counts too. And the actual split changes from one AI to another, because each one uses its own tokenizer, the program that does the cutting.
How much is a token worth?
There is no exact conversion between tokens and words. As a rule of thumb, a token is somewhere between a syllable and a short word. A typical paragraph becomes a few dozen tokens. A multi-page PDF can become tens of thousands.
The count also changes when the model changes. A newer model may have a different tokenizer and use more or fewer tokens for the same text. You see "one paragraph." The model sees a stack of pieces, and the size of that stack depends on who is counting.
If you need a precise number, Anthropic explains token counting in its official documentation.
Why does Portuguese use more tokens?
In general, Portuguese uses more tokens than English to say the same thing. You cannot pin down an exact number, because it depends on the text and the model. But the pattern shows up often.
Common reasons:
- words with accents, such as "café," "pão," and "não";
- Brazilian proper names;
- verb endings and plurals;
- the fact that many tokenizers were trained on more English text.
In practice: cutting down on words helps a little, but cutting down on context helps much more.
Context window: the AI's workbench
The context window is the space the AI can "see" at once. Think of a workbench. On it are the open documents, the notes, the tools, and the answer being written.
If the workbench is small, it fills up fast. If it is large, it can still fill up when you spread out PDFs, screenshots, spreadsheets, logs, and long answers.
Current models have large windows, in the hundreds of thousands of tokens, and some reach 1 million. The exact size varies by model and plan. Check the current value in the Anthropic documentation.
Still, the workbench is not infinite. It divides its space between everything you send, everything the system stores, and everything the model has to write.
AI agents tend to use more context, because they carry goals, tools, and decisions across many steps. Learn more in AI Agent: what it is, how it works, and how to build your own.
What counts as a token?
Many people forget this part: the token count is not just what you type. Everything goes into the total.
- System instructions: internal rules the app uses to respond.
- Conversation history: the earlier messages.
- Uploaded files: documents, spreadsheets, pasted text.
- Images: photos, screenshots, and diagrams.
- Tool results: searches, spreadsheet queries, API responses.
- Memory and settings: when the app brings extra information along.
- The generated answer: the text the AI writes.
If you use MCP, the count grows. MCP (Model Context Protocol) is an open standard for connecting AI to external data and tools, such as Google Drive, a calendar, or a database. Each connected tool is one more drawer on the workbench, and a full drawer takes up space. Learn more in What is MCP.
Does a full context cause hallucinations?
A hallucination is when the AI makes something up that looks real: a figure, a quote, a detail that was not in your file. This happens because the model generates text by predicting the most likely next token. It does not check facts on its own.
A full context is not the only cause, but it raises the risk:
- Information lost in the middle: in very long conversations, what was said at the beginning may get less attention.
- Automatic summaries: when the app summarizes the conversation to free up space, details disappear. The AI may fill the gap with a guess.
- Too much noise: many similar files on the workbench create confusion. The AI mixes data from one document with another.
The fix is simple: shorter conversations, only the material you need, and a clear request for the AI to say when it doesn't know. To understand the root of the problem, read What is an LLM. To give the AI reliable sources without cluttering the workbench, see RAG in AI.
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.
Input tokens, output tokens, and price
The bill has two sides.
Input tokens are everything sent to the AI to analyze: your question, the history, the pasted file.
Output tokens are what the AI writes back. In most APIs, output costs more than input, often several times more.
The price per token also varies a lot by model size:
| Model type | Cost per token | When to use |
|---|---|---|
| Small and fast | Fractions of a dollar per million | Summaries, classification, short reviews |
| Mid-range | A few dollars per million | General use, writing, much of the code |
| Top tier | The most expensive in the table | Hard reasoning, long agents |
Prices change often. Check the current price on the official Anthropic page or on each company's website. To choose between Claude models, see Which Claude model to use. To compare companies, see Best AI models in 2026.
Why does the Claude limit run out so fast?
You barely chat and the limit disappears. This happens because usage is measured by the whole context, not just by your question.
1. Long conversations resend the history
With every new message, the earlier history goes along with it. The tenth question carries the previous nine. The longer the conversation, the heavier each message becomes.
2. Large files weigh a lot
A PDF, a spreadsheet, or a log takes up space. Even if the AI only needs one page, the entire file goes onto the workbench.
3. Tools and MCPs add up
Each tool query comes back as text. Big result, big count. Several tools, several counts.
4. Larger models use up the limit faster
On Claude plans, using a more powerful model consumes your quota faster than a lightweight model.
5. The limit resets in windows
On Claude plans, usage is counted in windows of a few hours, and paid plans also have a weekly cap. On paid plans, chat and Claude Code share the same quota. Coding in the terminal all afternoon leaves less for chat.
The details for each plan are in Claude limits by plan. Values change, so always check claude.ai.
10 tips to save tokens
You don't need to apply all of them. Pick three and start with those.
1. Open a new conversation for each task
Changed the subject? Start a new chat. That way the model doesn't carry a history that no longer helps.
2. Ask for a summary before continuing
When the conversation grows, ask:
"Summarize what we decided so far in up to 100 words."
Then paste the summary into a new conversation. The workbench stays clean and the essentials are still there.
3. Use a smaller model for simple tasks
Reviewing an email or listing ideas doesn't need the strongest model. Save the powerful model for what is hard.
4. Use skills instead of pasting instructions every time
A skill is a folder with instructions and supporting files. The AI reads only the name and description first, and opens the rest when needed. This saves context. See Claude skill: what it is and how to install it.
5. Turn off tools and MCPs you don't use
Fewer open drawers, less clutter on the workbench.
6. Ask for short answers
"Answer in 3 bullet points."
Since output usually costs more, this makes a real difference.
7. Send only the part that matters
Is the problem on one page of the PDF? Send that page. Is it an error in a log? Send the lines with the error.
8. Write the full request at once
Every back-and-forth resends the history. A clear request, with context, format, and an example, avoids five correction messages. See how in Prompt engineering.
9. Keep what repeats in a fixed place
In Claude.ai, Projects store instructions and reference files. In Claude Code, that role belongs to CLAUDE.md, which should be kept lean. Details in How to save tokens on Claude and CLAUDE.md.
10. Compare tools before switching
Each tool spends tokens differently. For developers, there are terminal-specific tricks, such as /compact and /clear, in Saving tokens in Claude Code: 12 tricks. People who use other tools can read Saving tokens in Codex and Copilot.
Skills that help with this
Some skills help you control token spending without having to think about it with every message.
- token-budget-advisor-affaan-m: estimates how many tokens a task may use and suggests how to adjust the request to save without hurting the answer.
- context-budget-affaan-m: helps decide what needs to be in the conversation and what can be summarized, so files and instructions don't clutter the workbench.
- strategic-compact-affaan-m: signals the right moment to compact the conversation, keeping what matters and discarding the rest.
To see more options, search skills in the directory.
Frequently asked questions
Is a token the same as a word? No. One word can become one or several tokens. Punctuation, spaces, and word fragments also count.
What is a context window in AI? It is how much text the AI can consider at once, counting your question, the history, files, and the answer. When it fills up, the oldest parts lose space or get summarized.
Why does the AI "forget" things in the middle of a conversation? The context probably filled up or was summarized. Open a new conversation with a summary of what matters.
Does a long conversation make the AI hallucinate more? It can raise the risk, because older details get lost and too much material creates confusion. Short, focused conversations help the AI make fewer mistakes.
Do MCPs use tokens even when I'm not using them? They can, because connected tools bring descriptions and options into the context. Turn off the ones you aren't using.
Read also
- How to save tokens on Claude: tips for chat, Projects, and attachments on Claude.ai.
- Saving tokens in Claude Code: 12 tricks: what to do in the terminal to make your quota last longer.
- Claude limits by plan: what changes between Free, Pro, and Max.
- Which Claude model to use: when Haiku, Sonnet, or Opus make sense.
- What is MCP: how connected tools work and why they weigh on the context.
Free MCP
Give your AI 15,000+ skills, for free
Plug the Skillpedia MCP into Claude, Cursor, Codex or any AI. Before each task, it finds the right skill on its own.
- 01Get your free key
- 02Paste one line into your AI
- 03Ask for any task
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.