Many people pay for AI chat with a flat monthly plan, or not at all. An AI API works more like a utility meter: the provider counts what your app sends to the model and what the model sends back, and bills you for that use.
For text models, the unit is the token, a small chunk of text, and price lists give a rate per million tokens, with the text you send (input) and the text the model writes (output) priced separately [1, 2, 3]. On November 22, 2026, list prices for the example models in this guide ran from $0.10 to $2.00 per million input tokens and from $0.50 to $10.00 per million output tokens [1, 2, 3]. In this guide’s hypothetical example, 1,000 short product descriptions a month would cost between about 17 cents and $3.30 on those models for the visible text alone, before reasoning tokens, tool fees and taxes [1, 4, 2, 3]. New to APIs? Start with what an AI API is.
TL;DR
- You pay per token, and output usually costs more than input. Every example model in this guide lists a higher output price than input price [1, 2, 3].
- Hidden work is billed. OpenAI, Google and Anthropic count a model’s internal reasoning as billed output, even when it never appears in the answer [5, 2, 6].
- The same model can have several prices. Batch processing is half price at OpenAI, Google, Anthropic and Mistral; reused (cached) input is discounted; faster tiers and very long prompts cost more [1, 7, 8, 2, 9, 10, 11].
- A chat subscription may or may not cover API use. OpenAI and Anthropic bill the API separately, and Google bills it through Cloud Billing, but each offers plan-linked API or Cloud credits on some plans; Mistral applies one plan across chat and API [12, 13, 14, 15, 16].
What You Pay For: Tokens
In OpenAI’s definition, one token may be anything from a single character or punctuation mark to a whole word, and token counts don’t match word counts; the same text can split differently depending on the model and the language [5]. BuildAIQ’s tokens explainer covers how text is split; for budgeting, a rule of thumb will do.
| Provider | Rule of thumb for English text |
|---|---|
| OpenAI | About 4 characters, or three-quarters of a word, per token; 100 tokens is about 75 words [5] |
| Google (Gemini) | About 4 characters per token; 100 tokens is about 60 to 80 English words [17] |
| Mistral | Roughly 0.75 English words, or about 4 characters, per token [18] |
These are averages, not conversions. OpenAI says other languages divide differently [5]. Anthropic says its Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text than earlier models, with the exact increase depending on the content, so even one provider’s count can change between model generations [9]. Non-text input is tokenized too: Google counts a small image (up to 384 pixels on each side) as 258 tokens and audio at 32 tokens per second [17].
Each response reports the tokens that went in and came out, and what happens during an API request shows where to find those counts.
Input and Output Prices
The table shows standard rates in US dollars from three providers’ own pages, as of November 22, 2026; they are examples of how prices are laid out, not a ranking or a recommendation [1, 2, 3].
| Model (provider) | Input per 1M tokens | Output per 1M tokens |
|---|---|---|
| gpt-6-luna (OpenAI) [1] | $0.10 | $0.50 |
| gpt-6.2-sol (OpenAI) [1] | $2.00 | $10.00 |
| Gemini 3.5 Flash-Lite (Google, paid tier) [2] | $0.30 | $2.50 |
| Gemini 3.8 Flash (Google, paid tier) through Dec 31, 2026 [2] | $0.75 | $3.75 |
| Gemini 3.8 Flash (Google, paid tier) from Jan 1, 2027 [2] | $1.50 | $7.50 |
| Mistral Small 4 (Mistral) [3] | $0.15 | $0.60 |
OpenAI’s figures are for its short-context rates, which cover prompts up to 272,000 input tokens [1]. Gemini 3.8 Flash shows that prices can rise on a published date: Google’s page lists its input and output prices doubling on January 1, 2027 [2]. None of the table’s models showed a retirement date on its provider’s deprecation page or model card when checked [19, 20, 21].
Why output costs more is explained in what an AI answer costs.
Reasoning Tokens Count as Output
Some models reason before answering. OpenAI says reasoning tokens don’t appear as answer text but count toward output usage and are billed as output tokens [5]. Google’s output price for each text model in this guide states that thinking tokens are included [2]. Anthropic’s usage data reports how many billed output tokens were internal reasoning [6].
So a short visible answer can cost more than its length suggests; OpenAI says its models may generate anywhere from a few hundred to tens of thousands of reasoning tokens, depending on the problem [5, 4]. And OpenAI warns that if a response hits the output limit you set, you can pay for input and reasoning tokens without receiving any visible answer [4].
Discounts and Premiums on the Same Model
Cached Input
Prompt caching reuses the processing of an opening that repeats across requests, such as standing instructions, and bills it at a lower rate. OpenAI applies caching automatically on supported models, with reused input discounted by as much as 95% [7]. Storing the opening isn’t free, though: on GPT-5.6 and later models, the default 30-minute cache write is billed at 1.25 times the normal input rate, and nothing under 1,024 tokens is cached [7]. Anthropic charges more than its base input price to write to the cache and a tenth of it to read on most models, and says caching pays off after one or two reads, depending on how long the cache is kept [9]. Google lists Gemini 3.5 Flash-Lite cached input at $0.03 per million tokens, and charges $1.00 per million tokens for each hour the cache is held [2]. Mistral’s documentation says cached prompt tokens are billed at 10% of the standard input price; its API price list shows cached rates for some models, such as Mistral Large 4, but none for Mistral Small 4 [11, 3].
Batch Processing
For work that can wait, batch processing halves the price: OpenAI prices Batch API jobs, which finish within 24 hours, at half its standard rates [8], and Google (on its paid tier), Anthropic and Mistral each list a 50% reduction [2, 9, 10].
Faster Service Costs More
OpenAI’s Fast tier (called Priority processing until July 30, 2026) lists gpt-6-luna at $0.20 input and $1.00 output per million tokens, twice its Standard rate [1]. Google’s Priority tier lists Gemini 3.5 Flash-Lite at $0.54 and $4.50 [2].
Very Long Prompts
OpenAI’s long-context rates apply above 272,000 input tokens; gpt-6-luna rises to $0.20 input and $0.75 output there [1]. Anthropic prices Claude Haiku 5.5 higher for prompts over 100,000 tokens, while its other Claude 4.6 and later models include their full context window at standard rates [9].
Charges Beyond Text Tokens
- Tools with their own fees. OpenAI charges $10.00 for every 1,000 web search calls, and the search content fed to the model is billed at its token rates on top [1]. Anthropic lists web search at $10 per 1,000 searches plus token costs for the search results [9]. On its paid tier, Google gives Gemini 3 and newer models 5,000 free search-grounding requests a month, shared across those models, then charges $14 per 1,000; it bills each search query, and one request can trigger several [2].
- Tools that add tokens. Anthropic says the tool definitions you send and an automatic tool-use system prompt (286 tokens on several current models) are added to a request’s token count [9]. OpenAI says tokens used for its built-in tools are billed at the model’s normal rates [1].
- Images, audio and documents. OpenAI’s gpt-realtime-2.1 lists audio input at $32.00 per million tokens against $4.00 for text input [1]. Mistral prices its OCR 4.1 model at $4 per 1,000 pages and its Voxtral Mini Transcribe 3 transcription model at $0.0035 per minute [3].
- Where the request is processed. OpenAI adds 10% for regional processing (data residency) endpoints on models released on or after March 5, 2026, and Anthropic applies a 1.1 times multiplier to US-only inference on Claude 4.6 and later models [1, 9].
Free Allowances, Prepaid Credits and Subscriptions
Free Allowances
Google’s Gemini API has a free tier: for Gemini 3.5 Flash-Lite, its pricing page lists input and output as free of charge, with conditions [2]. Google’s additional terms for the API, in force since March 23, 2026, say that what you send to its unpaid services, such as AI Studio and the API’s unpaid quota, is used to improve Google products and may be read by human reviewers, and they ask users to keep sensitive, confidential and personal information out of those services [22]. Under the same terms, paid-service prompts and responses aren’t used to improve Google products but are logged for a limited time, solely to detect and prevent violations of Google’s prohibited-use policy and for any required legal or regulatory disclosures; API use counts as paid only through a Cloud project with an active billing account, and users in the UK, Switzerland and the EEA get the paid-service data rules on every service [22]. Anthropic says new users receive free credits to test its API [9].
Prepaid Credits
OpenAI says new API accounts use prepaid billing, with a $5 minimum purchase, free credits spent before purchased ones, and purchased credits expiring after one year (180 days for credits bought in Japan after November 13, 2026) [23]. Google says moving from its free tier to a paid tier means linking a billing account and prepaying at least $5, and new users default to prepaid billing [24]. Anthropic bills most Console organizations through prepaid credits that expire one year after purchase and are non-refundable; organizations with an invoicing arrangement are billed monthly instead [25].
Your Chat Subscription and the API
On November 22, 2026, the four providers’ own pages said the following [12, 13, 14, 15, 16]:
- OpenAI: ChatGPT and the API platform have separate billing systems, and API use is billed separately from a ChatGPT subscription [12]. Eligible ChatGPT Pro and Business subscriptions active for at least seven days can claim API credits for one linked API organization, such as $100 a month on the $100 Pro tier; unused credits expire each billing cycle, Plus, free trials, Enterprise and Edu don’t qualify, and OpenAI says availability depends on country and the benefit may change [26].
- Anthropic: paid Claude plans and the Claude Console are separate products, and the API is billed separately [13]. Max, Ultra and Team plans include monthly API credits, claimed by linking one Console organization; Free, Pro and Enterprise plans aren’t eligible, unused credits expire each billing cycle, and the credits don’t cover Claude on Amazon Bedrock, Google Cloud Vertex AI or Microsoft Foundry [27].
- Mistral: its subscription documentation says Mistral plans are global, applying across Vibe (its chat and coding product), Studio and API usage, with included monthly usage shared across Studio, the API and Vibe Code [14]. If pay-as-you-go is switched on, usage beyond that allowance draws on prepaid credits, which Mistral says is not a separate API plan; if not, usage can stop until the next billing period [14].
- Google: Gemini API use is billed through Cloud Billing accounts, but Google’s Developer Program pages list monthly Google Cloud credits with its AI plans, for example $10 per user per month with Google AI Pro [15, 16]. The credits arrive only after you join the free program, aren’t backdated, and on prepaid billing apply to eligible Gemini API use only while your prepaid balance is above $0 [16]. Each month’s credit is applied to a Cloud billing account you select and expires one year after it’s granted [28].
A no-code tool adds a second bill for its own plan, as connecting an API to a no-code tool explains.
Worked Example: A Month of Product Descriptions (Hypothetical)
Imagine a small online shop that sends each new product’s details to a model and gets back a short description. The shop and its numbers are made up; only the prices are real, copied from the providers’ pages on November 22, 2026, so read this as arithmetic, not a quote, a measurement or a verdict on which model is better [1, 2, 3]. Assume:
- About 400 input tokens per request: standing instructions plus the product’s details. By OpenAI’s rule of thumb, that’s roughly 1,600 characters [5].
- About 250 output tokens per request: a description of around 190 words by the same rule of thumb [5].
- A thousand requests a month, each standing alone, with no retries and no tools.
The table counts visible text only, so it understates bills on reasoning models: OpenAI says gpt-6.2-sol rejects requests that switch reasoning off and gpt-6-luna defaults to medium reasoning effort, Google’s output prices include thinking tokens, and Mistral lists reasoning among Mistral Small 4’s outputs [4, 2, 21].
Multiply the month’s input tokens, in millions, by the input price, and do the same for output. For gpt-6.2-sol, the month’s 0.4 million input tokens at $2.00 per million come to $0.80, and its 0.25 million output tokens at $10.00 per million come to $2.50, so the month costs $3.30, about a third of a cent per description [1].
| Model, standard rates | 1,000 requests a month | 100,000 requests a month |
|---|---|---|
| gpt-6-luna ($0.10 / $0.50) [1] | about $0.17 | about $16.50 |
| gpt-6.2-sol ($2.00 / $10.00) [1] | $3.30 | $330.00 |
| Gemini 3.5 Flash-Lite, paid tier ($0.30 / $2.50) [2] | about $0.75 | about $74.50 |
| Gemini 3.8 Flash, paid tier, through Dec 31, 2026 ($0.75 / $3.75) [2] | about $1.24 | about $123.75 |
| Gemini 3.8 Flash, paid tier, from Jan 1, 2027 ($1.50 / $7.50) [2] | about $2.48 | about $247.50 |
| Mistral Small 4 ($0.15 / $0.60) [3] | $0.21 | $21.00 |
Three variations show how the assumptions move the figure:
- Batch. If the descriptions can wait up to a day, OpenAI’s batch rates for gpt-6.2-sol ($1.00 input, $5.00 output) bring 1,000 requests to $1.65, and Google’s Flash-Lite batch rates ($0.15, $1.25) bring them to about $0.37 [1, 2].
- Reasoning. If each request also used 1,000 reasoning tokens (another invented figure), monthly output would reach 1.25 million tokens and the gpt-6.2-sol month would rise from $3.30 to $13.30, about four times as much [5].
- Caching. On OpenAI, these 400-token requests fall below the 1,024-token minimum that GPT-5.6 and later models need before anything is cached, so they get no caching discount there; OpenAI adds that at enough volume, lengthening a shared opening with useful, stable content can sometimes cost less, and says to measure it [7].
The example leaves out taxes, tool fees such as web search [1, 2], regional-processing uplifts [1], retries and any extra calls you add to check the output. In this example, model choice and output length move the total most; rerun the arithmetic with your own measured token counts.
List Price vs. What You Actually Pay
A list price is a rate, not a total.
Conversation history is billed again. In OpenAI’s API, linking requests into a conversation means every earlier turn’s input tokens are charged again as input [29].
Interrupted requests may still be charged. Anthropic says only successful calls are billed, but a request that was on track to succeed is still charged if your client disconnects or times out partway through [25].
The model bill is one line of several. Hosting, databases and your own time sit outside it; BuildAIQ’s guide to estimating an AI app’s running costs covers that wider budget, and choosing a model weighs price against other criteria.
What Causes Surprise Bills
- Tokens you didn’t plan for: hidden reasoning, resent conversation history, tool calls, and prompts that cross a long-context threshold [1, 5, 29, 9].
- Scheduled price changes and model rerouting. Google’s page shows Gemini 4 Carbon’s prices doubling on December 1, 2026, and says that from the same date, requests to the deprecated gemini-2.5-pro and gemini-2.5-flash models will be routed to gemini-3.8-flash and gemini-3.5-flash-lite and billed at those models’ rates [2]. Google’s terms say its pricing changes take effect 30 days after posting unless otherwise specified [22].
- Automatic top-ups. OpenAI turns auto-reload on by default when you set up prepaid billing, so credits are bought again when your balance falls below the threshold you set [23].
- Balances that don’t stop instantly. OpenAI says API access may not stop the moment credits run out, usage in that delay can leave a negative balance, and the prepaid balance shouldn’t be treated as an instant spending cutoff [23]. Google says its prepaid billing can overrun during a billing delay of about 10 minutes, and that batch jobs and agents may consume credits beyond the balance [24].
Leaked keys are covered in protecting your API key, and caps on request volume, which are separate from spending, in rate limits. Budgets, spending limits and alerts are in how to avoid unexpected AI API charges.
What We Know, What We Don’t, and Where Experts Disagree
What We Know
Price lists, discounts and billing rules are public, so an estimate is simple multiplication once token counts are known [1, 2, 9, 3].
What We Don’t Know
The biggest gap is your own usage: this guide’s token counts are invented, and our search turned up no independent measurement of how many tokens small apps use. Google says its plan credits can be used on Gemini API and AI Studio usage, subject to Google Cloud’s standard promotional-credit exclusions, without itemizing which Gemini charges count, and its pages name the Ultra plans inconsistently [15, 16, 28]. And Mistral’s sources disagree: its pricing page’s FAQ gives Mistral Large at $0.5 input and $1.5 output per million tokens, while its API documentation lists Mistral Large 4 at $0.7 and $2.1, so this guide doesn’t rely on either figure [30, 31].
What Experts Disagree About
This guide rests on providers describing their own billing, and our sources include no named experts taking opposing sides on how these rules work; where a provider’s own pages conflict, as Mistral’s do, the guide says so above.
Practical Takeaways
- Read the output price first, since long answers and hidden reasoning are both billed at that rate.
- Write the date, tier and unit next to every price you copy, and check the model’s deprecation status before building on it.
- Measure tokens on a few realistic requests, using the counts the provider reports, then estimate at two or three volumes on models from at least two providers.
- Check whether your chat plan includes any API credit, and what it excludes, on the provider’s own billing page.
- Check whether automatic top-ups are switched on, and don’t treat a prepaid balance as a hard stop.
The next guide, how to avoid unexpected AI API charges, turns these causes into controls.
Sources
- Pricing. OpenAI, accessed 2026-11-22.
- Gemini Developer API pricing. Google, accessed 2026-11-22.
- API pricing. Mistral AI, accessed 2026-11-22.
- Reasoning models. OpenAI, accessed 2026-11-22.
- Understanding and counting tokens. OpenAI Help Center, 2026-11, accessed 2026-11-22.
- Building with extended thinking. Anthropic, accessed 2026-11-22.
- Prompt caching. OpenAI, accessed 2026-11-22.
- Batch API. OpenAI, accessed 2026-11-22.
- Pricing. Anthropic, accessed 2026-11-22.
- Batch Processing. Mistral AI, accessed 2026-11-22.
- Prompt caching. Mistral AI, accessed 2026-11-22.
- Managing billing for ChatGPT and the API platform. OpenAI Help Center, 2026-11, accessed 2026-11-22.
- Why is Claude API usage billed separately from my paid Claude plan?. Anthropic (Claude Help Center), accessed 2026-11-22.
- Subscriptions. Mistral AI, accessed 2026-11-22.
- Google Developer Program Plans & Pricing. Google, accessed 2026-11-22.
- Google Developer Program FAQ. Google, 2026-11-17, accessed 2026-11-22.
- Understand and count tokens. Google, accessed 2026-11-22.
- Glossary. Mistral AI, accessed 2026-11-22.
- Deprecations. OpenAI, accessed 2026-11-22.
- Gemini deprecations. Google, accessed 2026-11-22.
- Mistral Small 4. Mistral AI, accessed 2026-11-22.
- Gemini API Additional Terms of Service. Google, 2026-03-23, accessed 2026-11-22.
- Setting up and managing prepaid API billing. OpenAI Help Center, 2026-11, accessed 2026-11-22.
- Billing. Google, accessed 2026-11-22.
- How do I pay for my Claude API usage?. Anthropic (Claude Help Center), accessed 2026-11-22.
- API credits benefit for eligible ChatGPT subscriptions. OpenAI Help Center, 2026-11, accessed 2026-11-22.
- Monthly API credits for Max, Ultra, and Team plans. Anthropic (Claude Help Center), accessed 2026-11-22.
- Google Developer Program Benefits FAQ. Google, 2026-11-09, accessed 2026-11-22.
- Conversation state. OpenAI, accessed 2026-11-22.
- Mistral Pricing | Vibe Plans, API Rates and Enterprise. Mistral AI, accessed 2026-11-22.
- Mistral Large 4. Mistral AI, accessed 2026-11-22.
