Own Weights

LLM cost calculator: monthly AI API cost

Free LLM API cost calculator. Enter tokens per call and calls per day to see cost per call, per month and per year, and what a trained model would cost.

Per call

–

Per month

–

Per year

–

A model trained for this task, per month

–

What does a typical workload cost per month?

4,000 input and 500 output tokens per call, 10,000 calls a day, 30-day month, list price
ModelInput, $ per 1MOutput, $ per 1MPer month
Claude Opus$4$20$7,800
Claude Sonnet$2$10$3,900
Claude Haiku$0.1$0.5$195
A model trained for this task$0.31, input and output$419

How is LLM API cost calculated?

Cost per call is input tokens times the input price plus output tokens times the output price, each divided by one million. A month is 30 days. Claude prices are Anthropic’s list prices; for other providers, enter the prices from their current pricing page.

The trained-model line uses our price of $0.31 per million tokens, counted on the same text, for a model trained for one task. On our public extraction exam that model scored higher than Claude Opus and Claude Haiku. It is an estimate until we test on your data.

How do you lower your LLM API cost?

Cache long repeated prompts, cap output length, move work that can wait to the batch API, and stop sending routine tasks to the biggest model. Read how to cut your LLM API bill, what prompt caching saves and cost per million tokens, explained. If only the biggest model is accurate enough for your task, read fine-tune your own model or keep paying for the API.

Questions

How do I find my tokens per call?

Your provider returns input and output token counts with every response, and its usage dashboard shows totals. Divide total tokens by the number of calls for an average. Our free audit also finds every call in your code.

Why are output tokens more expensive?

Providers charge several times more for output than input because generating text is slower than reading it. Reasoning or thinking tokens are billed as output.

Is the trained-model figure exact?

No. It applies our price per million tokens to your token counts, which overstates it slightly because our tokenizer counts fewer tokens for the same text. A real figure comes from testing on your own data.