How much does one long prompt cost, and when does the price jump? Pick models, set prompt and output size, and the calculator prices a single request (and an optional month of requests) using verified API rates. Some vendors charge more once a prompt crosses a published threshold: xAI Grok at 200k tokens (the whole request is repriced) and OpenAI GPT-6 above 272K input tokens. Anthropic states its 1M-token Sonnet, Opus and Fable models have no long-context surcharge. The chart shows the step where a tier changes.
Your assumptions
- Prompt tokens, output tokens, cached share — your workload. Defaults are labelled examples, not averages.
- Requests per day / days per month — optional, for a monthly figure.
- Surcharge multiplier (optional) — Your assumption, only for cases you paste in yourself. Empty by default; we never add a surcharge a vendor does not publish.
- “Context window not published” — shown when our data has no official window for a model. We still price the request, but can’t warn if it exceeds the model’s limit.
How the estimate works
- Your prompt size picks the price tier the vendor publishes (for example < 200k vs ≥ 200k on xAI; ≤ 272K vs > 272K on OpenAI).
- Cost per request = input tokens × input rate + output tokens × output rate, with cached input at the cached rate where published.
- The tier label shows which rate applied; on xAI, all tokens in a ≥ 200k request use the long rate.
- Monthly = cost per request × requests/day × days.
- A red warning appears if your prompt is larger than a published context window.
What is not included
Reasoning/thinking tokens (see the reasoning token cost calculator), batch discounts, tool or search fees, tax, and models without verified rates.
Related
API cost calculator · Reasoning token cost calculator · Batch API savings calculator · Tokens explained · xAI API pricing
How we check prices
Rates come only from official vendor pricing pages in our dataset. Anthropic, OpenAI, Google, xAI and Perplexity API rates were rechecked on 2026-11-18 (Asia/Colombo); DeepSeek and v0 rates date from 2026-11-03. Anything we have not verified is labelled Your assumption or Price not verified, never estimated. Results are estimates in USD, excluding tax. Corrections: [email protected]. See /methodology/.