AIForum.

THE COMMUNITY TOOLBOX

AI API Cost Calculator

Plan your AI spend

Estimate your API costs

Turn tokens and request volume into a clear cost estimate. Choose a reference model or enter your own prices.

USD · Per 1 million tokens
Choose a model

All prices are editable. Changing models restores that model’s reference prices.

Your workload

Per request. Include instructions, history, retrieved context, and cache hits.

Per request. Include billable reasoning or thinking tokens.

Count every model call, including additional workflow steps and retries.

Use 30 for every day, or your expected active days (1–31).

Token prices

Optional: cached input
Cache hits

Per request. A subset of total input; use 0 if you do not expect cache hits.

Cache read / hit rate only. Cache creation and storage fees are excluded.

How the estimate works

Cost per request = ((total input − cached input) × input price + cached input × cache hit price + output × output price) ÷ 1,000,000. Monthly cost = cost per request × daily requests × active days.

Assumes the same average token counts and cache hits for each request. Use actual billable token counts, not word counts. This estimates token charges only: taxes, subscriptions, tool calls, cache creation/storage, audio/image/video billing, routing surcharges, tier changes, discounts, and free quotas are excluded. Presets are dated reference prices, not a live price feed. Verify your provider’s pricing tier and model availability before budgeting.

Calculated in your browser. No API key, sign-in, or saved input required.