Quick Answer
Last verified:
Medium confidence

xAI Grok API costs $1.25 to $2.50 per per million tokens as of July 2026, with 2 plans available. Pricing depends on your chosen tier, contract length, and negotiated discounts.

Use the interactive pricing calculator to estimate your exact cost based on team size and requirements.

  • Free tier: No free tier available

xAI Grok API offers 2 pricing tiers: Pay-as-you-go (Grok 4.3), Enterprise. The Enterprise plan is high-volume deployments and regulated workloads.

xAI Grok API lists $1.25-$2.5/per million tokens, but hidden costs like implementation and support add to the total as of July 2026. Key hidden costs: tool invocation fees, blocked request fees, extended context premium. Verified from 1 sources by CostBench.

Hidden Costs Breakdown

1

Tool Invocation Fees

high addon

Utilizing Grok's built-in tools incurs additional charges, such as $5.00 per 1,000 calls for Web Search, X Search, and Code Execution, $10.00 per 1,000 calls for File Attachments search, and $2.50 per 1,000 calls for Collections Search, all in addition to token costs.

industry

These fees are in addition to the token costs for the model's processing.

2

Blocked Request Fees

medium overage

xAI charges a $0.05 fee for each request that violates usage guidelines and is blocked before generation, while requests flagged after generation are still billed for generated tokens.

industry

Requests flagged after generation are still billed for the tokens generated.

3

Extended Context Premium

medium overage

Using extended contexts (128K-2M tokens) may incur a 25% premium on certain tiers.

industry

Extended Context Premium: While Grok models offer large context windows (up to 2 million tokens for some models), using extended contexts (128K-2M tokens) may incur a 25% premium on certain tiers.

4

Priority Processing Premium

high addon

Priority processing for text requests, available for lower latency, is offered at a 2x premium over standard rates for all token types.

industry

Priority Processing: For lower latency, priority processing for text requests is available at a 2x premium over standard rates for all token types.

Frequently Asked Questions

01 What hidden costs should I budget for with xAI Grok API?

Beyond the license fee, budget for: Blocked Request Fees ($0.05); Extended Context Premium (25%); Priority Processing Premium (2x). Exact totals depend on your deployment size and negotiated terms.

02 Does xAI Grok API charge for implementation?

Implementation costs for xAI Grok API vary by deployment size and customization. Contact the vendor or check our sourced hidden-cost breakdown above for verified figures.

03 How much does xAI Grok API support cost?

Premium support pricing for xAI Grok API depends on your tier and contract terms. See the sourced cost breakdown above for any verified figures we have.

04 Are there overage or storage costs with xAI Grok API?

xAI charges a $0.05 fee for each request that violates usage guidelines and is blocked before generation, while requests flagged after generation are still billed for generated tokens. Estimated impact: $0.05.

05 What add-ons cost extra with xAI Grok API?

Add-on pricing for xAI Grok API varies by feature. The sourced cost breakdown above lists any verified add-on costs we have.

Check current xAI Grok API pricing

Prices and terms change; verify against the live pricing page.

See xAI Grok API Pricing