dotsagent.io
Language:English
xAI · Flagship

Grok 4.7 API pricing and specs

xAI's flagship reasoning model, with effort settings from low to xhigh and encrypted reasoning returned by the Responses API.

Input
⁨$2⁩
Cached input
⁨$0.50⁩
Output
⁨$6⁩

US dollars per million tokens, standard tier, short-prompt rate

There is no Batch API for this model. A faster variant at twice the price is offered only inside Cursor and xAI's own coding tool, not in the public API.

Prompts over 200K tokens are billed at ⁨$4⁩ input, ⁨$1⁩ cached and ⁨$12⁩ output per million, and the higher rate applies to the whole request.

Spec sheet

API model string
grok-4.7
Provider
xAI
Context
500K tokens
Max output
—
Released
September 21, 2026
Batch API
No batch discount listed
Documented agent features
Tool callingStructured outputBuilt-in web searchAdjustable reasoning

What a task costs

Four reference workloads priced at this model's list rates, with caching applied after the first call. Your numbers will differ; the calculator lets you change every assumption.

WorkloadPer taskPer 1,000 tasks
Support bot
4 calls, short tool lookups
⁨$0.052⁩⁨$52⁩
Coding agent
30 calls, files and test output
⁨$2.68⁩⁨$2,684⁩
Browser agent
25 calls, screenshots and page text
⁨$1.61⁩⁨$1,607⁩
Research agent
15 calls, long search results
⁨$1.38⁩⁨$1,380⁩

Change the assumptions

Other xAI models

Similar cost elsewhere

Models from other providers whose cost on the 30-step coding workload is closest to this one.

Sources

  1. docs.x.ai/docs/models/grok-4.7
  2. docs.x.ai/docs/models
  3. x.ai/news/grok-4-7
  4. datastudios.org/post/xai-launches-grok-4-7-its-most-powerful-model-yet-for-coding-age

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026