AI

AI API Token & Cost Calculator

Estimate prompt token counts and compare monthly LLM API costs side by side

Characters
0
Est. Tokens
0
Lowest Monthly Cost
$0.00
Model (Editable Rates) In $/1M Out $/1M Per Req Daily Monthly (30d)
All inputs and files stay inside your browser and are never uploaded to a server.

How to Use

  1. Paste a sample prompt to auto-estimate input tokens, or enter your input/output token averages manually.
  2. Adjust daily request volume and cached-input percentage.
  3. Edit any per-1M-token price in the comparison table to match custom enterprise or new model rates.

Frequently Asked Questions

How accurate is the browser token estimator?

It uses script-aware heuristics (~4 chars/token for Latin text and ~1.6 chars/token for CJK characters) which stays close to modern BPE tokenizers without downloading large vocab files.

What does cache hit rate do?

It splits input tokens into cached (discounted rate) and uncached portions, showing realistic savings for repetitive system prompts.

Can I customize model prices?

Yes, every model row has editable input and output $/1M token fields.