AI API Cost Calculator
AI APIs usually charge separately for input and output tokens. Enter the prices from your provider.
The prices filled in are examples, not any provider's price list.
The math
Cost = requests × (input tokens × input price + output tokens × output price) ÷ 1,000,000
With the example: 10,000 × (800 × $1 + 300 × $5) ÷ 1,000,000 = $23.00.
Ways to lower the bill
- Shorten instructions you repeat on every request.
- Limit the length of the answer.
- Use a smaller model for simple tasks and test the quality.