Skip to content
Pricetally

xAI API prices

Per-token prices of 4 models as recorded on Nov 24, 2026 from the official pricing page ↗. Every value links to the sentence or table cell it was read from. This is a dated record, not a live price list.

Four Grok text models. The grok-4.20-0309 dated snapshots (same prices as Grok 4.3), image, video and voice models are not in this snapshot.

Some official values are not printed or not readable; they are shown as “Not published”.

Estimate a monthly bill with these models

All prices are in USD and exclude taxes such as VAT. Regional pricing may differ.

How xAI bills tokens

  • Batch API: 20% discount on every token type

    Explicit batch prices are behind a JavaScript toggle; batch prices here are derived from this discount.

    XA-029

    “"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

    XA-030

    “"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

  • Priority processing: 2x standard

    Explicit prices are not printed.

    XA-033

    “"Priority requests are billed at a 2x premium over standard rates."” Official page ↗ (Nov 24, 2026)

  • US regional endpoint: 1.1x (grok-4.7 and grok-4.6 only)

    For grok-4.7: $2.20 / $0.55 / $6.60 below 200k prompt tokens and $4.40 / $1.10 / $13.20 above (XA-007, XA-008).

    XA-034

    “"their token usage is billed at 1.1x the global token rates, a 10% premium."” Official page ↗ (Nov 24, 2026)

    XA-007

    “"For `grok-4.7` this is $2.20 / $0.55 / $6.60 per 1M tokens (input / cached input / output) below 200k prompt tokens, and $4.40 / $1.10 / $13.20 above."” Official page ↗ (Nov 24, 2026)

  • Long-context tier

    A request whose prompt reaches 200,000 tokens (200,000 included) pays the higher rate for all tokens in the request.

    XA-027

    “"Requests whose prompt reaches 200k tokens are billed at the higher rate for all tokens in the request."” Official page ↗ (Nov 24, 2026)

  • What the threshold counts

    Cached tokens count toward the prompt size, and use their own long-context rate.

    XA-028

    “"Long context pricing applies when total prompt tokens (including cached tokens) exceed the model's long context threshold. Both cached and non-cached tokens use their respective long-context rates in this case."” Official page ↗ (Nov 24, 2026)

  • No cache-write charge

    Prompt tokens that are not cached are billed at the full prompt (input) price.

    XA-031

    “Table "Pricing (prompt caching)", row "Prompt tokens (non-cached)", column "Billing rate": "Full prompt token price"” Official page ↗ (Nov 24, 2026)

  • Reasoning tokens

    Reasoning tokens are billed at the output price.

    XA-032

    “Table "Pricing (prompt caching)", row "Reasoning tokens", column "Billing rate": "Full completion token price"” Official page ↗ (Nov 24, 2026)

  • Usage guideline fee

    A request rejected before generation for a usage guideline violation costs $0.05 (Responses API).

    XA-036

    “"we will charge a $0.05 usage guideline violation fee per request."” Official page ↗ (Nov 24, 2026)

  • Web search, X search and file storage are billed separately and are not token prices.
  • Grok 4.7 Fast is not available on the public xAI API.

Grok 4.3

API id grok-4.3

Recorded in part: Explicit batch prices sit behind a JavaScript toggle and could not be read; batch prices here are derived from the stated 20% discount.

Context window
1,000,000 tokens
XA-038

“"Context window: 1,000,000 tokens"” Official page ↗ (Nov 24, 2026)

Maximum input
Not published — Not printed separately.
Maximum output
Not published — No output limit is printed on the pricing page or the model pages.
XA-041

“No output limit is printed on the pricing page or the model pages.” Official page ↗ (Nov 24, 2026)

Status
Not stated — No retirement notice lists this model (XA-042).
Free tier
Not stated — No free token allowance is stated; "Tier 0: $0" is a spend tier, not free usage (XA-035).
Cache writes
No separate charge: billed at the input price (official rule)
XA-031

“Table "Pricing (prompt caching)", row "Prompt tokens (non-cached)", column "Billing rate": "Full prompt token price"” Official page ↗ (Nov 24, 2026)

Grok 4.3 prices per 1M tokens, as recorded
TokensModeConditionUSD / 1MSource
Input
Standard
Prompt < 200,000 tokens
$1.25
XA-009

“Table "Text API Pricing", row "grok-4.3 (< 200k prompt tokens)", column "Input / 1M tokens": "$1.25"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt < 200,000 tokens
$1.00= $1.25 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt < 200,000 tokens
$0.20
XA-010

“Table "Text API Pricing", row "grok-4.3 (< 200k prompt tokens)", column "Cached input / 1M tokens": "$0.20"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt < 200,000 tokens
$0.16000000000000003= $0.20 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt < 200,000 tokens
$2.50
XA-011

“Table "Text API Pricing", row "grok-4.3 (< 200k prompt tokens)", column "Output / 1M tokens": "$2.50"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt < 200,000 tokens
$2.00= $2.50 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Input
Standard
Prompt ≥ 200,000 tokens
$2.50
XA-012

