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?

First draft · API running costs
Compare models
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.

Model manufacturers (multiple selection)
API providers (multiple selection)
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.

Model and effort (multiple selection)

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.

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 / sourceAPI provider for this priceModel weight availabilityInput / 1MOutput / 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.