AI API cost calculator
Compare token prices and monthly estimates for a stored snapshot of 69 AI models from 11 providers. Current prices and access may differ.
tokens · usage · comparison
Compare AI API token costs
Enter usage and select models to compare estimated cost, value rankings and Toolvil’s reference performance scores.
Enter input/output tokens per call and daily calls, then choose at least 2 models. Estimates use stored standard public API rates. Actual billing depends on options, account access and contract terms.
Select at least 2 models.Guide to the AI API cost calculator
This calculator helps product teams, developers and operators compare token-cost scenarios for 69 stored text and coding model rows from 11 providers. The underlying official-price snapshot was reviewed on 2026-09-17. It includes GPT-5.6 Sol, Terra and Luna, GPT-5.4 nano, Claude Opus 5 and Sonnet 5, Gemini 3.7 Flash, 3.6 Flash and 3.5 Flash-Lite, plus xAI Grok, DeepSeek V4, Qwen3 Coder, Kimi, GLM, MiniMax, Mistral and Amazon Nova. Enter input tokens, output tokens and calls per day to estimate a 30-day month for a prototype, support chatbot, coding agent or document-summary workflow. Availability and newer models may have changed since the snapshot.
An API bill involves more than a price table. Output can cost more than input, and internal reasoning or thinking tokens may add output charges. The same 1,000 input tokens and 500 output tokens can have very different costs across GPT-5.5, DeepSeek V4 Flash, Gemini Flash and Claude Opus rows. Compare stored standard-rate scenarios here, then check current official prices, token limits, regional terms and account availability before committing a budget. USD is the pricing basis; EUR amounts are illustrative conversions, not a separate European provider tariff.
Use cases
- Compare monthly support-chatbot costs across stored GPT, Claude, Gemini and DeepSeek rows
- Shortlist stored Kimi, Qwen, GLM, Mistral and Grok rows for coding-agent cost comparisons
- Explore budgets for output-heavy document summaries, log analysis or assisted translation
Before you enter usage
- Include prompts, system messages and RAG context in the input-token estimate.
- Allow for generated answers, reasoning, JSON and code when estimating output tokens.
- Estimate average daily traffic and batch workloads separately rather than treating a peak as the daily average.
How to use
- Enter input tokens, output tokens and calls per day.
- Choose whether to exclude free rows and show the alternate currency equivalent.
- Search by a model or provider name such as GPT, Sonnet, DeepSeek or Qwen.
- Use provider tabs and model cards to select at least 2 rows.
- Compare monthly cost, reference scores and value rankings in summaries, bar charts, the scatter plot and sortable table.
How to read the prices
Stored input/output rates are quoted per 1M tokens in USD. The snapshot records promotional Gemini 3.8, 3.7 and 3.6 Flash rates through 2026-12-31, with $1.50/$7.50 noted for 2027; GPT-5.6 Sol is recorded at $4/$20 with $5/$30 reference pricing and a promotion available at least through 2026-11-21. Confirm continuation or replacement with official sources. Standard or short-context tiers are used where providers have multiple context or processing tiers. Qwen uses international Singapore list prices. DeepSeek rows use peak cache-miss input/output rates; the stored off-peak note records a 50% reduction. MiniMax M3 has separate rows for up to 512K and more than 512K input tokens. These rows do not automatically switch tiers or apply discounts: read each note and check the actual account conditions.
Ways to reduce costs
- Model routing: Evaluate less expensive models for classification, short summaries and preprocessing, reserving more capable models for complex reasoning or final answers.
- Prompt caching: Check caching discounts for repeated system prompts, document context and tool definitions.
- Output limits: When long answers are unnecessary, test a smaller output-token limit and a concise response format.
- Batch processing: For non-urgent workloads, compare batch, flex or offline options against standard pricing.
Official pricing sources
Before budgeting, check the official pricing pages for OpenAI, Anthropic, Google, xAI, DeepSeek, Alibaba Cloud Model Studio, Kimi, Z.AI, MiniMax, Mistral and AWS Nova. Toolvil’s normalized reference scores aid relative comparisons; they do not guarantee an independent benchmark ranking or suitability for your workload. Rows without a reviewed score remain in cost comparisons but are excluded from score and value rankings. Evaluate your own tasks and confirm that each model is available to your account.
Calculation basis and sources
- Calculation scope
- Applies the stored standard input/output rates to your tokens per call and daily calls. Caching, batches, priority processing, long contexts, tools and taxes are not added automatically.
- Calculation method
- [(input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate)] × daily calls × 30 days. USD is the calculation basis; EUR uses the displayed exchange rate.
- Limits and disclaimer
- Illustrative estimates from a dated official-price snapshot. Check current prices and account, region, tier and contract conditions before budgeting. Unreviewed model scores are not invented.
- Personal information processing
- Usage inputs and calculations stay in your current browser; they are not sent to a server or stored.
🗓️ Source and copy review 2026-09-17 · 🔁 Next review due 2026-10-17
Reference sources
- OpenAI API pricing (flagship table; GPT-5.6 Sol promotional pricing at least through 2026-11-21)
- OpenAI model comparison and per-model pages (GPT-6 Astra, GPT-5.6 family, GPT-5.5, GPT-5.4 family, GPT-5.2, GPT-5 mini)
- Anthropic Claude API pricing (Fable 5.1, Opus 5, Sonnet 5 standard $2/$10, Haiku 4.5)
- Anthropic models overview (context windows)
- Google Gemini API pricing (Gemini 3.8/3.7/3.6 Flash promotional pricing through 2026-12-31)
- Google Gemini 3.8 Flash model limits
- xAI API pricing (Grok 4.6, 4.3, Build 0.1, long-context rates)
- DeepSeek API pricing (V4.1 Flash, V4 Pro; peak and off-peak rates, off-peak 50% off)
- Alibaba Cloud Model Studio pricing (International list prices, tiered by input tokens)
- Kimi model pricing (K3, K2.7 Code)
- Z.AI pricing
- MiniMax pay-as-you-go pricing
- Mistral pricing
- Amazon Nova pricing
- Provider logomarks are each provider's official mark, reproduced as SVG from the MIT-licensed lobehub/icons set for identification only; all trademarks belong to their respective owners
FAQ
How are AI API token costs calculated?
Divide input tokens by 1,000,000 and multiply by the input rate. Do the same for output tokens and add both amounts for cost per call. Multiply by daily calls and 30 for a monthly estimate. Rates are calculated in USD; EUR displays convert the same estimate.
What is the date of this price snapshot?
The underlying table records official pricing reviewed for all 11 providers on 2026-09-17. It is not a live feed or a complete current model directory. Prices, access, region, batching, caching, long-context tiers and priority options can change. Check the current official pages and the model available to your account before relying on the estimate.
Which GPT, Claude and Gemini rows are included?
The stored table includes GPT-6 Astra, GPT-5.6 Sol, Terra and Luna, Claude Fable 5.1, Opus 5 and Sonnet 5, Gemini 3.8 and 3.7 Flash, Grok 4.6, DeepSeek V4.1 Flash, Qwen3.8 Max, Kimi K3 and GLM-5.3 among its text and coding rows. This snapshot does not promise inclusion of every newer model. Rows without reviewed scores participate in cost comparisons but not performance or value rankings.
Is the listed rate enough for reasoning models?
Not always. Internal reasoning or thinking tokens can add billed output tokens. Actual cost can vary with task difficulty and reasoning settings. Include these tokens in your output estimate and check the provider’s billing definition; this calculator does not infer hidden token usage.
Will the displayed currency amount equal my bill?
No. USD estimates use stored USD token rates. EUR displays use a dated ECB reference or your custom USD-per-EUR rate. Card exchange rates, fees, taxes, cloud marketplace charges and enterprise terms can differ. The estimate is not a guaranteed charge.