AI Calculator Pro

Grok (xAI) API Cost Calculator

Estimate xAI Grok 4.5 and Grok 4.3 API costs.

Quick answer

With the default inputs, $0.00250 per request — ~$75.00/month at 1,000 requests/day. Enter your own numbers below to recompute instantly; the full step-by-step math is shown under the worked example.

Results update automatically as you type.

Result
$0.00250 per request
~$75.00/month at 1,000 requests/day
Input cost
$0.00125
Output cost
$0.00125
Per request
$0.00250
Per day
$2.50
Per month
$75.00

Estimate the cost of xAI's Grok API. Grok 4.5 is the flagship; Grok 4.3 is the current default text model with a 1M-token context window and cheaper cached input. Enter your tokens and volume to see per-request and monthly cost.

How this is calculated

Cost per request = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price) for your chosen Grok model, with cached input billed at a lower rate. Grok 4.3 is $1.25/$2.50 per 1M (cached input $0.20); Grok 4.5 is $2.00/$6.00 per 1M. Monthly cost scales by requests per day × 30.

Is this a good result? What to do next

Grok 4.3 is the current default for chat, coding and agentic tool use with a 1M-token context — good value for most work. Grok 4.5 roughly triples the output rate, so save it for the hardest reasoning and coding tasks.

Typical planning ranges

Grok 4.3
$1.25 / $2.50 per 1M (cache $0.20)
Grok 4.5
$2.00 / $6.00 per 1M
Context window
up to 1M tokens (4.3)

Ranges are typical planning figures to sanity-check your result, not authoritative benchmarks. Your numbers will vary with use case, volume, and vendor.

How to improve this number

  • Use Grok 4.3 for most traffic; escalate to 4.5 only when needed.
  • Cache stable input to use the $0.20 cached rate.
  • Cap output — 4.5's output side is the expensive one.

Common mistakes

  • Defaulting to Grok 4.5 for tasks 4.3 handles.
  • Ignoring the cached-input discount on repeated context.

When to use a different approach

To rank Grok against other providers, use the model cost comparison. To compare directly with GPT, use the GPT vs Claude style two-model comparison.

Worked example (defaults)

With the default inputs above, here is the result:

Result
$0.00250 per request
~$75.00/month at 1,000 requests/day
Input cost
$0.00125
Output cost
$0.00125
Per request
$0.00250
Per day
$2.50
Per month
$75.00
  • input: 1,000 / 1e6 x $1.25/M = $0.00125
  • output: 500 / 1e6 x $2.5/M = $0.00125
  • monthly = $0.00250 x 1,000 x 30 days

Sources & references

Frequently asked questions

How much does Grok cost?+

Grok 4.3 is $1.25 per 1M input tokens and $2.50 per 1M output tokens (cached input $0.20). Grok 4.5 is $2.00 input and $6.00 output per 1M tokens.

Which Grok model should I use?+

Grok 4.3 is the current default for chat, coding and agentic tool use with a 1M context. Grok 4.5 is the flagship for the hardest reasoning and coding tasks.

Related calculators

Answering a real question?

This calculator powers these problem-solving guides: