Skip to content
CodexPal
AI tools · for developers and teams

What will your AI feature
cost to run?

Estimate your token bill before launch and compare 17 models from five providers on the same workload.

Estimate before you build

AI API cost calculator.

Enter your workload once, then compare it across 17 models.

Estimated monthly cost · Claude Sonnet 5.5USD 270.00
Per request
USD 0.0090
Per 1,000 requests
USD 9.00
Per day
USD 9.00
Per year at this rate
USD 3,240.00
Input · cached · output share
44% · 0% · 56%
Tokens per month
75,000,000

Taxes, tool calls, images, audio and cache-write charges are not included.

Check Claude API pricing ↗
Same workload, every model

Monthly cost comparison.

ModelTierPer 1,000 requestsMonthlyRelative cost
OpenAIFast & low-costUSD 0.45USD 13.50
AnthropicFast & low-costUSD 0.45USD 13.50
DeepSeekFast & low-costUSD 1.20USD 36.00
GoogleFast & low-costUSD 1.25USD 37.50
MistralBalancedUSD 1.75USD 52.50
GoogleFast & low-costUSD 1.85USD 55.50
GoogleBalancedUSD 3.38USD 101.25
OpenAIFast & low-costUSD 3.75USD 112.50
OpenAIBalancedUSD 4.50USD 135.00
DeepSeekBalancedUSD 4.62USD 138.60
OpenAIBalancedUSD 9.00USD 270.00
AnthropicBalancedUSD 9.00USD 270.00
GoogleFrontierUSD 9.00USD 270.00
GoogleFrontierUSD 10.00USD 300.00
AnthropicFrontierUSD 18.00USD 540.00
AnthropicFrontierUSD 36.00USD 1,080.00
OpenAIFrontierUSD 45.00USD 1,350.00

Estimates only, from public USD list prices checked November 12, 2026 on each provider’s pricing page. Prices are standard-tier text rates. Cheaper is not the same as suitable: test quality on your own task before choosing. Token counts differ between tokenizers, so the same text can cost a different number of tokens on each model. Reasoning or thinking tokens are billed as output on the models that produce them. Regional processing, priority tiers, fine-tuning, tools and media are priced separately. Nothing you enter leaves your browser.

Get the inputs right

Measure a real request first.

Send a few realistic requests in a development environment and read the usage numbers the API returns. Include the system prompt, conversation history, retrieved documents and tool definitions in the input count. Those parts often outweigh the user’s message.

Use the token estimator for a quick first pass. Then confirm with the provider’s token-counting endpoint for the exact model you plan to use.

Read: estimate LLM costs before you build →
Lower the bill safely

Cache, batch, then route.

Put stable content such as instructions and reference text at the start of the prompt so it can be cached. Move work that can wait into a batch job or off-peak window. Send simple tasks to a smaller model and keep larger models for the cases that need them.

Set a monthly spending limit in the provider console and an application-level request ceiling. An estimate is a plan, not a cap.

Read: when prompt caching cuts costs →
Questions

API cost calculator FAQ.

How is an AI API request priced?

Most providers charge separately for input tokens you send and output tokens the model generates, each priced per million tokens. Output usually costs several times more than input. Cached input, batch processing and long prompts can change the rate.

How many tokens is my prompt?

A common rule of thumb is about four characters, or roughly three quarters of an English word, per token. Tokenizers differ between models and languages, so measure real prompts with the provider’s token-counting tool before setting a budget.

Does the calculator include reasoning tokens?

Enter them as part of the output tokens. Models that produce thinking or reasoning tokens bill them as output, so a short visible answer can still use many output tokens.

What does the cache share mean?

It is the percentage of each request’s input that the provider serves from its prompt cache, such as a long system prompt reused across requests. Cached input is billed at a lower rate. Some providers also charge to write to the cache or to store it, which this estimate does not include.

Are these prices current?

The presets were checked on November 12, 2026 against each provider’s public pricing page and are linked beside each model. Prices change, and your account’s tier, region or agreement may differ, so confirm before committing a budget.