Skip to content

Grok 4.7 API pricing

Grok 4.7 costs $2 per million input tokens and $6 per million output tokens on xAI's API. Input read back from the prompt cache costs $0.50 per million. A typical support chat reply (1,500 tokens in, 300 out) costs about $0.0048.

Input$2 per 1M tokens
Output$6 per 1M tokens
Cached input$0.50 per 1M tokens
Long prompts$4 in, $12 out per 1M tokens for the whole request once the prompt is over 200,000 tokens
Context window500K tokens
Readstext, images, files
ReleasedSeptember 21, 2026

What requests cost on Grok 4.7

The same four requests on every page, so you can compare models directly.

RequestTokens in / outPer requestPer 10,000 requests
A support chat reply1,500 / 300$0.0048$48.00
Summarizing a 10-page document6,000 / 500$0.015$150
Sorting a support ticket into a category400 / 5$0.00083$8.30
A question about a 120-page document60,000 / 800$0.125$1,248

xAI's cheapest model here, Grok Build 0.1, costs 56% less for the same chat reply. Whether it is good enough depends on the request: simple ones (sorting, short summaries, extraction) often are, hard reasoning often isn't.

Other xAI models

ModelInputOutputA chat replyNext to Grok 4.7
Grok Build 0.1$1$2$0.002156% less
Grok 4.3$1.25$2.50$0.002645% less
Grok 4.6$2$6$0.0048same price
Grok 4.5$2$6$0.0048same price

Similar price from other companies

ModelInputOutputA chat replyNext to Grok 4.7
GPT-5.1$1.25$10$0.00492% more
GPT-5$1.25$10$0.00492% more
Gemini 2.5 Pro$1.25$10$0.00492% more
GPT-4.1$2$8$0.005413% more
o3$2$8$0.005413% more

Head-to-head

Paying Grok 4.7 prices for every request?

Most apps send simple requests to the same strong model as the hard ones. PromptUnit checks each request your app sends and uses a cheaper model only when it is just as good for that request. You pay 20% of what it saves, and nothing if it saves nothing.

Checked October 14, 2026. Prices are read every day from xAI's pricing page. Context window, inputs and release date come from OpenRouter's public model list.

These are the standard list prices on each provider's own API. Batch, flex and priority tiers, cloud platforms such as Amazon Bedrock or Google Vertex AI, and regional endpoints are priced differently. Request costs above count input and output tokens only, not cache, search or image fees.