Skip to content
llm-spend
Cost anatomy

Grok 4.7

Grok · xAI direct APIDirect API

Fresh input / cached input / output cost breakdown, active and scheduled rates, provenance, same-model deployment markup, and cost-comparable alternatives for this purchasable lane.

Start with a pattern

Illustrative workloads

Pick a useful starting shape, then fine-tune every input below.

Fine-tune

Workload and pricing scenario

Adjust the token shape, cache behavior, time window, and service tier. Every number below updates immediately.

Interactive

Workload cost calculator

60M
210K
90%

Share of input tokens served from cache. Applied only to models with a cache meter.

Time

Rows with a rate that changes by time of day, promo window or service tier are priced for this scenario instead of their flat listed rate; a brand-colored label under the model name names which one applies. Context size for band-priced rows uses the input-token count below.

Picking a specific hour also previews time-of-day rates that are scheduled but have not started billing yet; those rows are labelled · preview with their start instant. Now only ever shows rates that are billable at this moment.

Rate state

What this lane charges right now

Priced under the workload and scenario above. The full published schedule below always shows every variant regardless of which scenario is selected.

Input / 1M
$2.00
CHF 1.61
Cached input / 1M
$0.50
CHF 0.403
Output / 1M
$6.00
CHF 4.83
Cost anatomy

Where this workload's cost goes

60M input tokens (90% cache hit) and 210K output tokens, at the resolved rate above.

$12.00
Fresh input · CHF 9.66
$27.00
Cached input · CHF 21.74
$1.26
Output · CHF 1.01
$40.26
Workload total · CHF 32.41

$12.00 + $27.00 + $1.26 = $40.26

Provenance

How much to trust these numbers

InputofficialCached inputofficialOutputofficial

xAI's current flagship for coding and knowledge work, released 2026-09-21. Standard rates are $2/$0.50/$6 per M; requests at or above 200K prompt tokens use the separate long-context lane below. xAI also announces a faster variant at twice the price, but does not expose it as a separate token table on the official pricing page.

xAI's official Grok 4.7 announcement (x.ai/news/grok-4-7), published and captured 2026-09-21, states that the model is available through the Grok API from $2/M input and $6/M output, with $0.50/M cached input and a 500K context window. The official model page (docs.x.ai/developers/models/grok-4.7) confirms the same model identity, context and cache rate; xAI's pricing page (docs.x.ai/developers/pricing) publishes the $4/$1/$12 long-context band for requests at or above 200K prompt tokens. Microsoft's October 6 Foundry launch separately publishes the Global Standard and US Data Zone rates; the Azure Retail Prices feed captured 2026-10-10 now lists the corresponding Foundry meters effective 2026-10-01.

Direct vs Foundry

Same-model deployment markup

How much more Microsoft Foundry charges for this exact model, over this Direct rate.

LaneDeploymentWorkload costFoundry markup
Grok 4.7Foundry ·Data Zone$44.29+$4.03 (+10%)
Grok 4.7Foundry ·Global$40.26$0.00 (0%)
Cost-comparable

Other lanes within ±25% of this workload's cost

Same provider first, then ranked by cost proximity, for 60M in / 210K out. This is a cost ranking only — never a quality recommendation.

  • Grok 4.6
    Grok · xAI direct APISame provider
    Direct API
    $40.26
    CHF 32.41
    $0.00 (0%) vs this lane
  • Grok 4.6
    GrokSame provider
    Foundry ·Global
    $40.26
    CHF 32.41
    $0.00 (0%) vs this lane
  • Grok 4.7
    GrokSame provider
    Foundry ·Global
    $40.26
    CHF 32.41
    $0.00 (0%) vs this lane
  • Grok 4.7
    GrokSame provider
    Foundry ·Data Zone
    $44.29
    CHF 35.65
    +$4.03 (+10%) vs this lane
  • Kimi K3
    Kimi · Fireworks-hosted
    Foundry ·Data Zone
    $41.08
    CHF 33.07
    +$0.825 (+2%) vs this lane
  • Claude Opus 5.5
    Claude
    Direct API
    $39.00
    CHF 31.40
    -$1.26 (-3%) vs this lane