“Table "Text API Pricing", row "grok-4.3 (≥ 200k prompt tokens)", column "Input / 1M tokens": "$2.50"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt ≥ 200,000 tokens
$2.00= $2.50 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt ≥ 200,000 tokens
$0.40
XA-013

“Table "Text API Pricing", row "grok-4.3 (≥ 200k prompt tokens)", column "Cached input / 1M tokens": "$0.40"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt ≥ 200,000 tokens
$0.32000000000000006= $0.40 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt ≥ 200,000 tokens
$5.00
XA-014

“Table "Text API Pricing", row "grok-4.3 (≥ 200k prompt tokens)", column "Output / 1M tokens": "$5.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt ≥ 200,000 tokens
$4.00= $5.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

  • Prompts of 200,000 tokens or more pay the higher tier for every token in the request (XA-027).

Grok 4.5

API id grok-4.5

Recorded in part: Explicit batch prices sit behind a JavaScript toggle and could not be read; batch prices here are derived from the stated 20% discount.

Context window
500,000 tokens
XA-040

“Table "Text API Pricing", row "grok-4.5 (< 200k prompt tokens)", column "Context": "500k"” Official page ↗ (Nov 24, 2026)

Maximum input
Not published — Not printed separately.
Maximum output
Not published — No output limit is printed on the pricing page or the model pages.
XA-041

“No output limit is printed on the pricing page or the model pages.” Official page ↗ (Nov 24, 2026)

Status
Not stated — No retirement notice lists this model (XA-042).
Free tier
Not stated — No free token allowance is stated; "Tier 0: $0" is a spend tier, not free usage (XA-035).
Cache writes
No separate charge: billed at the input price (official rule)
XA-031

“Table "Pricing (prompt caching)", row "Prompt tokens (non-cached)", column "Billing rate": "Full prompt token price"” Official page ↗ (Nov 24, 2026)

Grok 4.5 prices per 1M tokens, as recorded
TokensModeConditionUSD / 1MSource
Input
Standard
Prompt < 200,000 tokens
$2.00
XA-021

“Table "Text API Pricing", row "grok-4.5 (< 200k prompt tokens)", column "Input / 1M tokens": "$2.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt < 200,000 tokens
$1.60= $2.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt < 200,000 tokens
$0.30
XA-022

“Table "Text API Pricing", row "grok-4.5 (< 200k prompt tokens)", column "Cached input / 1M tokens": "$0.30"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt < 200,000 tokens
$0.24= $0.30 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt < 200,000 tokens
$6.00
XA-023

“Table "Text API Pricing", row "grok-4.5 (< 200k prompt tokens)", column "Output / 1M tokens": "$6.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt < 200,000 tokens
$4.800000000000001= $6.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Input
Standard
Prompt ≥ 200,000 tokens
$4.00
XA-024

“Table "Text API Pricing", row "grok-4.5 (≥ 200k prompt tokens)", column "Input / 1M tokens": "$4.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt ≥ 200,000 tokens
$3.20= $4.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt ≥ 200,000 tokens
$0.60
XA-025

“Table "Text API Pricing", row "grok-4.5 (≥ 200k prompt tokens)", column "Cached input / 1M tokens": "$0.60"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt ≥ 200,000 tokens
$0.48= $0.60 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt ≥ 200,000 tokens
$12.00
XA-026

“Table "Text API Pricing", row "grok-4.5 (≥ 200k prompt tokens)", column "Output / 1M tokens": "$12.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt ≥ 200,000 tokens
$9.600000000000001= $12.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

  • Prompts of 200,000 tokens or more pay the higher tier for every token in the request (XA-027).

Grok 4.6

API id grok-4.6

Recorded in part: Explicit batch prices sit behind a JavaScript toggle and could not be read; batch prices here are derived from the stated 20% discount.

Context window
500,000 tokens
XA-039

“Table "Text API Pricing", row "grok-4.6 (< 200k prompt tokens)", column "Context": "500k"” Official page ↗ (Nov 24, 2026)

Maximum input
Not published — Not printed separately.
Maximum output
Not published — No output limit is printed on the pricing page or the model pages.
XA-041

“No output limit is printed on the pricing page or the model pages.” Official page ↗ (Nov 24, 2026)

Status
Not stated — No retirement notice lists this model (XA-042).
Free tier
Not stated — No free token allowance is stated; "Tier 0: $0" is a spend tier, not free usage (XA-035).
Cache writes
No separate charge: billed at the input price (official rule)
XA-031

“Table "Pricing (prompt caching)", row "Prompt tokens (non-cached)", column "Billing rate": "Full prompt token price"” Official page ↗ (Nov 24, 2026)

Grok 4.6 prices per 1M tokens, as recorded
TokensModeConditionUSD / 1MSource
Input
Standard
Prompt < 200,000 tokens
$2.00
XA-015

