xAI

Grok 4

Public pricingLarge memoryVisionTool use

Grok 4 is xAI's large-memory model with vision, tool use. This page shows current pricing, an interactive cost calculator, and a side-by-side with similar models.

Input

$3.00/1M tokens

Output

$15.00/1M tokens

Cached

β€”

Batch

β€”

Interactive

Calculate your Grok 4 bill.

Adjust the workload below and watch the monthly cost update in real time.

What would Grok 4 cost you?

Adjust the workload to see your monthly bill.

1,00010,00050,000250,0001M10M

Technical specifications

Grok 4 at a glance.

Memory

256,000

tokens

Max reply

8,192

tokens

Memory tier

Large

an entire book or large codebase

Tokenizer

tiktoken-o200k

Released

β€”

Training cutoff

β€”

Availability

Public pricing

Status

active

What it can do

Capabilities & limits.

  • Understands images
  • Deep step-by-step thinking
  • Uses tools / calls functions
  • Strict JSON output
  • Streams replies
  • Fine-tunable on your data

When to pick Grok 4

  • Screenshot analysis, image understanding, or document OCR.
  • Agentic workflows that call tools or APIs.
  • Long documents, full codebases, or extensive chat histories.
  • Multimodal pipelines mixing text + images.

When to look elsewhere

  • Very latency-sensitive, real-time apps where every millisecond counts.

FAQ

Grok 4 β€” the questions we see most.

Pricing, capabilities, alternatives β€” generated from the same data that powers the calculator above.

Get instant answers from our AI agent

At a typical workload of 50,000 conversations a month with 1,500-token prompts and 800-token replies, Grok 4 costs roughly $825 per month. Input is $3.00 /1M tokens and output is $15.00 /1M tokens.
Grok 4 has a 256,000-token context window (large memory β€” an entire book or large codebase). That means you can fit about 48,000 words of input and history in a single call.
Beyond text generation, Grok 4 supports understanding images, calling functions / tools. It streams replies by default.
Models in a similar class include Grok 4.1, Gemini 3 Pro, GPT-5. The "Similar models" section below this FAQ links into each.

Still unsure?

Compare Grok 4 against 100+ other models.

Open the full wizard β€” pick a use case, set your usage, and see side-by-side monthly costs in under a minute.