Grok 4

Provider: xAI US

No longer listed on OpenRouter since 2026-05-15. The figures below are the last recorded values.
Input price
$3.00
/ 1M tokens
Output price
$15.00
/ 1M tokens
Cache price
$0.75
/ 1M tokens (read)
Context
256K tokens
Max output 32K tokens

Overview

Grok 4 by xAI is a mid-tier, general-purpose model equipped for advanced reasoning and multimodal workloads. It offers robust capabilities for tasks requiring complex understanding and structured interaction.

Strengths

  • Processes extensive information with its 256,000-token context window.
  • Interprets and understands visual data through its vision capability.
  • Enables structured outputs and external tool use with function-calling and JSON mode.
  • Tackles complex problems with its explicit 'thinking' capability.
  • Generates substantial responses with a maximum output of 32,000 tokens.

Best use cases

  • Deep analysis of long documents combined with image understanding.
  • Developing intelligent agents that interact with external APIs via function calls.
  • Automating data extraction and transformation requiring JSON outputs.
  • Building advanced chatbots capable of complex reasoning and multimodal input.
  • Summarizing extensive content, including text and visual elements.

Pricing position

Grok 4 is positioned as a higher-priced offering within xAI's portfolio, with input at $3/M tokens and output at $15/M tokens. This places it directly in competition with several Claude Sonnet models and Sonar Pro, which share identical pricing for input and output.

Caveats

Customers should note there is no free tier available for Grok 4. For tasks requiring a significantly larger context window (2,000,000 tokens) at a much lower input price ($0.19999999999999998/M), xAI's Grok 4 Fast or Grok 4.1 Fast models might be more cost-effective. Simpler tasks with smaller context needs could benefit from the even lower-priced Grok 3 Mini ($0.3/M input).

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

Key facts

Max output
32K tokens
Tracked since
2026-05-07
Last updated
2026-05-15

Features

Image inputFunction callingJSON outputReasoning

Price history

  • 2026-05-15 No longer listed

Monthly cost estimate

Scale Input (M) Output (M) Monthly
0.1M (hobby) 0.1 0.05 $1.05
1M (small app) 1 0.5 $10.50
10M (mid scale) 10 5 $105.00
100M (large) 100 50 $1050.00

※ Cache and batch discounts not factored in. Detailed calculator

Official resources

Other models from xAI

Similar-priced models

Source: OpenRouter API