Cost formula
Request cost = (context input tokens / 1M × input price) + (output tokens / 1M × output price); Models filtered where context input tokens ≤ model context limit
Calculator
Compare the cost of large context packs—docs, chat history, or RAG chunks—against each model’s window. See utilization, full-window fill cost, and the cheapest models that still fit.
Context window
$842.24$0.0842 / req
Fits Gemini 2.5 Pro (1,000,000 ctx)
Pack
Pick a planning size or enter exact context tokens.
Fit meter
Fit/overflow gauge plus cost of stuffing the full window.
871,200 tokens of headroom remain for output and growth.
Cheapest models that fit this pack — GPT-5 nano ($26.88), GPT-5.4 nano ($26.88), Gemini 2.0 Flash-Lite ($48.00).
View cheapest fit: GPT-5 nanoContext packs are planning sizes (8K–1M). Some providers charge long- context premiums above a threshold—confirm official tiers. Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Price workloads that use large context windows from 8K to 1M tokens and check whether your prompt fits available models. Long-context input is billed at standard or premium input rates on every request, so a 200K-token RAG pack dominates cost even if output is short. Find cheaper models that still fit your context needs.
Request cost = (context input tokens / 1M × input price) + (output tokens / 1M × output price); Models filtered where context input tokens ≤ model context limit
Context window marketing numbers invite stuffing full documents into prompts, but you pay input tokens for every byte on every call. Right-sizing context is often the fastest cost cut without changing models.
On most providers, all input tokens bill at the input rate unless cached at a discount. Some providers add long-context premiums above certain lengths.
Only if you truly need it. Larger-context models are often more expensive per token. Fit context to the smallest capable model.
CentsPerToken uses approximate list prices and published context limits for planning. Verify officially before architecting around a specific window size.
The RAG calculator models indexing plus retrieval plus generation. This tool focuses on per-request context sizing and model fit.