Skip to content
llm-spend
Cost anatomy

Grok 4.7 Long Context

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
$4.00
CHF 3.22
Cached input / 1M
$1.00
CHF 0.805
Output / 1M
$12.00
CHF 9.66
Cost anatomy

Where this workload's cost goes

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

$24.00
Fresh input · CHF 19.32
$54.00
Cached input · CHF 43.47
$2.52
Output · CHF 2.03
$80.52
Workload total · CHF 64.82

$24.00 + $54.00 + $2.52 = $80.52

Provenance

How much to trust these numbers

InputofficialCached inputofficialOutputofficial

Long-context pricing band for requests at or above 200K prompt tokens. This is a separate comparison lane so the site does not confuse a workload's cumulative monthly input volume with one prompt's context length.

xAI's official pricing page (docs.x.ai/developers/pricing), captured 2026-09-21, publishes Grok 4.7 at $4/M input, $1/M cached input and $12/M output for the long-context band beginning at 200K prompt tokens. The model page (docs.x.ai/developers/models/grok-4.7) confirms the 500K context window. Microsoft's October 6 Foundry launch separately publishes 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.7 Long ContextFoundry ·Data Zone$88.57+$8.05 (+10%)
Grok 4.7 Long ContextFoundry ·Global$80.52$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 Long Context
    GrokSame provider
    Foundry ·Global
    $80.52
    CHF 64.82
    $0.00 (0%) vs this lane
  • Grok 4.7 Long Context
    GrokSame provider
    Foundry ·Global
    $80.52
    CHF 64.82
    $0.00 (0%) vs this lane
  • Grok 4.7 Long Context
    GrokSame provider
    Foundry ·Data Zone
    $88.57
    CHF 71.30
    +$8.05 (+10%) vs this lane
  • Claude Fable 5.1
    Claude
    Direct API
    $84.00
    CHF 67.62
    +$3.48 (+4%) vs this lane
  • Claude Mythos 5.1
    Claude
    Direct API
    $84.00
    CHF 67.62
    +$3.48 (+4%) vs this lane
  • GPT-5.5
    OpenAI / Azure OpenAI
    Foundry ·Data Zone
    $69.63
    CHF 56.05
    -$10.89 (-14%) vs this lane