AI API costs are calculated based on the number of tokens processed. Most providers charge different rates for input (prompts) and output (completions) tokens. Input tokens are generally cheaper because they require less computational effort to process compared to generating new text.
The total cost is calculated using the following formula:
$$Cost = \left( \frac{\text{Input Tokens}}{1,000,000} \times \text{Input Price} \right) + \left( \frac{\text{Output Tokens}}{1,000,000} \times \text{Output Price} \right)$$
Monthly prediction is calculated by multiplying the cost of a single request by the total number of requests per month.
Compare API costs for major AI models like GPT-4, Claude, and Gemini. Predict your monthly expenses based on token usage accurately.
Savings Potential: 98.7%
Cost / Request
$0.000080
| Model | Cost / Request |
|---|---|
Google Gemini 2.0 FlashBest Value | $0.000080 |
OpenAI GPT-4o-mini (V2) | $0.0002 |
DeepSeek V3 (The Disruptor) | $0.0002 |
Google Gemini 2.0 Pro | $0.0031 |
Anthropic Claude 4 Sonnet | $0.0060 |
OpenAI GPT-5 (High-end) | $0.0063 |
Need to count your tokens first? Use our Token Counter
Use our Universal Token Counter
All calculations are performed locally in your browser. Your data is never sent to our servers.
Results are estimates based on standard models. Please verify critical data before taking action. Terms of Use