Grok 4.7

Provider: xAI US Official API price

Input price
$2.00
/ 1M tokens
Output price
$6.00
/ 1M tokens
Cache price
$0.50
/ 1M tokens (read)
Batch API
$1.60 / $4.80
input / output per 1M tokens
Context
500K tokens
Max output 450K tokens

Overview

xAI's flagship model targeting coding, agentic workflows, and knowledge work.

Strengths

  • Supports 500,000 context window
  • Outputs up to 450,000 tokens
  • Includes vision, function-calling, json-mode, and thinking capabilities
  • Features cached input at $0.5/1M tokens

Best use cases

  • Long-running software engineering tasks
  • Agentic tasks requiring reasoning and JSON output
  • Large-scale code analysis with vision support

Pricing position

Input is $2/1M and output is $6/1M tokens, matching Grok 4.5 and Grok 4.6 while undercutting GPT-4.1 output pricing.

Caveats

Batch API discount reduces input to $1.6/1M and output to $4.8/1M.

Notes drafted by an LLM from the figures on this page (2026-11-10) and rewritten when the price changes.

Key facts

Price basis
Official API price
Max output
450K tokens
Listed on OpenRouter
2026-09-21
Tracked since
2026-09-21
Last updated
2026-11-10

Features

Image inputFunction callingJSON outputReasoning

Price history

  • 2026-09-21 Added

Monthly cost estimate

Scale Input (M) Output (M) Monthly
0.1M (hobby) 0.1 0.05 $0.50
1M (small app) 1 0.5 $5.00
10M (mid scale) 10 5 $50.00
100M (large) 100 50 $500.00

※ Cache and batch discounts not factored in. Detailed calculator

Official resources

Other models from xAI

Similar-priced models

Source: OpenRouter API (x-ai/grok-4.7)