Reader-supported: when you buy through links on AskGPU we may earn an affiliate commission, at no extra cost to you. It never changes our verdicts. How we make money

Checked Oct 17, 2026

xAI

Grok 4.7

Best for: Coding and knowledge work, including agent tasks that run for hours.

Input
$2
per 1M tokens
Output
$6
per 1M tokens
Cached input
$0.50
per 1M tokens
Context window
500K
tokens in one request
Released
Sep 21, 2026
Knowledge cutoff
May 2026
Weights
Closed
API and apps only

xAI flagship. Price shown is for prompts under 200K tokens; at 200K or more the whole request is billed at $4 input / $1 cached / $12 output per 1M. US regional endpoint costs 1.1x.

What would Grok 4.7 cost you?

Change the numbers; the chart compares all 10 featured models at the same usage.

Per request—
Per month (30 days)—
    Compare all models in the full calculator

    What it's good at

    From xAI's own announcements and docs, linked.

    • xAI calls it its most capable model for coding and knowledge work, built on a new, larger base model and trained on tasks that take many hours. source
    • xAI reports 71.0% on DeepSWE v1.1 (at high effort) and 46.3% on CursorBench 4.0. source
    • A 500K-token context, image input, reasoning effort from low to xhigh, function calling and structured outputs. source

    Watch out for

    Limits and costs worth knowing before you build on it.

    • Prompts of 200K tokens or more are billed at double the rate ($4 / $12) on the whole request.
    • No Batch API, and logprobs are silently ignored.
    • It needs the Web Search or X Search tool switched on for current information.
    • The faster Grok 4.7 Fast isn't on the public API, and xAI doesn't publish a maximum reply length.

    Scores

    Benchmark numbers are as published by xAI; we haven't rerun them. Makers use different setups, so don't compare one maker's numbers with another's. The leaderboard rank comes from public blind votes.

    MeasureResultSource
    LMArena text rank#89 (1444)Oct 15, 2026
    DeepSWE v1.1 (software engineering, high effort)71.0%xAI
    CursorBench 4.0 (agentic coding, xhigh effort)46.3%xAI
    Terminal-Bench 4.0 (agentic coding)37.6%xAI

    How to start

    1. Get an API key

      Sign up on xAI's developer platform and add billing; you pay per token as shown above. Read the docs.

    2. Call the model

      Use this model ID in your xAI API requests:

      grok-4.7

    Host the app you build with it

    Grok 4.7 runs on xAI's servers, but your bot, agent or n8n workflow needs a home. A small VPS is usually enough, since the heavy work happens at xAI.

    VPS hosts for AI apps and agents
    ProviderFromStarting planFree tierOur ratingLink
    HostingerChecked $2.99/moPremium (web hosting)20 GB SSDNo (30-day money-back guarantee)Not ratedVisitOfficial site
    DigitalOceanChecked $4/moBasic Droplet 512 MiB1 vCPU · 0.5 GB RAM · 10 GiB SSDOccasional promo credit for new usersNot ratedVisitOfficial site
    VultrChecked $2.50/moCloud Compute Regular Performance, IPv6-only 0.5 GB1 vCPU · 0.5 GB RAM · 10 GB SSDNo free tierNot ratedVisitOfficial site
    Hetzner CloudChecked $6.49/moCX23 (Cost-Optimized, Intel/AMD)2 vCPU · 4 GB RAM · 40 GB NVMeNoNot ratedVisitOfficial site
    All VPS and hosting

    Compare with the other 9

    ModelInput / 1MOutput / 1MContextArena
    gpt-oss-120bOpenAI$0.15$0.60128K#215
    Gemini 3.8 FlashGoogle$0.75$3.751M#9
    DeepSeek V4 ProDeepSeek$1.32$3.961M#56
    Grok 4.7xAI$2$6500K#89
    Gemini 4 ArgonGoogle$2$101M#1
    GPT-6.1 SolOpenAI$2$101.05M#22
    Claude Sonnet 5.5Anthropic$2$101M#36
    Claude Opus 5.5Anthropic$4$201M#3
    Claude Fable 5.1Anthropic$10$501M#6
    GPT-6 AstraOpenAI$10$501.05M#30

    Cheapest first, using 3 input tokens per output token.

    Questions

    How much does Grok 4.7 cost?

    Grok 4.7 costs $2 per million input tokens and $6 per million output tokens at standard API rates, and $0.50 per million cached input tokens (US dollars, checked Oct 17, 2026). It is the 4th cheapest of the 10 models we feature.

    How big is Grok 4.7's context window?

    500,000 tokens for the prompt, documents and conversation in one request. How many words that holds depends on the model's tokenizer.

    Is Grok 4.7 open source?

    No. xAI hasn't published its weights, so you use it through the xAI API or apps rather than on your own hardware.

    When was Grok 4.7 released?

    xAI released it in Sep 21, 2026.

    What is Grok 4.7's knowledge cutoff?

    xAI gives its training-data cutoff as May 2026. For later events it needs web search or documents you provide.

    Sources

    Facts checked Oct 17, 2026. Model names belong to their makers; AskGPU isn't affiliated with xAI. Spotted something out of date? Tell us at hello@askgpu.com.