“Table "Text API Pricing", row "grok-4.6 (< 200k prompt tokens)", column "Input / 1M tokens": "$2.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt < 200,000 tokens
$1.60= $2.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt < 200,000 tokens
$0.50
XA-016

“Table "Text API Pricing", row "grok-4.6 (< 200k prompt tokens)", column "Cached input / 1M tokens": "$0.50"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt < 200,000 tokens
$0.40= $0.50 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt < 200,000 tokens
$6.00
XA-017

“Table "Text API Pricing", row "grok-4.6 (< 200k prompt tokens)", column "Output / 1M tokens": "$6.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt < 200,000 tokens
$4.800000000000001= $6.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Input
Standard
Prompt ≥ 200,000 tokens
$4.00
XA-018

“Table "Text API Pricing", row "grok-4.6 (≥ 200k prompt tokens)", column "Input / 1M tokens": "$4.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt ≥ 200,000 tokens
$3.20= $4.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt ≥ 200,000 tokens
$1.00
XA-019

“Table "Text API Pricing", row "grok-4.6 (≥ 200k prompt tokens)", column "Cached input / 1M tokens": "$1.00"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt ≥ 200,000 tokens
$0.80= $1.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt ≥ 200,000 tokens
$12.00
XA-020

“Table "Text API Pricing", row "grok-4.6 (≥ 200k prompt tokens)", column "Output / 1M tokens": "$12.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt ≥ 200,000 tokens
$9.600000000000001= $12.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

  • Prompts of 200,000 tokens or more pay the higher tier for every token in the request (XA-027).

Grok 4.7

API id grok-4.7

Recorded in part: Explicit batch prices sit behind a JavaScript toggle and could not be read; batch prices here are derived from the stated 20% discount.

Context window
500,000 tokens
XA-037

“"Context window: 500,000 tokens"” Official page ↗ (Nov 24, 2026)

Maximum input
Not published — Not printed separately.
Maximum output
Not published — No output limit is printed on the pricing page or the model pages.
XA-041

“No output limit is printed on the pricing page or the model pages.” Official page ↗ (Nov 24, 2026)

Status
Not stated — No retirement notice lists this model (XA-042).
Free tier
Not stated — No free token allowance is stated; "Tier 0: $0" is a spend tier, not free usage (XA-035).
Cache writes
No separate charge: billed at the input price (official rule)
XA-031

“Table "Pricing (prompt caching)", row "Prompt tokens (non-cached)", column "Billing rate": "Full prompt token price"” Official page ↗ (Nov 24, 2026)

Grok 4.7 prices per 1M tokens, as recorded
TokensModeConditionUSD / 1MSource
Input
Standard
Prompt < 200,000 tokens
$2.00
XA-001

“Table "Text API Pricing", row "grok-4.7 (< 200k prompt tokens)", column "Input / 1M tokens": "$2.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt < 200,000 tokens
$1.60= $2.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt < 200,000 tokens
$0.50
XA-002

“Table "Text API Pricing", row "grok-4.7 (< 200k prompt tokens)", column "Cached input / 1M tokens": "$0.50"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt < 200,000 tokens
$0.40= $0.50 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt < 200,000 tokens
$6.00
XA-003

“Table "Text API Pricing", row "grok-4.7 (< 200k prompt tokens)", column "Output / 1M tokens": "$6.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt < 200,000 tokens
$4.800000000000001= $6.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Input
Standard
Prompt ≥ 200,000 tokens
$4.00
XA-004

“Table "Text API Pricing", row "grok-4.7 (≥ 200k prompt tokens)", column "Input / 1M tokens": "$4.00"” Official page ↗ (Nov 24, 2026)

Input
Batch
Prompt ≥ 200,000 tokens
$3.20= $4.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Cache read
Standard
Prompt ≥ 200,000 tokens
$1.00
XA-005

“Table "Text API Pricing", row "grok-4.7 (≥ 200k prompt tokens)", column "Cached input / 1M tokens": "$1.00"” Official page ↗ (Nov 24, 2026)

Cache read
Batch
Prompt ≥ 200,000 tokens
$0.80= $1.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

Output
Standard
Prompt ≥ 200,000 tokens
$12.00
XA-006

“Table "Text API Pricing", row "grok-4.7 (≥ 200k prompt tokens)", column "Output / 1M tokens": "$12.00"” Official page ↗ (Nov 24, 2026)

Output
Batch
Prompt ≥ 200,000 tokens
$9.600000000000001= $12.00 × 0.8
Derived from official discount
XA-029

“"Batch API requests are billed at a 20% discount to standard rates."” Official page ↗ (Nov 24, 2026)

XA-030

“"The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens."” Official page ↗ (Nov 24, 2026)

  • Prompts of 200,000 tokens or more pay the higher tier for every token in the request (XA-027).

Other providers: Anthropic · DeepSeek · Google Gemini API · Mistral · OpenAI