paste text, get tokens. uses cl100k tokenizer (tiktoken). runs locally. see pricing.
| model | input | out | your $in | your $out |
|---|---|---|---|---|
| gpt-5.2 | $1.75 | $14 | - | - |
| gpt-5.2-pro | $21 | $168 | - | - |
| gpt-5 | $1.25 | $10 | - | - |
| gpt-5-mini | $0.25 | $2 | - | - |
| gpt-5-nano | $0.05 | $0.4 | - | - |
| gpt-4.1 | $2 | $8 | - | - |
| gpt-4.1-mini | $0.4 | $1.6 | - | - |
| o1 | $15 | $60 | - | - |
| claude-4.5-opus | $5 | $25 | - | - |
| claude-4.5-sonnet | $3 | $15 | - | - |
| claude-4.5-haiku | $1 | $5 | - | - |
| claude-4-opus | $15 | $75 | - | - |
| claude-4-sonnet | $3 | $15 | - | - |
| gemini-3-pro | $2* | $12* | - | - |
| gemini-3-flash | $0.5 | $3 | - | - |
| gemini-2.5-pro | $1.25* | $10* | - | - |
| gemini-2.5-flash | $0.3 | $2.5 | - | - |
| deepseek-3.2 | $0.028* | $0.42 | - | - |
| llama-3.1-405B | $1 | $1.8 | - | - |
| llama-3.3-70B | $0.1 | $0.4 | - | - |
| grok-4-1-fast-reasoning | $0.2 | $0.5 | - | - |
| grok-4-1-fast-non-reasoning | $0.2 | $0.5 | - | - |
| grok-3 | $3 | $15 | - | - |
* Some providers use tiered, cached, or TTL-based pricing (e.g. Gemini input price changes above 200k tokens per request; Claude charges separately for cache writes vs cache hits). Actual costs may vary depending on request size, cache usage, and model configuration. Check the URLs.