Overview
AI APIs charge per token, with separate input and output prices. A small per-request cost can become a big monthly bill at scale.
Enter your tokens per request, the request volume and your provider’s prices.
Worked examples
| Inputs | Result |
|---|---|
| Input tokens per request2,000Output tokens per request500Requests per month100,000Input price ($ per million tokens)3Output price ($ per million tokens)15 | Monthly cost: $1,350.00Per request: $0.0135Input: $600.00Output: $750.00One token is roughly ¾ of an English word. |
Show 2 more examples
| Input tokens per request500Output tokens per request200Requests per month1,000,000Input price ($ per million tokens)0.5Output price ($ per million tokens)1.5 | Monthly cost: $550.00Per request: $0.00055Input: $250.00Output: $300.00One token is roughly ¾ of an English word. |
| Input tokens per request10,000Output tokens per request2,000Requests per month5,000Input price ($ per million tokens)15Output price ($ per million tokens)75 | Monthly cost: $1,500.00Per request: $0.3Input: $750.00Output: $750.00One token is roughly ¾ of an English word. |
Monthly cost by requests per month
With the calculator's starting values, the monthly cost is $1,350.00. The table shows how it changes with the requests per month.
| Requests per month | Monthly cost |
|---|---|
| 60,000 | $810.00 |
| 80,000 | $1,080.00 |
| 100,000starting value | $1,350.00 |
| 120,000 | $1,620.00 |
| 140,000 | $1,890.00 |
Other inputs: Input tokens per request: 2,000 · Output tokens per request: 500 · Input price: $3 · Output price: $15. Change them in the calculator above for your own numbers.
How it works
Cost per request = (input tokens × input price + output tokens × output price) ÷ 1,000,000.
The formula
| $in, $out | Price per million input and output tokens |
Practical tips
- 2,000 input and 500 output tokens at $3 and $15 per million cost $0.0135 per request, or $1,350 for 100,000 requests.
- Output tokens usually cost several times more than input tokens.
- Prompt caching and batch discounts can cut costs substantially; check your provider.
Frequently asked questions
How many tokens is a word?
Roughly 1.3 tokens per English word.
Are prices fixed?
No, they change often, so enter current figures.