LLM API Cost Calculator
LLM API cost calculator
LLM cost = (input tokens × input price) + (output tokens × output price), with prices quoted per million tokens. Output usually costs several times more than input, so long replies dominate the bill. Enter tokens and prices below to see the cost per request and the projected monthly total.
Frequently asked questions
How is LLM API cost calculated?
Why is output more expensive?
How do I estimate monthly cost?
Estimates only. Enter the current published rates for your provider and model — prices change often and vary by tier, caching, and region. Check the provider's pricing page for exact figures.