When you type a prompt into ChatGPT, Claude, or Perplexity, the model doesn’t treat it as a single sentence. It chops your text up into smaller chunks called AI tokens. The AI tokens are the currency of the LLM. They determine how much text the model can process at once, and for developers using the AI API, how much that processing costs.
What are AI tokens and how do they work?
AI tokens are small chunks of information that an AI model reads and then generates. In a text-based large language model (LLM), a token might be a whole word, a word fragment, or a whitespace attached to a word, or a punctuation mark — all converted into numerical IDs. This process is called tokenization.
Here’s an illustrative example of tokenization:
- A sentence: “The sales team ordered a new laptop from the online store! 🎉”
- OpenAI’s tokenizer chops the sentence.
- Token IDs: [976, 7155, 3214, 17889, 261, 620, 21851, 591, 290, 2296, 4897, 0, 139786, 231]
For developers using metered LLM APIs, tokens are the unit of billing. For anyone working with long documents or long conversations, tokens are what determine how much of the document/conversation will fit into the model’s context window (its working memory for that particular request).
How AI breaks text into tokens
When you send a prompt to an LLM, a tokenizer (a text-to-token converter) splits the text into chunks and assigns each chunk a numerical ID from its vocabulary. Many models use byte-pair encoding (BPE), a subword tokenization algorithm that builds a vocabulary by merging frequently occurring sequences.
So, while you see words on your screen, the model works with numbers. It processes those numerical representations, predicts new tokens, and converts the generated tokens back into readable text.
All these technicalities explain a few things about token counts:
- Common words can fit into fewer tokens
- Unusual or invented words can use many tokens
- Languages are not equally token-efficient: English may cost less than Ukrainian
- Programming languages differ in token count, too
In a business context, you’ve got to be very mindful of the format of the data you’re feeding into the model. A CRM export can be contaminated by duplicate field names, empty properties, tracking URLs, and the like. The amount of tokens you can save by removing an unused column from 10,000 records is going to be in the thousands.
To demonstrate the difference, I ran a simple experiment. I first typed in plain English text into OpenAI’s tokenizer, and it split the text into 12 tokens.
For entity-rich English text, the tokenizer chopped the sentence into 28 tokens.
And for the Ukrainian translation (in Cyrillic), it returned 36 tokens in total.
Although the difference is negligible in this case, imagine the cumulative effect of tokens when you’re feeding AI apps sales transcripts or CRM data.
How many words are 1,000 AI tokens?
Every model has its own token vocabulary. The same prompt can produce different token counts in ChatGPT, Claude, or Gemini. OpenAI estimates that 1,000 tokens correspond to about 750 words, one token per four characters. So if you need to feed a 3,000-word industry report into an LLM, you can initially budget around 4,000 input tokens for the report alone.
Other LLMs have their own estimates of English words per 1,000 tokens:
- Google Gemini: 600–800 words
- Anthropic Claude 4.6 and earlier: 650 words (derived estimate)
- Anthropic Claude 4.7 and later: 500 words (derived estimate)
- Perplexity: around 750 words
Some languages and AI models are inherently more token efficient than others.
But a more interesting part is an estimate of a real business task; so, I did some rough calculations:
Text you want AI to process
Assumed word count
Approx. text tokens
Items per 1M input tokens
Customer email
300
400
2,500
Company profile
750
1,000
1,000
Blog article
1,500
2,000
500
Sales call transcript
4,500
6,000
166
Industry report
7,500
10,000
100
These are estimates, not the number of completed tasks you can buy with a million tokens. Instructions, generated answers, other languages, and any additional context will consume more tokens, as will working with different models.
What counts toward AI token usage?
Right off the bat, you might think: “The text I typed.”
Yet that text is only part of the equation. The full request can also contain system instructions, conversation history, web search, and documents retrieved to answer your question.
To understand where tokens go, it helps to distinguish four types of tokens:
- Input tokens: Your prompt, relevant conversation history, system instructions, attached text, and retrieved information
- Output tokens: The tokens a model generates to produce its response
- Reasoning tokens: Additional tokens some reasoning models use while working toward an answer
- Cached input tokens: Previously processed prompt content reused
A short prompt doesn’t necessarily equate to a small AI workload. You might ask Perplexity a seven-word question, but answering it could pull in far more context at an extra price. Everything in, everything out, gets counted.
Three more aspects that affect the final AI token usage:
- API providers often charge more for output than input
- Reasoning tokens may be hidden and billed at the output rate
- Cached tokens may already be included in the input count
Why a short prompt can consume thousands of tokens
If you’re asking the AI to go through and revise a business proposal for the third time, your latest instruction is likely just six words: “Make the executive summary a bit shorter”. In order to know what it’s supposed to be editing, the AI will need to have access to the proposal and probably to the feedback you’ve given it in the two previous rounds. The workload builds up, and so do the tokens.
Or else, if you prompt an agent “What was its revenue last year?” in the same conversation about a prospect, the context is perfectly clear to you. On its own, though, the prompt doesn’t even identify the company. The application has to supply enough information for the model to understand what “its” and “last year” mean.
Thus, four situations commonly drive up token consumption:
- A follow-up in a longer conversation. OpenAI refers to the conversation history as part of the input to the model.
- A question that requires retrieval. Perplexity Search can retrieve web passages to assist in the answer. Those passages are then used as additional context for the answer model, beyond the text in your original prompt.
- A task that calls for reasoning or output. A complex task may require more intermediate processing, while a detailed answer requires more output tokens. Both can increase usage, depending on the model and product.
- A task that requires multiple agent actions. Completing that task may involve numerous model calls, with intermediate findings becoming input for subsequent steps.
And, of course, the longer the final answer, the more output tokens it takes to generate it.
Seven ways to reduce token costs
We’re only adding in the validated methods to bring token usage and costs down, but the best option depends on what is driving usage:
- Start a new conversation when the subject changes.
- Give AI only the material it needs (don’t feed any unnecessary files).
- Limit the number and size of the search results that are passed to the model via Perplexity’s Search API.
- Cache information (prompt caching) that you use repeatedly in order to make subsequent requests cheaper via reuse of previously processed context.
- Dial down the reasoning effort for straightforward tasks.
- Match the model to the job (different models are better suited to different tasks — don’t pick one and use it for everything).
- Skip answer generation when you only need search results. Perplexity’s Search API returns ranked search results and extracted content with request-based pricing, without additional token charges for the Search API itself.
How selective retrieval lowers token costs and improves accuracy
Another way of reducing the cost of research is to change what the model reads.
Our Agent API engineering team has introduced an extraction pass in fetch_url to reduce the amount of web content that the main research agent has to process. A smaller model is used to identify and extract passages relevant to the user’s question, rather than passing the entire web page along. In a published example, this reduced a 5,561-token web page down to 293 tokens of relevant content.
Using fetch_url with extraction at the high-effort level reduced input tokens per query by approximately 50%. Extraction also improved benchmark performance, achieving 88.0% at $0.073 per query, compared with 83.5% at $0.094 without extraction. The projected savings reached $210 per 10,000 queries.
Do images, PDFs, audio, and video use AI tokens too?
Yes, AI models aren’t limited to text anymore. However, a text tokenizer doesn’t work here since it cannot ask a vision model to inspect a dashboard screenshot or an AI assistant to analyze an hour-long sales call.
Multimodal models use modality-specific encoders to convert visual or acoustic information into representations the model can work with:
Input
How it may be processed
What affects token usage
Read an image
Visual patches, crops, or features enter a vision-language model
Resolution, image-processing settings, model
Generate an image
A generation pipeline produces visual output
Provider’s image-specific tokens or per-image pricing
Analyze a PDF
Extracted text, rendered pages, or both
Scanned vs. text PDF, page complexity, retrieval strategy
Transcribe or analyze audio
Audio encoder or speech-to-text pipeline
Duration, format, model, processing mode
Analyze or generate video
Sampled frames plus possible audio; generation has its own meter
Duration, frame sampling, resolution, model
Hence, different models and processing settings can produce very different totals for the same media.
Image analysis and generation
Google’s Gemini documentation, for instance, describes a 258-token accounting rule for small images (up to 384 pixels in both dimensions) and tiled processing for larger ones. Twenty qualifying small images would therefore consume 5,160 image tokens before any accompanying instructions or output.
Generating an image involves a different model or generation pipeline, with its own pricing for resolution, quality, or output tokens.
Document and PDF analysis
A PDF can contain selectable text, scanned pages, charts, or all three. A text tokenizer only counts the text; it can’t account for page images the model may also receive.
We at Perplexity estimate that a 3,000-word report translates into roughly 4,000 text tokens. Visual tokens come on top. However, uploading an entire report doesn’t necessarily mean the AI processes every page. Our engineering team explains how its agents search extracted document text first and access the original PDF when they need to examine figures, layouts, or embedded data.
Audio and video processing
If you want to analyze a recorded earnings call, you can transcribe it first and process the transcript as text, or use a model that accepts audio directly. In the latter case, duration can be a major driver of token usage.
Google’s Gemini token guide gives the following accounting rules for its documented processing modes:
Input
Documented rate
Example input usage
Audio
32 tokens/second
30-minute call: 57,600 tokens
Video (static processing)
263 tokens/second
10-minute recording: 157,800 tokens
However, Google also distinguishes static video processing from agentic processing, where usage varies.
How can you count AI tokens?
For a simple text prompt, use a tokenizer that matches the model. If your request includes conversation history, images, PDFs, or tool definitions, use a token-counting API. This lets you send the contents of a request to the provider and get a token count or estimate without asking the model to generate an answer.
Platform
Counting tool
What it measures
OpenAI
Tokenizer or tiktoken
Text with the selected encoding
Anthropic Claude
messages.count_tokens
Estimated structured input, including supported image/PDF blocks
Google Gemini
countTokens
Input for the selected model, including supported media
Perplexity
Orchestrator model and usage documentation
Use an appropriate underlying-model counter for estimates; inspect actual API usage after execution
Also, measure the actual token usage statistics that the API returns after execution. Capture that alongside the model ID, the endpoint, and any tool usage. If you’re testing an agent, then you’ll want to capture the usage across the entire run of the agent (including any failed attempts and retries, which will incur charges). Perplexity’s Orchestrator API helps developers calculate the actual token usage and budget required to run similar tasks at scale.
Side note: If you’re using Perplexity Pro, ChatGPT, or the Claude web app, asking the chatbot how many tokens it just used isn’t a reliable way to meter the request. It can estimate the text it sees, but that doesn’t give it access to the platform’s complete billing telemetry.
How to calculate the cost of an AI prompt
Most API providers price tokens per million. Once you know how many tokens a given request consumes, you can calculate its model cost using this formula:
Model cost = (input tokens ÷ 1,000,000 × input price per million) + (output tokens ÷ 1,000,000 × output price per million).
Why cheaper AI models can cost businesses more
AI models with lower per-token prices can end up costing businesses more if they consume more reasoning tokens, require additional tool calls, or make mistakes that need correcting.
A 2026 study, The Price Reversal Phenomenon, found that although Gemini 3 Flash’s listed token prices were 80% lower than GPT-5.4’s, it cost 38% more to run across 12 benchmark tasks. Differences in reasoning-token consumption and the number of steps models took were major contributors.
Then there’s the cost of getting things wrong. A separate study, Economic Evaluation of LLMs, demonstrated that the financial consequences of AI errors can outweigh the savings from using cheaper models.
The takeaway: when choosing an AI model for your business, compare the cost per successfully completed task rather than the price per million tokens.
Frequently Asked Questions about AI Tokens
Are AI tokens the same across ChatGPT, Claude, Gemini, and Perplexity?
No. Every model has its own token vocabulary, so the same sentence can turn into different numbers of tokens.
For example, one model might recognize a long word as a single token, while another splits it into two or three pieces. Both receive the same text, but the token count differs.
Perplexity also offers access to different underlying models, so there’s no single token count that applies to every Perplexity workflow. And token counts alone won’t tell you which platform costs less: input and output rates, reasoning, search, and other tool usage all affect the final bill.
Can you see how many tokens an AI chatbot uses?
Usually not in consumer chat interfaces. You can estimate the visible prompt and response with a matching tokenizer, but that excludes any hidden instructions, retrieved evidence, and internal reasoning. Developer APIs offer more detailed usage records for supported requests and are the better option when you need to measure costs.
Are AI tokens the same as AI credits?
No. Tokens measure model input and output. Credits are units defined by a particular product and may cover model usage, tools, or other computation. A credit has no universal token conversion rate. See Perplexity’s token-spend guide for the product-specific rules.











