AI Token and Pricing Calculator
Estimate token counts and compare hosted API costs for open-weight models.
Compare API costs
Enter text or token counts to compare costs.
| Model and provider | Input / 1M tokens | Output / 1M tokens | Total (USD) |
|---|---|---|---|
GPT-OSS 20BGroq openai/gpt-oss-20b | $0.075 | $0.30 | — |
GPT-OSS 120BGroq openai/gpt-oss-120b | $0.15 | $0.60 | — |
Qwen3.5 9BTogether AI Qwen/Qwen3.5-9B | $0.17 | $0.25 | — |
GPT-OSS 120BTogether AI openai/gpt-oss-120b | $0.15 | $0.60 | — |
DeepSeek V4.1 FlashDeepSeek deepseek-flash | $0.30 | $1.20 | — |
DeepSeek V4 ProDeepSeek deepseek-v4-pro | $1.32 | $3.96 | — |
USD rates checked . Totals use uncached text rates and exclude fees and discounts.
Chat completion APIs
- Groq
POST https://api.groq.com/openai/v1/chat/completions- Together AI
POST https://api.together.ai/v1/chat/completions- DeepSeek
POST https://api.deepseek.com/chat/completions
How to use it
Paste text for a rough token estimate or enter exact counts from API usage. Set the request count to compare the total cost for each provider and model.
How API costs are calculated
Multiply the input and output token counts by their respective rates per million tokens. Add those costs and multiply by the request count. For requests of different sizes, use the total input and output counts with Requests set to 1.
Frequently asked questions
What do I need to use AI Token and Pricing Calculator?
Start with Enter prompt and response text or exact token counts, Set the number of requests. Use the units and formats shown beside the inputs.
Do I need to create an account?
No. You can browse and use TinyToolbox’s available tools without an account.