All xAI Grok API Plans & Pricing

Plan Monthly Annual Best For
View all features by plan (compare side-by-side)

Pay-as-you-go (Grok 4.7)

  • Grok 4.7: $2.00 input / $0.50 cached / $6.00 output per 1M tokens (500K context); $4 / $1 / $12 at 200K+ tokens
  • Grok 4.6: $2.00 / $0.50 / $6.00; Grok 4.5: $2.00 / $0.30 / $6.00
  • Grok 4.3 and Grok 4.20 family: $1.25 / $0.20 / $2.50 (1M context); $2.50 / $0.40 / $5.00 at 200K+ tokens
  • Grok Build 0.1: $1.00 input / $2.00 output
  • Web Search: $5 per 1,000 calls

Enterprise

  • Custom rate limits
  • Dedicated support
  • SLAs
  • Volume discounts
Pricing Alerts

Track xAI Grok API pricing

Get an email when xAI Grok API's pricing changes — plus the weekly SaaS Price Watch: verified price changes and deals across 3,000+ products. One-click unsubscribe.

Compare xAI Grok API with alternativesAdjust seats, lock a tier, add up to 2 more products side-by-side. Shareable URL.
Quick Answer
Last verified:
Medium confidence

xAI Grok API offers usage-based pricing from $0.200–$12.00 per million tokens as of October 2026 and custom pricing for larger requirements. Plan: Pay-as-you-go (Grok 4.7) (usage-based). Custom pricing is available on request. Usage cost depends on the selected model and generation volume.

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.7), Enterprise. Paid plans include Pay-as-you-go (Grok 4.7) (usage-based). The Enterprise plan is high-volume deployments and regulated workloads.

Compared to other llm api providers software, xAI Grok API is positioned at the budget-friendly price point.

  • 4 documented hidden costs beyond list price
  • Contracts auto-renew
  • G2 rating: 4.3 out of 5 from 15 reviews (as of Jul 2026)

How much does xAI Grok API cost?

xAI Grok API offers usage-based pricing from $0.200–$12.00 per million tokens, with custom pricing available for larger requirements. Plans include Pay-as-you-go (Grok 4.7) (usage-based), Enterprise (custom pricing).

xAI Grok API Pricing Overview

xAI Grok API offers usage-based pricing from $0.200–$12.00 per million tokens and custom pricing for larger requirements. The Pay-as-you-go (Grok 4.7) plan is usage-based and is designed for developers integrating grok into their applications. The Enterprise plan requires contacting sales for a custom quote and is designed for high-volume deployments and regulated workloads.

xAI Grok API contracts auto-renew, with a one year minimum commitment.

There are at least 4 documented hidden costs beyond xAI Grok API's list price, including implementation, training, and add-on fees.

This pricing was last verified in October 10, 2026 from 2 independent sources.

As of October 10, 2026, the xAI Grok API charges $2 per million input tokens and $6 per million output tokens for Grok 4.7, rising to $4 / $12 for requests of 200K tokens or more. Grok 4.3 and the Grok 4.20 family cost $1.25 / $2.50 with a 1M-token context, cached input is $0.20–$0.50 per million, and Priority processing doubles the rate. Built-in tools add fees, such as $5 per 1,000 web searches. Source: xAI model documentation, checked 2026-10-10.

How xAI Grok API Pricing Compares

Compare xAI Grok API pricing against top alternatives in LLM API Providers.

Usage-Based Rates

Per-unit pricing for xAI Grok API API usage.

Pay-as-you-go (Grok 4.7)

Model Input Output Cached Per
grok-4.7 $2.00 $6.00 $0.500 1M tokens
grok-4.7 (long context ≥200K) $4.00 $12.00 $1.00 1M tokens
grok-4.6 $2.00 $6.00 $0.500 1M tokens
grok-4.5 $2.00 $6.00 $0.300 1M tokens
grok-4.3 $1.25 $2.50 $0.200 1M tokens
grok-4.3 (long context ≥200K) $2.50 $5.00 $0.400 1M tokens
grok-build-0.1 $1.00 $2.00 $0.200 1M tokens
  • Rates verified 2026-10-10 against xAI's model documentation (https://docs.x.ai/docs/models).
  • Long-context rates apply to the whole request once it reaches 200K tokens.
  • Priority processing costs 2x.
  • Voice API ($0.05/min agent, $15/1M chars TTS, $0.10/hour STT batch, $0.20/hour STT streaming) priced separately under different units
  • Imagine API (starting at $0.02/image, $0.05/sec video) priced separately under different units

Compare xAI Grok API vs Alternatives

Before committing to xAI Grok API, compare pricing with these 3 alternatives in the same category.

