← All posts
💸AI

The Real Price of Frontier Models Is Not What the Pricing Page Says

Michael Sintim-Koree · July 2026

The pricing page math feels simple. Input tokens times input price plus output tokens times output price equals cost. That's what the calculator says. That's also not what ends up on the invoice.

Organizations routinely budget for AI API usage based on the listed per-token rate, then spend three to five times that figure once the system is actually running. The gap isn't fraud. Token price is one variable in a much more complicated equation, and most of the other variables are invisible until you're in production. A common pattern: a team's month-one invoice comes in at 4x their estimate because they modeled the token price correctly and modeled almost nothing else.


The token price is real. It's also the best-case scenario.

As of mid-2026, the major frontier model pricing sits roughly here: GPT-4o at $2.50 per million input tokens and $10 per million output, Claude Sonnet 4 at $3 per million input and $15 per million output (introductory pricing of $2/$10 was in effect through August 31, 2026), Gemini 1.5 Pro at $1.25 and $5. Those numbers are accurate. They assume you're sending one clean request and getting one clean response, which breaks immediately when you're building anything real.


System prompts: paying for the same text ten thousand times a day

Every API call includes your system prompt in the input. A 2,000-token system prompt costs 2,000 tokens on every single request. Ten thousand requests a day means 20 million tokens of system prompt alone, before a single word of user input. At GPT-4o's input rate, that's $50 per day in system prompt costs. Roughly $1,500 per month for text that never changes.

This is the cost most teams don't model when prototyping. In development, you make a few hundred calls and the system prompt overhead is invisible. In production at volume, it can exceed the cost of the actual user content.

Prompt caching changes this calculation significantly. OpenAI caches input tokens that repeat across calls at 50% of the standard input price, provided the repeated prefix is at least 1,024 tokens and has been seen within the last five to ten minutes. Anthropic's prompt caching for Claude works on a similar principle, though the mechanics differ. If your system prompt is long and stable, caching can cut your input costs nearly in half. But you have to structure your prompt with the stable content at the top, understand the cache window, and actually confirm the cache is being hit. None of that is automatic, and in practice teams have been known to assume caching was active when it wasn't, for weeks.


Multi-turn conversations and the compounding history problem

Multi-turn conversations include the full conversation history in every request. That's not optional; it's how stateless LLM APIs work. You send the entire conversation each time. By turn ten of a detailed technical conversation, you're sending thousands of tokens of history just to get a response to the current message.

A user who has a 20-turn conversation with your AI assistant, each turn averaging 500 tokens of exchange, has generated roughly 110,000 tokens of cumulative input by the end. At $3 per million input tokens, that's $0.33 for one conversation. Negligible in isolation. Ten thousand users doing it in a month is $3,300 just in conversation history overhead, not counting the actual responses.

RAG systems make this worse. Retrieval-augmented generation pulls relevant documents into the context before every call. Each chunk you inject is more input tokens. A system that injects three 500-token chunks per request has added 1,500 tokens to every API call. At scale, context stuffing is one of the fastest ways to blow a budget, and it tends to grow quietly as teams add more retrieval sources over time without revisiting the token math.


Output tokens cost more, and you generate more of them than you think

Output tokens are uniformly more expensive than input tokens across every major provider. Claude Sonnet 4 charges 5x more per output token than per input token. GPT-4o charges 4x more. This ratio matters because you control the number of output tokens much less than you think.

Models are verbose by default. Ask a frontier model to summarize a document and it will often add framing sentences, qualifications, and follow-up offers to help. That verbosity costs money. 'Be concise' in a system prompt helps but doesn't fully solve it. Some tasks (code generation, detailed analysis, structured output with extensive fields) have output token counts that are just inherently high. Budgeting based on average output length from a handful of test prompts routinely underestimates what production usage generates, often by a factor of two or three once real user behavior is in the mix.

Reasoning models add another dimension. OpenAI's o3 and Anthropic's Claude with extended thinking bill for reasoning tokens: the internal chain-of-thought the model generates before producing a visible response. These tokens are billed as output tokens but never appear in the response itself. o3 can generate anywhere from a few hundred to tens of thousands of reasoning tokens on a complex problem. Those tokens appear on the invoice. You don't see them in the response, but you pay for them.


Retries, failures, and paying twice for broken responses

