AI API Cost Calculator

Choose a model and enter the expected usage. The calculator will show the total cost and the cost per request.

Input: $1 / 1M tokens · Output: $5 / 1M tokens

Input tokens are the text you send to the model. Output tokens are its response.

Estimated cost

$35.00

Number of requests
10,000
Total input tokens
10,000,000
Total output tokens
5,000,000
Input cost
$10.00
Response cost
$25.00
Total cost
$35.00
Cost per request
$0.0035

At a different usage level

1,000 requests
$3.50
10,000 requests
$35.00
100,000 requests
$350.00
1,000,000 requests
$3,500.00

How the calculation works

The calculator multiplies the tokens in one request by the number of requests, then applies the model rate per 1 million tokens. Input and output are calculated separately.

With reasoning models, some billable tokens may not appear in the response because the model uses them for internal computation. Leave some room for them in your estimate.

The estimate uses standard API rates. Caching and batch discounts, regional pricing, and paid tools are not included.

Example

For 1,000 requests with 1,000 input and 500 output tokens, Anthropic — Claude Haiku 4.5 costs approximately $3.50.

Pricing data

Prices checked:

This is an early estimate. Check the provider’s website before launch because prices can change.

Need to estimate more than the API cost?

A real project also includes servers, data storage, monitoring, and development. I can help put together a more complete estimate.