Skip to content
Eudora Technology
Home  / Insights
Cloud Technology

AI API Costs Explained: Tokens, Model Tiers and How to Budget in 2026

Network Aisle Front.
Photo: Network Aisle Front by Robert.Harker, CC BY-SA 3.0, via Wikimedia Commons

Building AI into a website, app or internal tool usually means paying an AI provider per use through an API. The pricing pages of OpenAI, Anthropic and Google look simple, a few dollars per million tokens, but the real monthly bill depends on things that are easy to miss: how long your prompts are, how much the model writes back, which model tier you pick, and whether you use caching and batch discounts. Prices also change several times a year, usually downwards for a given level of quality. This guide explains the mechanics so you can estimate a budget, compare providers fairly and avoid surprises. The figures in the worked example are illustrative; always check the providers’ current price pages.

Server racks at the NOIRLab Headquarters Computer Server Room in Tucson, Arizona.
Every request to an AI API is processed on GPU servers and billed by the token.Photo: NOIRLab HQ Server Racks (6V6A0402-CC) by NOIRLab/NSF/AURA/T. Slovinský, CC BY 4.0, via Wikimedia Commons

Tokens: the unit you pay for

Models read and write text as tokens, pieces of words. OpenAI’s own help article gives the rule of thumb that one token is about four characters of English, or roughly three quarters of a word. Other languages, code and unusual formatting use more tokens per word. Images, audio and PDFs are also converted into tokens, often many of them.

ContentApproximate tokens
A short customer question (50 words)about 70
A one-page policy (500 words)about 700
A 20-page contract (10,000 words)about 13,000
A detailed system prompt with examples1,000 to 3,000
Rough English estimates; providers offer token counters for exact figures.

Why output costs more than input

Every request has input tokens, everything you send including instructions, retrieved documents and conversation history, and output tokens, what the model writes back. Generating text is more compute-intensive than reading it, so all three major providers charge several times more per output token. Reasoning models add another twist: they produce internal thinking tokens before the answer, and those are usually billed as output.

Implication

Long answers and heavy reasoning drive cost. Asking for concise output, or using reasoning only where it helps, can halve a bill without changing the model.

Model tiers: flagship, mid-range and small

Each provider sells a range: a flagship model for the hardest tasks, a mid-range model that balances quality and cost, and small, fast models for simple, high-volume work. The price difference between tiers is often ten times or more, while the quality difference on simple tasks can be negligible.

Relative cost per task by model tier (index, flagship = 100)
Flagship model100
Mid-range modelabout 25
Small, fast modelabout 5
Illustrative ratio based on the spread of published 2026 price lists; exact ratios vary by provider and model.
TierUse it forAvoid it for
FlagshipComplex reasoning, agents, difficult code, high-stakes draftingSimple classification or extraction at volume
Mid-rangeMost chat assistants, summaries, RAG answersThe very hardest multi-step tasks
SmallRouting, tagging, extraction, short repliesNuanced writing and reasoning
Many applications route each request to the cheapest tier that handles it well.
Aurora electronic calculator DT210 02.
Matching the model to the task is the single largest cost lever.Photo: Aurora electronic calculator DT210 02 by Coyau, CC BY-SA 3.0, via Wikimedia Commons

Consumer subscriptions such as ChatGPT Plus or Claude Pro are a different product from the API. A subscription gives one person interactive use within limits for a flat monthly fee; the API is metered and designed for software that calls the model automatically. A business building a feature into its own website or app needs the API, while staff who simply chat with an assistant are better served by a business subscription. Mixing the two up is a common source of both overspending and policy breaches.

Rate limits matter alongside price. New API accounts start with modest limits on requests and tokens per minute, which rise with spending history. Plan for them early if a launch could bring a sudden spike in traffic.

Discounts most teams miss

  • Prompt caching. If many requests share a long prefix, such as the same instructions or document, providers can cache it and charge much less for cached input tokens.
  • Batch processing. OpenAI, Anthropic and Google offer batch interfaces for jobs that can wait up to about a day, at roughly half the normal price.
  • Shorter context. Sending only the relevant passages instead of whole documents, as in retrieval-augmented generation, reduces input tokens.
  • Committed use. Larger customers can negotiate committed spend discounts, similar to cloud commitments; see our guide to cloud commitment discounts.

