LLM Tools
LLM Cost Calculator
Estimate API costs for LLM requests across providers and models.
Total cost
$6.25
Input cost
$1.25
Output cost
$5
Cost / request
$0.0063
Cost / 1K requests
$6.25
Cost / 1M requests
$6,250
Pricing shown is example/demo data for illustration and may not reflect current provider rates. Always verify against the provider's official pricing page before making decisions. Model context window: 128,000 tokens. Pricing last reviewed 2024-06-01.
How it works
LLM providers typically charge per million tokens, with separate rates for input (prompt) and output (completion) tokens. Total cost scales linearly with request volume.
Formula
input cost = (input tokens × requests / 1,000,000) × input price
output cost = (output tokens × requests / 1,000,000) × output price
total cost = input cost + output costFrequently asked questions
Is the pricing on this page current?
No — it's clearly marked example/demo pricing for illustration. LLM pricing changes often; always check the provider's official pricing page before making a decision.
Why are input and output tokens priced differently?
Most providers charge more for output tokens than input tokens, since generation is more computationally expensive than reading a prompt.
How do I estimate tokens per request?
Use the Token Calculator to estimate tokens from example prompts and responses, then plug those numbers in here.