All models

Grok 4

xAIOpen weights262K contextTool callingWeb search

Lowest price, from Microsoft Foundry

Pricing page

Per million tokens

Input
$3.00
Output
$15.00
Cached input
—
Batch input / output
—
  • Up to 8K output tokens per request.

Estimate your monthly cost

Est. per month = input tokens × input price + output tokens × output price. Prices are per million tokens, so 10M input tokens at $3.00 cost $30.

From Microsoft Foundry: $60.00 a month.

Where to buy it (3)

Sorted by your monthly estimate. Prices per million tokens.

  • Microsoft Foundry

    Input / output
    $3.00 / $15.00
    Context
    262K
    Per month
    $60.00

    azure_ai/grok-4

  • Vercel AI Gateway

    Input / output
    $3.00 / $15.00
    Context
    256K
    Per month
    $60.00

    vercel_ai_gateway/xai/grok-4

  • Replicate

    Input / output
    $7.20 / $36.00
    Context
    —
    Per month
    $144.00

    replicate/xai/grok-4

Cloud and hosted sellers may add regional pricing, minimums or platform fees. Supports: Tool calling, Web search.

Similar models

About this data

Prices come from LiteLLM's model cost map (MIT licence), checked Oct 14, 2026; confirm on the seller's pricing page before you rely on a number.