AI • Science • Technology • Future

Side Projects

Output Tokens Cost Half the Bill

Image from the original article
Featured image: original publisher image. Via original publisher.

API pricing for large language models often focuses on input and output token costs. But the real cost driver is usually output tokens, which make up half of the total bill. Source: dev.to.

Output Tokens: A Hidden Cost

Most models charge input tokens at a rate, and output tokens at a multiple of that. In the comparison between Gemini 4 Neon and Claude Opus 5.5, output tokens are priced at exactly five times the input rate.

The output portion alone is $30 — half the total.

This pattern holds across all models in the analysis.

Why Output Share Matters

Chat-based applications typically generate more output than input. A user prompt may be short, but the response is often long.

When output share exceeds 1:5, the cost structure shifts. The model’s output becomes the dominant cost factor. This is especially true for apps with conversational flows or content generation features.

Cached Input: A Key Difference

Some models offer a cached input rate — a lower price for prompts that reuse a shared prefix, like a system prompt or tool schema.

This means if 80% of prompts reuse the same prefix, input costs drop significantly.

For example, with 80% cache hit rate, input costs fall from $30 to about $7.20 per month. The model becomes much cheaper under real-world usage.

Image from the original article
original publisher image. Via original publisher. · Source

Claude Opus 5.5 does not publish a cached input rate. Without this data, it’s impossible to compare its performance under high cache conditions. This creates a gap in fair evaluation.

Fast Tiers: A Design Consideration

Anthropic offers a ‘fast’ tier for Claude Opus 5.5. This tier doubles both input and output rates — $8.00 per million input and $40.00 per million output.

This cost difference is not just a pricing detail. It affects feature design. If a feature requires low latency, the fast tier must be accounted for in development planning — not just in billing.

How to Apply This to Your Use Case

To calculate your own costs:

  1. Check your provider’s usage dashboard for actual input and output token counts.
  2. Find the per-million token rate from the vendor’s pricing page.
  3. Apply the rate to each token type. Multiply input tokens by input rate, output by output rate.
  4. If you use caching, split input into cached and uncached portions and price them separately.
  5. Update the calculation whenever a vendor changes pricing.

Prices change frequently. Always verify the source page before budgeting.

The full dataset used in this analysis is available at modelcost.org. Users can submit corrections or report outdated rates to hello@modelcost.org.

No volume discounts, committed-use pricing, or free tiers were included because they were not listed for these models.

The author acknowledges AI assistance in drafting this piece. All calculations were manually verified against the vendor pricing pages.

Model names are used descriptively. The author is not affiliated with Google, Anthropic, or OpenAI.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source