Estimate what your AI app will cost: enter input/output tokens and requests to see per-call and monthly spend. Prices are editable to match any model. ✓ Editable rates
LLM API spend
Large language models charge by the token (~¾ of a word), with separate prices for input (your prompt) and output (the model's reply) — usually quoted per million tokens. Output is typically 3–5× more expensive than input, so long replies dominate cost. The formula: cost = (input tokens ÷ 1M × input price) + (output tokens ÷ 1M × output price), times your request volume.
Because prices change often and vary by provider, this calculator keeps the rates editable — drop in the exact numbers from your provider's pricing page. To cut spend: trim prompts, cap output length, cache repeated context, and use a smaller model for simple tasks. Estimate only.