FRIENDLY CALCULATOR · TECHNOLOGY, COMPUTING & AI

AI Inference Cost Calculator

Estimate API inference cost from input tokens, output tokens, request volume and per-million-token prices.

Enter your values

Formula and method

Total cost = requests × [(input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price)]. Prices are user-entered estimates and may not include taxes or provider-specific charges.

Worked example

At 10,000 requests with 1,000 input tokens, 300 output tokens, $1/M input and $3/M output, the estimated total is $19.

Important assumptions

This calculator provides a transparent estimate from the values you enter. Real systems can differ because of hardware, network conditions, provider pricing, software behavior, measurement definitions and operating limits. Check units and assumptions before using a result in production.

Values are processed in this browser. Do not enter passwords, API keys, private IP inventories or confidential business information.

Browse all calculators · Methodology · Disclaimer