GGetWebTool

Free · No signup · 100% client-side

AI Token Cost Calculator

Estimate AI API costs for OpenAI, Claude, Gemini, DeepSeek and Mistral in seconds. Enter tokens, compare models side by side, and avoid surprise bills.

Optional: estimate tokens from sample text

Estimated total cost

$0.00

Per request
$0.00
Input cost
$0.00
Cached input cost
$0.00
Output cost
$0.00

Total tokens (in+out): 0· Requests: 0

Most expensive for this usage—

Compare 10 cheapest models (same usage)

ProviderModelPer requestTotal

Cheapest option is highlighted. Prices are USD list rates for planning.

Static snapshot · fetching live catalog…

100% client-side · Data never leaves your device · Free forever

How to use it

  1. Pick a model from OpenAI, Anthropic (Claude), Google (Gemini), DeepSeek, or Mistral.
  2. Enter input and output tokens, plus cached input and number of requests.
  3. Read the total cost and compare the same usage across every model.

How LLM API pricing works

LLM providers bill by tokens, small chunks of text a model processes. Pricing is quoted per 1 million tokens, with a lower rate for input and a higher rate for output (generated) tokens. Rule of thumb: one token is roughly 4 characters of English text, about 0.75 words.

Reference pricing (USD per 1M tokens)

ProviderModelInput / 1MOutput / 1MCached in / 1M
OpenAIGPT-5$1.25$10$0.125
OpenAIGPT-5 mini$0.25$2$0.025
OpenAIGPT-5 nano$0.05$0.4$0.005
OpenAIGPT-5.1$1.25$10$0.125
AnthropicClaude Sonnet 5$2$10$0.2
AnthropicClaude Opus 4.8$5$25$0.5
AnthropicClaude Haiku 4.5$1$5$0.1
GoogleGemini 2.5 Pro$1.25$10$0.125
GoogleGemini 2.5 Flash$0.3$2.5$0.03
GoogleGemini 3.5 Flash$1.5$9$0.15
GoogleGemini 3.6 Flash$0.75$3.75$0.075
DeepSeekDeepSeek V3$0.32$0.89
DeepSeekDeepSeek R1$0.5$2.15$0.35
DeepSeekDeepSeek V4 Pro$0.57948$1.73844$0.057948
DeepSeekDeepSeek V4 Flash$0.065$0.18$0.016
MistralMistral Large 3$0.5$1.5$0.05
MistralMistral Medium 3$0.4$2$0.04
xAIGrok 4.3$1.25$2.5$0.2
QwenQwen3 Max$0.78$3.9$0.156
MoonshotAIKimi K2.5$0.45$2.25$0.07

List prices for planning. Providers change pricing, so verify before large commits.

Frequently asked questions

Is the AI token cost calculator free?

Yes. The AI token cost calculator is completely free, runs 100% in your browser, and requires no account or signup.

How accurate are the AI API prices?

The calculator uses the latest published list prices for each model per 1M tokens. Prices are for planning and may not include discounts, bulk rates, or provider promotions.

Do you support OpenAI, Anthropic, and Google models?

Yes. The live calculator searches the full OpenRouter model catalog (300+ models across OpenAI, Anthropic, Google, DeepSeek, Mistral, xAI, Qwen, MoonshotAI, and more), with per-model input, output, and cached-input pricing refreshed from the public OpenRouter API.

How much does 300k tokens cost?

It depends on the model. For example, 300k input tokens on GPT-5 nano (~$0.05/1M) costs about $0.015, while on GPT-5 (~$1.25/1M) it costs about $0.375. Enter 300000 in the input field above and compare all models side by side.

How do I estimate Claude API costs?

Pick a Claude model above (e.g. Claude 3.5 Sonnet or Haiku), enter your input and output tokens plus request count. The calculator applies Anthropic's per-1M list prices and shows total, per-request, and cached-input savings instantly.

What is a token budget and how do I plan it?

A token budget is your planned input + output tokens multiplied by request volume. Estimate a single representative request above, set the number of requests (e.g. 1000), and use the total as your monthly budget baseline. The compare table shows the cheapest model for the same workload.

More free tools

Private, fast, and ready to use. No signup.

View all
{ }Live

JSON Formatter & Validator

Format, validate, and minify JSON in one click.

Open tool →
.*Live

Regex Tester

Test regular expressions with instant match highlighting.

Open tool →
⏱Live

Cron Expression Generator

Build cron schedules and preview exactly when they run.

Open tool →
🔐Live

JWT Decoder

Read the contents of any JWT token safely in your browser.

Open tool →
#Live

UUID Generator

Generate unique IDs in bulk for apps, databases, and tests.

Open tool →
64Live

Base64 Encode & Decode

Encode or decode Base64 text in seconds.

Open tool →
#Live

Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes online.

Open tool →
◎Live

Open Graph & Meta Preview

Create Open Graph and social share tags for any page.

Open tool →
⏲Live

Unix Timestamp Converter

Convert Unix timestamps to dates and timezones instantly.

Open tool →
🃏Live

Planning Poker

Ephemeral scrum poker rooms, no login, no data saved.

Open tool →
⬇Live

HTML to Markdown Converter

Convert HTML pages and snippets to clean Markdown instantly.

Open tool →
SQLLive

SQL Formatter

Format and beautify SQL queries with proper indentation and uppercase keywords.

Open tool →
⇄Live

CSV to JSON Converter

Convert CSV data to JSON and back, right in your browser.

Open tool →
🔑Live

Password Generator & Password Strength Checker

Generate strong, secure random passwords and check their strength.

Open tool →
🔏Live

JWT Encoder

Create a JWT token from header and payload, with optional signature.

Open tool →
✍Live

AI Prompt Builder

Assemble structured prompts with system, context, and task sections, and estimate token cost.

Open tool →
🎨Live

Color Converter

Convert colors between HEX, RGB, and HSL with an instant preview.

Open tool →