LLM pricing calculator

AI Token Cost Calculator

Estimate the cost of an AI model request or workload using separate input and output token prices.

✦

Token usage

Updates instantly

=Tokens ÷ 1,000,000 × token price

Estimated cost

$0.90Custom AI model
Input cost$0.50
Output cost$0.40
Total tokens600,000
Average per 1M$1.50

Transparent token pricing

How to calculate AI token costs

01

Enter token usage

Add the input tokens sent to the model and output tokens generated in the response.

02

Add model prices

Enter the provider’s current input and output prices per million tokens.

03

Review the breakdown

Compare input cost, output cost, total tokens, and the combined estimate.

Know what you are pricing

What affects AI model cost

✓

Input tokens

Prompts, instructions, context, retrieved documents, and conversation history usually count as input.

✓

Output tokens

Generated responses are billed separately and often use a different price.

✓

Provider-specific extras

Cached input, batch discounts, tools, images, audio, storage, and fine-tuning may use separate rates.

Common questions

AI token cost calculator FAQ

All calculators →
How is AI token cost calculated?

Input tokens and output tokens are priced separately per million tokens, then the two costs are added.

Why are input and output prices different?

Providers commonly charge different rates for processing context and generating new tokens.

Does this calculator use live model prices?

No. Enter the current rates from your provider so the estimate stays accurate as pricing changes.

What counts as an input token?

System instructions, prompts, conversation history, and supplied context can all count toward input usage.