LLM API Pricing Calculator
🔒 In your browserCompare OpenAI, Claude & Gemini costs side by side.
| Model | Provider | Total cost |
|---|---|---|
| Gemini 1.5 Flashcheapest | Google (Gemini) | $0.37 |
| GPT-4.1 nano | OpenAI | $0.50 |
| Gemini 2.0 Flash | Google (Gemini) | $0.50 |
| GPT-4o mini | OpenAI | $0.75 |
| GPT-4.1 mini | OpenAI | $2.00 |
| Gemini 2.5 Flash | Google (Gemini) | $2.80 |
| Claude 3.5 Haiku | Anthropic (Claude) | $4.80 |
| o4-mini | OpenAI | $5.50 |
| Gemini 1.5 Pro | Google (Gemini) | $6.25 |
| GPT-4.1 | OpenAI | $10.00 |
| o3 | OpenAI | $10.00 |
| Gemini 2.5 Pro | Google (Gemini) | $11.25 |
| GPT-4o | OpenAI | $12.50 |
| Claude Sonnet 4 | Anthropic (Claude) | $18.00 |
| Claude 3.5 Sonnet | Anthropic (Claude) | $18.00 |
| Claude Opus 4 | Anthropic (Claude) | $90.00 |
| Claude 3 Opus | Anthropic (Claude) | $90.00 |
Loading live prices…
Disclaimer: Estimates for informational purposes only. Pricing and performance figures come from a community-maintained feed (LiteLLM) with bundled fallbacks and may be outdated or inaccurate. Always confirm current prices on the official OpenAI, Anthropic, Google, or cloud-provider pricing pages before making decisions. ToolsHub is not affiliated with these companies; product names are trademarks of their owners. Token counts for non-OpenAI models are approximate.
About the LLM API Pricing Calculator
Choosing between OpenAI, Claude and Gemini often comes down to cost for your specific workload. This free LLM API pricing calculator compares all three side by side for the same token usage, so you can quickly see which model is cheapest for your use case.
It runs in your browser with bundled pricing data.
How to compare LLM API costs
- Enter your typical input and output tokens per request and volume.
- See estimated costs for comparable OpenAI, Claude and Gemini models together.
- Pick the best value for your quality and budget needs.
Comparing providers fairly
Because every provider prices per token, a fair comparison uses the same input and output token counts and the same request volume across all of them. This calculator applies your numbers to comparable OpenAI, Claude and Gemini models at once, so you can see the real cost difference for your workload rather than comparing headline rates that assume different usage.
Frequently asked questions
How do I compare AI API costs fairly?
Use the same input/output token counts and request volume across providers, since all price per token. This tool applies your numbers to OpenAI, Claude and Gemini at once.
Is the cheapest model always best?
No. Balance cost against quality, latency and features — a pricier model can be cheaper overall if it needs fewer retries or shorter prompts.
Are the prices current?
They're estimates from bundled data and may lag official changes; verify on each provider's pricing page before deciding.
Is the cheapest model always the best choice?
No. Balance cost against quality, latency and reliability — a slightly pricier model can be cheaper overall if it needs fewer retries or shorter prompts to get the job done.
Related searches
Learn more
Related Calculators tools
🔗 Embed this tool on your website — free
Copy this and paste it into your page's HTML. The tool runs in the visitor's browser, just like here. Change height to fit, or add the optional auto-resize snippet below. Add ?theme=dark to the URL for dark mode.
<iframe src="https://toolhq.dev/embed/api-pricing-calculator/" title="LLM API Pricing Calculator — ToolsHub" width="100%" height="520" style="border:1px solid #e5e7eb;border-radius:12px;max-width:680px" loading="lazy"></iframe>Optional: auto-resize the iframe height
Add this once on the same page so the iframe grows to fit the tool:
<script>
addEventListener("message", function (e) {
if (e.data && e.data.type === "toolshub:resize") {
document.querySelectorAll('iframe[src*="/embed/"]').forEach(function (f) {
if (f.contentWindow === e.source) f.style.height = e.data.height + "px";
});
}
});
</script>