A worked example: a customer support assistant

Consider a support assistant on a small business website that answers 3,000 questions a month. Each request sends a 1,500-token system prompt, about 1,500 tokens of retrieved help articles and a short question, roughly 3,100 input tokens in total, and receives a 250-token answer. That is about 9.3 million input tokens and 0.75 million output tokens a month. The example rates below are illustrative, chosen to sit within the range of published 2026 prices for each tier.

Model tier (example rates per million tokens)Input costOutput costMonthly total
Flagship: USD 5 input, USD 25 outputUSD 46.50USD 18.75about USD 65
Mid-range: USD 1 input, USD 5 outputUSD 9.30USD 3.75about USD 13
Small: USD 0.20 input, USD 0.80 outputUSD 1.86USD 0.60about USD 2.50
Illustrative calculation; check current rates. Caching the 1,500-token system prompt would cut input costs further.
Example monthly cost for 3,000 support questions (USD)
InputOutput
Flagship tier46.5018.75
Mid-range tier9.303.75
Small tier1.860.60
Same assumptions as the table above.

Two lessons stand out. First, token costs for a small business application are often modest; the engineering is the larger cost. Second, input dominates here because of the long prompt and retrieved articles, which is exactly where caching and tighter retrieval help.

Hidden costs beyond tokens

CostWhy it appearsHow to limit it
Retries and errorsTimeouts and rate limits cause repeated callsBack-off and sensible timeouts
Conversation historyEach turn resends earlier messagesSummarise or trim history
Evaluation runsTesting changes against a question setRun on a small, representative set
Embeddings and searchRAG indexes need embeddings and storageRe-index only changed documents
Monitoring and loggingStoring prompts and answers for reviewSample, and respect data retention rules
Engineering timeBuilding and maintaining the featureStart simple; avoid premature complexity
Tokens are often the smallest line once a feature is live.
View on a HP ProLiant DL580 G7 server. Formerly (2012-2016) used as a VMWare ESXi node, since then in use as part of a 3-node Elasticsearch cluster. Server specifications: Quad Int
Monitoring usage per feature is the only way to know where AI spend is going.Photo: HP ProLiant DL580 G7 in 2023 by Btrs, CC BY-SA 4.0, via Wikimedia Commons

Keeping the bill under control

  1. Set budgets and alerts in each provider’s console, per project or API key.
  2. Log tokens per request and per feature, so you can see which part of the app costs most.
  3. Route by difficulty. Send simple requests to small models and escalate only when needed.
  4. Cache and batch wherever latency allows.
  5. Review monthly, as you would cloud spend; our FinOps review guide applies to AI too.
  6. Re-check prices quarterly. Providers cut prices and release cheaper models often.
This is an example of a simple budgeting spreadsheet. All text and figures are my own
AI spend belongs in the same monthly review as the rest of the cloud bill.Photo: Simple budgeting spreadsheet eg by Smallbones, CC0, via Wikimedia Commons

Our guide to cutting cloud costs without losing performance covers the infrastructure side, and our cloud solutions team can model AI costs for a planned feature before you build it.

Frequently asked questions

How much does it cost to add AI to a website?

For a small business chatbot handling a few thousand questions a month, token costs can be a few dollars to tens of dollars depending on the model tier. Development and maintenance usually cost more.

What is a token?

A chunk of text, roughly four characters or three quarters of a word in English. Providers charge per million tokens.

Why is output more expensive than input?

Generating text takes more computation per token than reading it, so providers charge more for output.

Which provider is cheapest?

It changes often and depends on the tier. Compare equivalent tiers on your own test set, including quality, not just price per token.

What is prompt caching?

A discount for reusing the same long prompt prefix across requests; the provider stores it and charges less to read it again.

Planning an AI feature and want a realistic cost estimate? Get in touch with Eudora Technology to talk about your project.

Sources

  1. OpenAI API pricing OpenAI · accessed November 2026
  2. Claude API pricing Anthropic · accessed November 2026
  3. Gemini API pricing Google · accessed November 2026
  4. Prompt caching Anthropic · accessed November 2026
  5. Batch API OpenAI · accessed November 2026
  6. What are tokens and how to count them OpenAI Help Centre · accessed November 2026
Keep reading

Related insights