AI Token and Pricing Calculator

Estimate token counts and compare hosted API costs for open-weight models.

Input0 tokens
Output0 tokens

Text estimates use about four UTF-8 bytes per token. For exact billing, use the API’s usage counts, including any billed reasoning tokens.

Compare API costs

Enter text or token counts to compare costs.

Model and providerInput / 1M tokensOutput / 1M tokensTotal (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.

Enter prompt and response text or exact token countsSet the number of requests

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.

Related tools