Count tokens. Compare the cost on every model.
Paste a prompt and set how long you expect the answer to be. See the tokens and the price per call and per 1,000 calls on today's models. It runs in your browser, so nothing you paste leaves this page.
- Tokens (GPT)
- 40
- Words
- 34
- Characters
- 191
| Model | Input | Output | Per call | Per 1,000 calls |
|---|---|---|---|---|
| Claude Haiku 5.5Anthropic · $0.1 / $0.5 per 1M | ≈48 | ≈600 | $0.0003 | $0.3048 |
| GPT-4o miniOpenAI · $0.15 / $0.6 per 1M | 40 | 500 | $0.00031 | $0.306 |
| GPT-5.4 nanoOpenAI · $0.2 / $1.25 per 1M | 40 | 500 | $0.00063 | $0.633 |
| DeepSeek FlashDeepSeek · $0.3 / $1.2 per 1M · Half price off-peak | ≈44 | ≈550 | $0.00067 | $0.6732 |
| Gemini 3.5 Flash-LiteGoogle · $0.3 / $2.5 per 1M | ≈42 | ≈525 | $0.0013 | $1.33 |
| Gemini 3.8 FlashGoogle · $0.75 / $3.75 per 1M | ≈42 | ≈525 | $0.002 | $2.00 |
| DeepSeek V4 ProDeepSeek · $1.32 / $3.96 per 1M · Half price off-peak | ≈44 | ≈550 | $0.0022 | $2.24 |
| GPT-5.4 miniOpenAI · $0.75 / $4.5 per 1M | 40 | 500 | $0.0023 | $2.28 |
| Claude Haiku 4.5Anthropic · $1 / $5 per 1M | ≈48 | ≈600 | $0.003 | $3.05 |
| Gemini 4 HydrogenGoogle · $1.5 / $7.5 per 1M | ≈42 | ≈525 | $0.004 | $4.00 |
| GPT-4.1OpenAI · $2 / $8 per 1M | 40 | 500 | $0.0041 | $4.08 |
| GPT-6.2 SolOpenAI · $2 / $10 per 1M | ≈40 | ≈500 | $0.0051 | $5.08 |
| GPT-4oOpenAI · $2.5 / $10 per 1M | 40 | 500 | $0.0051 | $5.10 |
| Gemini 4 CarbonGoogle · $2 / $10 per 1M | ≈42 | ≈525 | $0.0053 | $5.33 |
| Claude Sonnet 5.5Anthropic · $2 / $10 per 1M | ≈48 | ≈600 | $0.0061 | $6.10 |
| GPT-5.4OpenAI · $2.5 / $15 per 1M | 40 | 500 | $0.0076 | $7.60 |
| Gemini 4 NeonGoogle · $3 / $15 per 1M | ≈42 | ≈525 | $0.008 | $8.00 |
| Claude Opus 5.5Anthropic · $4 / $20 per 1M | ≈48 | ≈600 | $0.0122 | $12.19 |
| GPT-5.5OpenAI · $5 / $30 per 1M | 40 | 500 | $0.0152 | $15.20 |
| Claude Fable 5.2Anthropic · $8 / $40 per 1M | ≈48 | ≈600 | $0.0244 | $24.38 |
Standard API prices in USD, without batch discounts or cached input; prices checked November 26, 2026. GPT counts use OpenAI's tokenizer; ≈ marks estimates for models whose tokenizer isn't public. Sources: OpenAI, Anthropic, Google, DeepSeek.
How it works
- 1
Paste your prompt
Include the system prompt and any context you send with it: everything you send counts as input.
- 2
Set the answer length
Enter the expected output in tokens or words. Output usually costs several times more than input.
- 3
Compare models
See input and output tokens, the price per call and per 1,000 calls, cheapest first.
AI API prices per 1M tokens
Standard pay-as-you-go prices in US dollars, without batch discounts or cached input. Divide by 1,000 for the price per 1,000 tokens.
| Model | Provider | Input | Output | Notes |
|---|---|---|---|---|
| GPT-5.5gpt-5.5 | OpenAI | $5 | $30 | $10 / $45 above 272K input tokens |
| GPT-5.4gpt-5.4 | OpenAI | $2.5 | $15 | $5 / $22.5 above 272K input tokens |
| GPT-5.4 minigpt-5.4-mini | OpenAI | $0.75 | $4.5 | |
| GPT-5.4 nanogpt-5.4-nano | OpenAI | $0.2 | $1.25 | |
| GPT-6.2 Solgpt-6.2-sol | OpenAI | $2 | $10 | |
| GPT-4.1gpt-4.1 | OpenAI | $2 | $8 | |
| GPT-4ogpt-4o | OpenAI | $2.5 | $10 | |
| GPT-4o minigpt-4o-mini | OpenAI | $0.15 | $0.6 | |
| Claude Fable 5.2claude-fable-5-2 | Anthropic | $8 | $40 | |
| Claude Opus 5.5claude-opus-5-5 | Anthropic | $4 | $20 | |
| Claude Sonnet 5.5claude-sonnet-5-5 | Anthropic | $2 | $10 | |
| Claude Haiku 5.5claude-haiku-5-5 | Anthropic | $0.1 | $0.5 | $0.5 / $2.5 above 100K input tokens |
| Claude Haiku 4.5claude-haiku-4-5 | Anthropic | $1 | $5 | |
| Gemini 4 Carbongemini-4-carbon | $2 | $10 | $4 / $20 from December 1, 2026 | |
| Gemini 4 Neongemini-4-neon | $3 | $15 | ||
| Gemini 4 Hydrogengemini-4-hydrogen | $1.5 | $7.5 | ||
| Gemini 3.8 Flashgemini-3.8-flash | $0.75 | $3.75 | $1.5 / $7.5 from January 1, 2027 | |
| Gemini 3.5 Flash-Litegemini-3.5-flash-lite | $0.3 | $2.5 | ||
| DeepSeek Flashdeepseek-flash | DeepSeek | $0.3 | $1.2 | Half price off-peak |
| DeepSeek V4 Prodeepseek-v4-pro | DeepSeek | $1.32 | $3.96 | Half price off-peak |
Prices checked on each provider's pricing page.
Tokens explained
What a token is
Models read and write text in tokens: common words are one token, longer or rarer words are split into several. Spaces and punctuation count too.
Rules of thumb
In English, 1 token is about 4 characters or ¾ of a word, so 1,000 words is roughly 1,300 tokens. Code, numbers, emoji and most other languages use more tokens per word.
Input vs output
Everything you send counts as input: the system prompt, instructions, chat history and pasted documents. The answer is output, and costs several times more per token.
Cutting the cost
Trim repeated instructions, send only the context the task needs, cap the answer length, and use a smaller model for simple tasks. Provider batch APIs and prompt caching cut costs further.
How the calculator works
Real tokenizers, in your browser
OpenAI models are counted with their own tokenizers (o200k_base for current models, cl100k_base for older ones). Claude, Gemini and DeepSeek don’t publish theirs, so their counts are a close estimate from the same text.
Cost per call and per month
Cost per call is input tokens times the input price plus expected output tokens times the output price. The monthly figure multiplies that by your calls. Models with a higher long-context price list it in the table below.
Count the whole input
In a real app every call also sends the system prompt, examples, documents and earlier messages. Paste the full input for an accurate figure.
Private by design
Counting happens entirely in your browser. Your text is never uploaded, so it’s safe to paste internal drafts.
Token and cost FAQ
What is a token?
Models read text in small pieces called tokens. In English one token is about four characters, or three quarters of a word, so 100 words is roughly 130 tokens. Code, numbers and other languages often use more.
Are the token counts exact?
For OpenAI models, yes: we use OpenAI's own tokenizer (o200k), running in your browser. Anthropic, Google and DeepSeek don't publish a browser tokenizer, so their counts are estimates scaled from the same text and are marked with ≈.
Where do the prices come from?
Each provider's public API pricing page, standard tier, without batch discounts or cached input. The date we last checked is shown under the table. Long-context surcharges and announced price changes are applied automatically.
Why does output cost more than input?
Writing each output token takes a full pass through the model, while input is processed in parallel, so providers charge several times more per output token.
Is my text uploaded?
No. Counting and pricing both run in your browser.
Shorter prompts, same results
PromptPal helps you write tighter prompts, keep the versions that work, and reuse them across every AI tool.
Try PromptPal free