Home/Grok API/Grok 4.7

Grok 4.7 Pricing Calculator

xAI's flagship model for code and chat. One typical prompt costs $0.0040 (0.4¢) on Grok 4.7. Paste your own prompt below to compare it with other models.

Input Price
$2.00
per 1M tokens
Output Price
$6.00
per 1M tokens
Cached Input
$0.50
per 1M tokens
Context Window
500K
xAI · September 21, 2026

Long-context pricing: prompts of 200,000+ tokens are billed at $4.00 input / $12.00 output per 1M tokens for the whole request. The calculator applies this automatically.

Source: xAI official pricing · verified October 2026.

0input tokens
Estimated (~4 chars/token)

How many tokens you expect the model to generate per response

Showing a typical prompt (500 input + 500 output tokens) across 26 models. Paste your own prompt above for an exact count.

ModelPer PromptPrompts / $1Monthly
xAI$0.00400.4¢250$12.00
OpenAI$0.0003000.03¢3,333$0.9000
Mistral$0.0003750.037¢2,666$1.13
OpenAI (via Together)$0.0003750.037¢2,666$1.13
OpenAI$0.0007000.07¢1,428$2.10
DeepSeek$0.0007500.075¢1,333$2.25
Meta (via Together)$0.0009250.092¢1,081$2.77
Mistral$0.00100.1¢1,000$3.00
Google$0.00140.14¢714$4.20
xAI$0.00190.19¢533$5.63
Google$0.00220.22¢444$6.75
DeepSeek$0.00260.26¢378$7.92
Meta$0.00270.27¢363$8.25
Anthropic$0.00300.3¢333$9.00
Alibaba (Qwen)$0.00400.4¢250$12.00
Mistral$0.00450.45¢222$13.50
OpenAI$0.00600.6¢166$18.00
OpenAI$0.00600.6¢166$18.00
Anthropic$0.00600.6¢166$18.00
OpenAI$0.00700.7¢142$21.00
Google$0.00700.7¢142$21.00
Moonshot AI$0.00900.9¢111$27.00
OpenAI$0.012083$36.00
Anthropic$0.012083$36.00
OpenAI$0.030033$90.00
Anthropic$0.030033$90.00

Prices from official provider pricing pages, verified October 2026.

Grok 4.7 Specs & Pricing
Input price$2.00 / 1M
Output price$6.00 / 1M
Cached input$0.50 / 1M
Typical prompt$0.0040
Batch discountNone
Context window500K tokens
Max outputNot published
Knowledge cutoffMay 2026
Input typesText, Images
Reasoning modeAlways on
Open weightsNo
ReleasedSeptember 21, 2026
StatusCurrent

Comparisons with Grok 4.7

Grok 4.7 — Frequently Asked Questions

A typical prompt of 500 input tokens with a 500-token answer costs $0.0040 (0.4¢) on Grok 4.7. That means $1 buys about 250 prompts. Longer prompts and answers cost proportionally more.

With 500 input and 500 output tokens per request, Grok 4.7 costs $4.00 per 1,000 requests. Input tokens are $2.00 per million and output tokens $6.00 per million.

Grok 4.7 costs the same per prompt as Qwen3.8 Max. Grok 4.7 costs $2.00/$6.00 per million tokens (input/output) vs Qwen3.8 Max's $2.00/$6.00.

Grok 4.7 accepts text and images, has a knowledge cutoff of May 2026 and always reasons before answering. Its context window is 500K tokens.

Grok 4.7 supports 500K tokens (500,000) — the maximum combined length of your prompt and the model's answer in one request. Prompts of 200,000+ tokens are billed at $4.00/$12.00 per million for the whole request.

At 10,000 requests per day with 500 input + 500 output tokens each, Grok 4.7 costs about $1,200.00/month. Use the calculator above with your real prompt and volume.