xAI

Grok 4.7

Grok 4.7 supports text and image input, a 500K-token context window, reasoning, tool calling, structured outputs, web/X search, and code execution. Pricing per 1M tokens: $2 input, $0.50 cached input, and $6 output; rates double above 200K prompt tokens. Released September 21, 2026, with a May 2026 knowledge cutoff. No text output limit or Batch API support.

ActiveAvailable from 2 providers
Tool callingCan invoke external tools and APIs (function calling) mid-response.Structured outputCan return JSON or schema-constrained responses instead of free text.ReasoningUses extended thinking / chain-of-thought for harder multi-step problems.Effort controlLets you dial thinking depth (low / medium / high) to trade cost for quality.Fine-tuningSupports training a custom variant on your own data (vendor fine-tune API or self-hosted open weights).

Source: https://docs.x.ai/developers/pricing, https://docs.x.ai/developers/models/grok-4.7, https://docs.x.ai/developers/grok-4-7, https://docs.x.ai/developers/release-notes

Price per 1M tokens
$2 in / $6 out
Context window500,000
Cache read$0.5 / M
Input
  • Text
  • Image
Output
  • Text
Priced across2 providers

Pricing

Every billing leg from the live catalog, in USD per 1M tokens.

Billing legStandardLong context
Input$2 / M$4 / M
Output$6 / M$12 / M
Cache read$0.5 / M$1 / M

Long-context rates apply above 199,999 input tokens.

Cost calculator

Billing-grade math over the rate card above, including the thinking tokens most estimates miss.

Hidden reasoning tokens bill as output. 1.0x = thinking off. Medium-effort reasoning typically lands near 3x; heavy reasoning runs 6x to 8x. Set it to match your workload.

Estimated monthly cost
$760
at current list prices
Fresh input$400
Cached input$0.00
Output incl. thinking$360
Track this automatically →

Compare providers

The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.

PlatformInput / MOutput / MCache read / MBatchAccess
xAI
$2$6$0.5-First-party API
xAILowest
$1.6$4.8$0.4-via OpenRouter

Price history

Has this model gotten cheaper or more expensive?

No changePriced at $2 / $6 per 1M since September 22, 2026.

More from xAI

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every Grok 4.7 call your team makes, prices it with this exact rate card, and shows spend by feature, customer, and team.

Get started free

Rates are generated from SuperPenguin's live pricing catalog.