AI API Cost Calculator

Estimate AI API cost from tokens, requests, model pricing, traffic, caching, and usage scenarios.

Monthly API cost

$604.22

30 active days

Daily API cost

$20.14

Input plus output token cost

Cost per request

$0.00081

Average blended request cost

Monthly tokens

840M

Input and output combined

Token pricing inputs

Enter editable pricing per 1M tokens and usage assumptions.

Daily input cost

$9.14

18.3M billable input tokens

Daily output cost

$11.00

5.5M output tokens

Raw input tokens

22.5M

Before cache discount

Annual run rate

$7,250.63

Monthly estimate multiplied by 12

Related calculators

Token-based pricing

AI API cost is usually driven by input tokens, output tokens, and model-specific prices per million tokens. Use the presets as starting points, then enter the rates from your provider contract or dashboard.

Caching assumptions

Cached input can reduce billable input cost when a provider discounts repeated context. Set the cached share and discount to zero if your workload does not use prompt caching.