All xAI Grok API alternatives & migration guides

What Companies Actually Pay for xAI Grok API

Median per-1M-token pricing across 10 models
Input $1.15/1M
Output $3.75/1M
Flagship models in this provider's catalog
Model Input /1M Output /1M Blended /1M
xAI: Grok 4 $3.00 $15.00 $9.00
xAI: Grok 3 $3.00 $15.00 $9.00
xAI: Grok 4.20 $2.00 $6.00 $4.00
xAI: Grok 4.20 Multi-Agent $2.00 $6.00 $4.00
xAI: Grok Code Fast 1 $0.200 $1.50 $0.850
Review scores
Trustpilot 1.6out of 5 (338)
G2 4.3out of 5 (15)
Third-party review aggregates, as of Jul 2026

Score gap reflects platform demographics — G2 surveys verified business users; Trustpilot is open to all, skewing toward support complaints.

Top pricing complaints
Interface and NavigationImage Generation and PerformanceData Privacy and Political BiasAccuracy and Detail
Source: OpenRouter API — medians aggregated from 10 models routed. Reflects router-surface pricing (may include modest markup vs direct provider rates).

How xAI Grok API Pricing Compares

Software Starting Price Top Price
xAI Grok API $1 per million tokens $12 per million tokens
Amazon Bedrock $0.07 per million tokens $75 per million tokens
Anyscale Free $4.9591 per million tokens
Baidu ERNIE API $0.1 per million tokens $10 per million tokens
Cerebras Inference API $0.1 per million tokens $6 per million tokens
Claude API $0.1 per million tokens $50 per million tokens

4 xAI Grok API Hidden Costs Beyond the List Price

Beyond the listed price, xAI Grok API has at least 4 documented hidden costs that can significantly increase total cost of ownership.

Watch for 4 hidden costs
  • Tool Invocation Fees
    high 1 source
    Grounded summary These fees are in addition to the token costs for the model's processing.
  • Blocked Request Fees $0.05
    medium 1 source
    Grounded summary Requests flagged after generation are still billed for the tokens generated.
  • Extended Context Premium 25%
    medium 1 source
    Grounded summary 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.
  • Priority Processing Premium 2x
    high 1 source
    Grounded summary Priority Processing: For lower latency, priority processing for text requests is available at a 2x premium over standard rates for all token types.
Tip

Ask your xAI Grok API sales rep about these costs upfront. Getting them in writing before signing can save you from surprise charges later.

Full hidden costs breakdown →

Intelligence sourced from 3 independent sources
industry Trustpilot Consumer reviews G2 B2B reviews
Key claims include inline source attribution. Data verified against multiple independent sources. 6 source citations total.

xAI Grok API Contract Terms

xAI Grok API contracts auto-renew. Changes require advance notice. These terms are sourced from verified buyer experiences.

Contract Terms
Auto-Renewal Yes
Minimum Commitment one year
Based on 1 verified source

xAI Grok API Price History

Pricing changes CostBench has tracked for xAI Grok API, verified across 3 snapshots going back to 2026Q2.

  1. xAI Grok API price increase

    Highest tier increased from $3 to $6/month

    +140%
  2. xAI Grok API tier renamed

    "Pay-as-you-go (Grok 4.3)" renamed to "Pay-as-you-go (Grok 4.6)"

  3. xAI Grok API price decrease

    Highest tier decreased from $30 to $3/month

    -91.67%
  4. xAI Grok API tier renamed

    "Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast)" renamed to "Pay-as-you-go (Grok 4.3)"

  5. xAI Grok API tier renamed

    "Pay-as-you-go (Grok 4.7)" renamed to "Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast)"

xAI Grok API Pricing FAQ

01 How does xAI Grok API pricing work?

The xAI Grok API is pay-as-you-go with no monthly commitment. As of October 10, 2026, Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens ($4/$12 for requests of 200K+ tokens), Grok 4.3 costs $1.25/$2.50, and Grok Build 0.1 costs $1/$2. Enterprise pricing is negotiated with xAI.

02 What is SuperGrok and how does it differ from the Grok API?

SuperGrok is a consumer subscription to Grok, priced at $30/month on xAI's pricing page (October 2026), with SuperGrok Plus at $100/month. The Grok API is a separate pay-per-token developer product billed through the xAI console.

03 Can I access Grok through an X Premium subscription instead of the API?

Yes. Grok is included with X subscriptions: in the US, X Premium costs $8/month and X Premium+ $40/month (X Help Center, October 2026). This is consumer access, not developer API access, which is billed separately per token.

Is this pricing incorrect? — we'll verify and update it.