# LLM cost calculator

Source: https://aiopssre.com/llm-cost-calculator/

## Method

Billable calls = monthly tasks × base calls per task × (1 + extra-call percentage). Input cost splits tokens between ordinary and cached rates, then adds output cost. All prices must use the same currency and per-million-token unit. Per-task cost includes the allocated fixed monthly amount.

## Worksheet

- Model and rate source: ____________________
- Price currency (three-letter code): ____________________
- User tasks per month: ____________________
- Base model calls per task: ____________________
- Extra calls from retries (%): ____________________
- Input tokens per call: ____________________
- Billable output tokens per call: ____________________
- Input tokens billed at cached rate (%): ____________________
- Input price per million tokens: ____________________
- Cached input price per million tokens: ____________________
- Output price per million tokens: ____________________
- Other fixed monthly costs: ____________________

## Result and uncertainties

- Result: ____________________
- Missing observations or assumptions: ____________________
