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.

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.
| Content | Approximate 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 examples | 1,000 to 3,000 |
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.
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.
| Tier | Use it for | Avoid it for |
|---|---|---|
| Flagship | Complex reasoning, agents, difficult code, high-stakes drafting | Simple classification or extraction at volume |
| Mid-range | Most chat assistants, summaries, RAG answers | The very hardest multi-step tasks |
| Small | Routing, tagging, extraction, short replies | Nuanced writing and reasoning |

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 cost | Output cost | Monthly total |
|---|---|---|---|
| Flagship: USD 5 input, USD 25 output | USD 46.50 | USD 18.75 | about USD 65 |
| Mid-range: USD 1 input, USD 5 output | USD 9.30 | USD 3.75 | about USD 13 |
| Small: USD 0.20 input, USD 0.80 output | USD 1.86 | USD 0.60 | about USD 2.50 |
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
| Cost | Why it appears | How to limit it |
|---|---|---|
| Retries and errors | Timeouts and rate limits cause repeated calls | Back-off and sensible timeouts |
| Conversation history | Each turn resends earlier messages | Summarise or trim history |
| Evaluation runs | Testing changes against a question set | Run on a small, representative set |
| Embeddings and search | RAG indexes need embeddings and storage | Re-index only changed documents |
| Monitoring and logging | Storing prompts and answers for review | Sample, and respect data retention rules |
| Engineering time | Building and maintaining the feature | Start simple; avoid premature complexity |

Keeping the bill under control
- Set budgets and alerts in each provider’s console, per project or API key.
- Log tokens per request and per feature, so you can see which part of the app costs most.
- Route by difficulty. Send simple requests to small models and escalate only when needed.
- Cache and batch wherever latency allows.
- Review monthly, as you would cloud spend; our FinOps review guide applies to AI too.
- Re-check prices quarterly. Providers cut prices and release cheaper models often.

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.



