Skip to main content

Provider pricing hub

xAI API Pricing and Models

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

Pricing summary

xAI pricing at a glance

These facts are derived from the canonical provider models currently available to CostRivo.

Models tracked

5

Cached-price models

0

Context window range

500,000 - 1,000,000 tokens

Latest verification

Jul 13, 2026

Model pricing

xAI models

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

Swipe sideways to see all columns.

Canonical model pricing and verified model facts for this provider
ModelInput priceOutput priceCached inputContext windowCapabilitiesVerificationAction

Grok 4.3

Grok 4

$1.25 / 1M tokens$2.50 / 1M tokensNot available1,000,000 tokenstext, vision, reasoning
xAIgrok-4.3Stable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Open model

Grok 4.20

Grok 4

$1.25 / 1M tokens$2.50 / 1M tokensNot available1,000,000 tokenstext, vision
xAIgrok-4.20-0309-reasoningStable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Open model

Grok 4.20 (Non-Reasoning)

Grok 4

$1.25 / 1M tokens$2.50 / 1M tokensNot available1,000,000 tokenstext, vision
xAIgrok-4.20-0309-non-reasoningStable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Open model

Grok 4.5

Grok 4

$2.00 / 1M tokens$6.00 / 1M tokensNot available500,000 tokenstext, vision
xAIgrok-4.5Stable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Open model

Grok 4.20 Multi-Agent Beta

Grok 4

$1.25 / 1M tokens$2.50 / 1M tokensNot available1,000,000 tokenstext, vision, reasoning
xAIgrok-4.20-multi-agent-0309Stable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Open model

Price-derived model highlights

Each criterion is calculated independently from eligible, verified xAI token pricing. The same model may lead more than one criterion.

Lowest input price

Grok 4.3

$1.25 / 1M

Lowest listed cost for 1M input tokens.

View model pricing

Lowest output price

Grok 4.3

$2.50 / 1M

Lowest listed cost for 1M output tokens.

View model pricing

Lowest combined token price

Grok 4.3

$3.75 total

Cost of 1M input tokens plus 1M output tokens.

View model pricing

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

xAIgrok-4.3Stable
Official source

Verified Jul 13, 2026. Estimates vary by usage and provider pricing conditions.

Usage assumptions

Estimate traffic and token usage for an average request.
Active seats, customers, or internal users.
Average AI calls per user each day.
Prompt, history, and retrieved context per request.
Generated answer length; SaaS founders should test long replies.
Use 30 for always-on products or fewer for batch jobs.

Estimated results

Run the calculator to see projected cost and usage volume.

Enter your usage details, then select Calculate estimate to see your projected cost.

Estimated cost = input usage cost + output usage cost + supported optional charges.

Model catalog

xAI model catalog

Calculator actions appear only for exact model IDs with compatible verified token pricing.

5 currentReviewed Jul 15, 2026Official catalog source

5 of 5 models

Filters

Reasoning

2

Grok 4.20

grok-4.20-0309-reasoning

Grok 4

ReasoningStableAPI available

Pinned Grok 4.20 reasoning model for difficult coding and tool-using workloads.

Context
1,000,000 tokens
Input
Text, Image
Output
Text
License
Proprietary
Reasoning modes
Low, Medium, High
Regions
Us-East-1, Us-West-2

Capabilities

Advanced ReasoningCodingVisionFunction CallingStructured OutputsWeb Search

Endpoints

ResponsesChat Completions

Deployment

Xai Api

Verified token pricing

$1.25 input / $2.5 output per 1M tokens

Use calculator
Official sourceVerified Jul 14, 2026

Grok 4.5

grok-4.5

Grok 4

ReasoningStableAPI available

xAI flagship model for code, agentic tool calling, configurable reasoning, and general work.

Context
500,000 tokens
Input
Text, Image
Output
Text
Knowledge cutoff
2026-02-01
License
Proprietary
Reasoning modes
None, Low, Medium, High
Regions
Us-East-1, Us-West-2

Capabilities

Advanced ReasoningCodingAgentic Tool UseVisionFunction CallingStructured Outputs

Endpoints

ResponsesChat Completions

Deployment

Xai Api

Verified token pricing

$2 input / $6 output per 1M tokens

Use calculator
Official sourceVerified Jul 14, 2026

Generative

2

Grok 4.3

grok-4.3

Grok 4

GenerativeStableAPI available

General Grok model with image input, tools, structured output, and configurable reasoning.

Context
1,000,000 tokens
Input
Text, Image
Output
Text
License
Proprietary
Reasoning modes
None, Low, Medium, High
Regions
Us-East-1

Capabilities

ReasoningCodingVisionFunction CallingStructured OutputsWeb Search

Endpoints

ResponsesChat Completions

Deployment

Xai Api

Verified token pricing

$1.25 input / $2.5 output per 1M tokens

Use calculator
Official sourceVerified Jul 14, 2026

Grok 4.20 (Non-Reasoning)

grok-4.20-0309-non-reasoning

Grok 4

GenerativeStableAPI available

Pinned non-reasoning Grok 4.20 variant for lower-latency generation and tool use.

Context
1,000,000 tokens
Input
Text, Image
Output
Text
License
Proprietary
Reasoning modes
Disabled
Regions
Us-East-1, Us-West-2

Capabilities

CodingVisionFunction CallingStructured OutputsWeb SearchX Search

Endpoints

ResponsesChat Completions

Deployment

Xai Api

Verified token pricing

$1.25 input / $2.5 output per 1M tokens

Use calculator
Official sourceVerified Jul 14, 2026

Agents

1

Grok 4.20 Multi-Agent Beta

grok-4.20-multi-agent-0309

Grok 4

AgentsPreviewLimited availability

Beta multi-agent Grok model for parallel research, tool use, and complex multi-step workflows.

Context
1,000,000 tokens
Input
Text, Image
Output
Text
License
Proprietary
Reasoning modes
Configurable

Capabilities

Multi AgentDeep ResearchReasoningCodingVisionFunction Calling

Endpoints

Responses

Deployment

Xai Api

Verified token pricing

$1.25 input / $2.5 output per 1M tokens

Use calculator
Official sourceVerified Jul 14, 2026

Pricing sources

Pricing source and update notes

CostRivo shows official source references and verification metadata where available. Review provider pricing pages before making high-volume purchasing decisions.

Official provider pricing

Open xAI pricing references for current provider terms, tiers, and availability notes.

Open source

Pricing table

Review CostRivo's cross-provider pricing table, verification dates, source links, and lifecycle labels.

Open source

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 models have the lowest tracked token prices?

Lowest input price: Grok 4.3 at $1.25 per 1M tokens; Lowest output price: Grok 4.3 at $2.50 per 1M tokens; Lowest combined token price: Grok 4.3 at $3.75 for 1M input plus 1M output tokens. Each criterion is calculated independently from eligible verified token prices.

Does this estimate include cached input pricing?

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

When was xAI pricing last verified?

The most recent model verification shown by CostRivo is Jul 13, 2026. Individual model rows retain their own source and verification details.

Pricing updates

Get pricing updates

Get notified when AI model prices change, new providers are added, product updates ship, launch notes go out, or Costrivo introduces future premium planning features.

No spam. Pricing and product updates only. We only store your email, this page, and signup time.

Optional and separate from calculator inputs.