Provider cost planner

xAI API Cost Calculator

xAI Grok API models for chat, reasoning, and AI product cost estimates.

Estimate monthly AI API costs for xAI models.

Calculator

Estimate xAI API cost

xAI is preselected with grok-4.3 as the starting model.

Model selection

Choose the provider and model you want to estimate.

xAIgrok-4.3

Input price

$1.25 / 1M tokens

Output price

$2.50 / 1M tokens

Last updated: 2026-07-09View pricing source

Usage assumptions

Estimate traffic and token usage for an average request.

Estimated results

Run the calculator to see usage volume and projected cost.

Add your usage assumptions, then calculate to preview estimated AI API spend.

Pricing summary

xAI model pricing overview

These cards summarize the provider data currently used by the calculator.

Models tracked

5

Cheapest input

$1.25 / 1M tokens

Cheapest output

$2.50 / 1M tokens

Cached input pricing

Not listed

Context window range

Not listed

Last updated

2026-07-09

Model pricing

xAI models

Compare provider models with the same pricing unit before opening a model-specific calculator.

Swipe sideways to see all columns.

ModelInput priceOutput priceCached inputContext windowCapabilitiesAction

grok-4.3

grok 4.3

$1.25 / 1M tokens$2.50 / 1M tokensNot availableNot listedtextOpen model

grok-4.20-0309-reasoning

grok 4.20

$1.25 / 1M tokens$2.50 / 1M tokensNot availableNot listedtextOpen model

grok-4.20-0309-non-reasoning

grok 4.20

$1.25 / 1M tokens$2.50 / 1M tokensNot availableNot listedtextOpen model

grok-4.20-multi-agent-0309

grok 4.20

$1.25 / 1M tokens$2.50 / 1M tokensNot availableNot listedtextOpen model

grok-4.5

grok 4.5

$2.00 / 1M tokens$6.00 / 1M tokensNot availableNot listedtextOpen model

Related models

Open a xAI model page

Each model page keeps the calculator preselected to that provider and model.

grok 4.3

grok-4.3

Input $1.25 / 1M tokens, output $2.50 / 1M tokens. Capabilities: text.

Open model calculator
grok 4.20

grok-4.20-0309-reasoning

Input $1.25 / 1M tokens, output $2.50 / 1M tokens. Capabilities: text.

Open model calculator
grok 4.20

grok-4.20-0309-non-reasoning

Input $1.25 / 1M tokens, output $2.50 / 1M tokens. Capabilities: text.

Open model calculator
grok 4.20

grok-4.20-multi-agent-0309

Input $1.25 / 1M tokens, output $2.50 / 1M tokens. Capabilities: text.

Open model calculator
grok 4.5

grok-4.5

Input $2.00 / 1M tokens, output $6.00 / 1M tokens. Capabilities: text.

Open model calculator

Related providers

Compare with other providers

Open another provider page to run the same calculator assumptions against different model options.

Next steps

Related calculators and comparisons

Continue from this provider into focused calculators or comparison pages that match common evaluation paths.

FAQ

xAI cost planning questions

Short answers for using this provider calculator.

How is xAI API cost calculated?

The calculator multiplies input, output, and cached input tokens by the selected model pricing, then scales the result by request volume.

Which xAI model should I choose?

Start with the model that matches your context, output, and capability needs, then compare monthly cost with the same usage assumptions.

Does this estimate include cached input pricing?

Cached input pricing is not listed for the current provider models in this data set.

How accurate are these estimates?

They are planning estimates based on current local pricing data and your inputs. Check the provider source before making budget decisions.

Can I compare xAI with other providers?

Yes. Use the providers page or related provider links to run the same scenario against other provider models.