Free value calculator

Model API token cost calculator

Estimate model API cost from input tokens, output tokens, and separate per-million-token rates.

Freshness: verified

Free browser calculator — inputs stay on this page.

Reviewed Grok 4.6 API rates used for the default scenario: Grok 4.6 · Input $2.00 / Output $6.00 · 2026-08-24

Scenario inputs

The scenario is encoded only in the link fragment and is not sent to the server.

Immediate result

Input cost
US$2.00
Output cost
US$1.50
Total API cost
US$3.50
Output share of cost
42.86%

Formula and assumptions

Input cost = input tokens ÷ 1,000,000 × input rate; output cost = output tokens ÷ 1,000,000 × output rate; total cost = input cost + output cost.

Assumptions

  • Default rates come from the reviewed Grok 4.6 API model record.
  • Edited rates and token volumes are local scenario inputs; retries and application overhead are excluded.

Sensitivity check

Compare the default output volume with one million output tokens.

Total API cost

Default scenario
US$3.50
Alternative scenario
US$8.00

Privacy / analytics