Qalculators

Technology & Developer

AI Token Cost Calculator (GPT, Claude, Gemini)

Estimate API cost from input/output tokens and model. Compare GPT-4, Claude, Gemini pricing. Free.

Parameters

Enter the required details below

$
$

Ready to Calculate

Enter your parameters and click calculate to see the results here.

How to Use

  1. Enter Input Tokens.
  2. Enter Output Tokens.
  3. Choose AI Model.
  4. Click Calculate to see Input Cost, Output Cost, Total Cost and Total Tokens.
  5. Check the result. Use Reset if you want to try different numbers.

About This Calculator

Token cost is (input tokens × input price + output tokens × output price) per million tokens. Pick a listed model or enter custom $/1M rates. Prices change; treat the result as an estimate.

Frequently asked questions

How do you calculate AI token cost?+

Multiply tokens by the vendor’s price per 1M input and output tokens, then add. Output is often more expensive than input.

Is AI Token Cost Calculator free to use?+

Yes. AI Token Cost Calculator is free and does not require an account. The calculation runs in your browser.

Related Calculators

Related Topics

ai token cost calculatorgpt-4 token costllm api pricingaiartificial intelligencetoken costopenaianthropicgpt-4claudeapi pricingllm costmachine learning