Production AI systems retry on failure. Rate limits, timeouts, malformed outputs that fail validation: all of them trigger retry logic. A retry means you pay for the failed request and the successful one. If your output validation rejects 10% of responses and retries them, you've added 10% to your API bill.

Structured output failures are a specific pain point. If you're using a model to generate JSON that gets parsed downstream, and the model occasionally produces malformed JSON, every malformed response that triggers a retry is a double spend. Reliability problems compound in pricing, not just in quality.

Rate limit handling works the same way. An exponential backoff retry on a 429 error re-sends the full request with all its context. If you're hitting rate limits regularly because your application grew faster than your tier allows, you're paying for the throttled requests too.


Tier structure and the minimum commitment trap

OpenAI, Anthropic, and Google all have tiered rate limits tied to usage history or prepayment. To get the rate limits you need for a production workload, you often have to be at a spend tier that requires prepaying or demonstrating consistent prior spend. Organizations that underestimate volume discover this when they hit rate limits they didn't model, then have to either throttle their application or upgrade their tier, which may require a minimum monthly commitment.

Enterprise agreements add another layer. Discounted token pricing is available at volume, but it comes with minimum consumption commitments. Signing a contract for 500 million tokens per month at a discount and then using 200 million means paying for the unused 300 million. That is not a hypothetical scenario; it's a predictable consequence of committing to volume before you have reliable production usage data.


Routing to cheaper models is the highest-impact cost lever most teams ignore

Using Claude Opus 4 for every call because it produces the best output has a real price relative to routing appropriate tasks to Haiku or Sonnet. Classification tasks, short extraction, straightforward summarization: smaller, cheaper models handle these fine. The quality difference on routine tasks is often immeasurable. The cost difference is not.

A tiered routing strategy, where a lightweight classifier determines which tasks go to which model tier, can cut costs 60 to 80% on mixed workloads without touching quality on the tasks that matter. This is well-documented and rarely implemented in practice. Most production systems use one model for everything because it's simpler to build. That simplicity has a price.

  • Simple classification, intent detection, yes/no decisions: GPT-4o mini, Claude Haiku, Gemini Flash. Fractions of a cent per thousand calls.
  • Standard generation, summarization, moderate reasoning: mid-tier models like GPT-4o or Claude Sonnet.
  • Complex reasoning, nuanced analysis, tasks where quality measurably matters: frontier models. Reserve these for work that genuinely needs them.
  • Agentic loops with extended reasoning: o3, Claude with extended thinking. Model the token costs before enabling these in production. The reasoning token bill on a busy agent can be surprising.

You can't manage what you're not logging

The operational gap in most AI deployments is monitoring. Teams instrument latency and error rates, then skip per-request token accounting. Without per-request cost tracking, you can't tell which features are expensive, which users are driving disproportionate spend, or whether a prompt change accidentally doubled output length across production traffic.

The minimal viable setup: log input token count, output token count, model used, and feature or endpoint for every API call. Sum it by day and alert when the projection is tracking above budget. An afternoon of instrumentation changes the economics conversation completely, because you have data instead of estimates.

LLM observability tooling like LangSmith, Helicone, or Braintrust handles token tracking and cost visibility at the SDK or proxy level without requiring custom logging infrastructure. Worth using even if you don't need the broader tracing features, purely for cost visibility.


The token budget per user action: a number every team should know before launch

The question that gets skipped most often is a realistic token budget per user action. How many tokens does this feature spend per user request, on average and at the 95th percentile? What's the upper bound on per-user monthly spend? At what adoption level does this feature become unprofitable at current pricing?

That math is not complicated. It just requires doing it before the feature ships rather than after the first month's invoice arrives. It should be as standard as estimating compute costs for a new service. In practice, the invoice tends to arrive before the habit forms.

Token price times token count is arithmetic. The actual cost of running a frontier model in production is an engineering problem: prompt design, context management, model routing, output validation, retry logic, and usage monitoring all compound on top of the base rate. Getting the arithmetic right is necessary. It gets you maybe 30% of the way there.


If you've hit a billing surprise in a frontier model deployment (system prompt overhead that snuck up on you, a reasoning model that ran hotter than expected, a RAG system that quietly tripled context size over a few sprints) I'd genuinely like to hear what it was and how you caught it.