Everyday calculators
AI API Cost Calculator
Estimate API costs from input and output tokens and compare how many requests your budget covers across AI models.
AI BUDGET COMPARISON
How far does your AI budget go?
Calculator help & API costs
Compare your AI budget across models from OpenAI, Anthropic, Google, Mistral, DeepSeek and more.
Filters both lists instantly by model, manufacturer, API provider and effort. All search terms must match; existing filters still apply.
Token assumptions
Tokens are pieces of text. Presets are estimates; actual usage depends on the language, model and conversation history.
All displayed prices are API running costs: you pay to use the model on the named API provider’s infrastructure. Open weights means model weights are available; it does not mean a free API. Self-hosting costs are not calculated here. Follow the open-weights label for the license and usage terms.
Cost estimate, not a quality ranking. Output includes all billed output tokens, including reasoning where applicable. Excludes subscriptions, free tiers, caching, batch discounts, tools, taxes and currency conversion. Provider credits are not interchangeable.
Filter models
Applies to the budget comparison, coding value ranking and API price table. Manufacturers, API providers and weight status can be combined independently. Select multiple options within each group.
Select individual model variants
Clear the selection, then choose two or three models. All comparisons update immediately. Manufacturer, API provider, weight and benchmark filters still apply.
Calculation, sources & notes
Costs estimate your input tokens and total output including reasoning tokens. Every effort level of a model uses the same stored token rate and your same assumed token count. That is why low and max can show the same amount. Higher effort can actually consume more tokens and therefore cost more. Without measured usage, no cost multiplier is invented. These amounts are not measured benchmark-run costs.
Cost per request = (input tokens × input price + output tokens × output price) ÷ 1,000,000. Requests = budget ÷ cost per request, rounded down.
27 separate coding evaluation series, including SWE-bench, Terminal-Bench, FrontierCode and LiveCodeBench. Last additions: November 19, 2026; individual records retain their original verification dates; no live updates. Sorting and minimum scores apply only to the selected test. Other sourced results appear on each model. Sources include vendors, API providers and official benchmark submissions. Harness, reasoning budget and fallback models can affect results. No conversion between benchmarks or transfer across model versions. Missing results do not mean poor performance. Token costs remain unchanged; benchmark results do not predict successful requests per dollar. Pro results without a specified subset are kept separate. About the benchmark
Coding value-for-money ranking
Calculation, sources & notes
Costs estimate your input tokens and total output including reasoning tokens. Every effort level of a model uses the same stored token rate and your same assumed token count. That is why low and max can show the same amount. Higher effort can actually consume more tokens and therefore cost more. Without measured usage, no cost multiplier is invented. These amounts are not measured benchmark-run costs.
How the index is calculated
Uses the token settings above. Heuristic index = (benchmark score ÷ estimated request cost) ÷ baseline × 100. The baseline is either the fixed reference model or the best ratio in the filtered list. Higher is better. This is not a measured task success rate or benchmark cost: actual agents use different token amounts, harnesses and reasoning budgets. Only models with sourced scores in the selected test meeting the minimum score are ranked. Different tests are never combined.
The benchmark index divides the coding score by the sourced cost per task. The best value shown is 100. A dash indicates missing data or an undefined index.
Score data updated: November 19, 2026
Benchmark versions, subsets and independent evaluation series are kept separate. Each configuration/test displays the first recorded evidence; alternative measurements using different agents remain visible under Coding scores & sources. No averaging or automatic highest-score selection. Artificial Analysis SciCode values are excluded because that evaluator flags the dataset as under review.
Reasoning levels in this comparison
Each model and documented effort combination is a separate variant. Levels come from the API documentation (last additions November 19, 2026) and benchmark sources. The same label does not imply equal capability across models. Token budgets are shown separately. A score applies only to the configuration specified in its source; unknown test settings stay in separate entries and are never assigned to an API default. Variants without matching scores have no rank or index and appear last when sorting by index. Minimum score filters hide them. The chart only includes scored variants.
Chart: cost & coding performance
Up: higher coding score. Left: lower API cost. The cost axis is logarithmic; equal distances represent equal cost factors.
Coding score
API cost / 1,000 requests (USD, logarithmic)
| Rank | Model / source | API provider for this price | Model weight availability | Coding score | Estimated API cost / 1,000 requests | Value index (best = 100) | Benchmark cost per task | Benchmark index (best = 100) | Sources |
|---|
No variants match this search, model selection, minimum score and other filters. Change the search or filters.
API running costs, providers & sources
Example selection, standard paid text API rates in USD per million tokens. Price snapshot: new models November 19, other models November 8, 2026; no automatic updates. Marked models use Together AI serverless prices; other models use their creators' direct APIs. Input is calculated without cache discounts. Check current prices and model availability with the respective API provider.
| Model / source | API provider for this price | Model weight availability | Input / 1M | Output / 1M |
|---|
Weight status checked November 9, 2026. Open weights does not imply unrestricted usage rights. Weight availability for the exact Qwen3.8 Flash API version is unconfirmed; the related Flash-Next version is not treated as identical.
Cost per request = (input tokens × input price + output tokens × output price) ÷ 1,000,000. Requests = budget ÷ cost per request, rounded down.
How the calculation works
Method
Multiply the input token count by the input price per million tokens and the output token count by the output price per million tokens. Add the two amounts and divide by one million. Divide the budget by the request cost and round down to get the number of complete requests.
Worked example
At €2 per million input tokens and €8 per million output tokens, a request with 1,000 input tokens and 500 output tokens costs €0.006. A €6 budget covers 1,000 such requests.
Understanding the result
Use the same token counts when comparing models and check the provider, currency and price date. Caching, tool calls and other billable tokens can change the actual cost. Benchmark scores apply to the published tests and settings.