AIREITER
GrokText Chat

Grok 4.7

Grok 4.7 takes a long coding or research job, checks its own result, and answers in the playground above. 500,000-token context. Model id grok-4.7.

InputOfficial $2.00 per 1M tokensAIReiter $0.40 per 1M tokensOutputOfficial $6.00 per 1M tokensAIReiter $1.20 per 1M tokensCache readOfficial $0.50 per 1M tokensAIReiter $0.10 per 1M tokens
Run with API

INPUT

OUTPUT

Example
Generated in
42.7 seconds
Input tokens
134
Output tokens
2354
Tokens per second
55.13 tokens / second
Time to first token
-

Model details

Use the same model key in Playground, API requests, and internal workflows.

Model ID
grok-4.7
Provider
Grok
Protocol
OpenAI Chat Completions
Context window
500,000 tokens
Max output
128,000 tokens
Input tokens
40 credits / 1M tokens
Output tokens
120 credits / 1M tokens
Cache read
10 credits / 1M tokens
Cache write
-

Give it the whole job

The box above is Grok 4.7. Paste the bug, the files, and what done looks like. It is meant to stay on that work and come back with a result you can review, not a sketch.

Fix a real bug

Include the failing test, the diff, and the behavior you want. Ask for the smallest change that makes the test pass.

Plan a change before anyone writes it

Hand over the constraint and the acceptance check. 4.7 is trained to keep working on tasks that take hours, then check what it produced.

Turn a long brief into a doc or a deck

xAI also aimed this model at documents and presentations, not only code. Put the source material in the prompt and ask for the draft.

Keep a long brief in one request

The context window is 500,000 tokens, the same size as Grok 4.6. You still have to put the material in the prompt. It will not go find the rest.

When to pick 4.7 instead of 4.6

Use 4.7 when the job is long and has to be checked. Use 4.6 when you want a short answer or a frozen evaluation must stay on the older model.
01

Stronger on long coding work

On xAI's model card, Grok 4.7 scores 71.0% at high effort on DeepSWE v1.1, a set of 113 original software tasks. Artificial Analysis moved its Coding Agent Index from 47 with Grok 4.6 to 56 with 4.7.

02

It writes more, so leave room

On the same Artificial Analysis index, 4.7 used about 81,000 output tokens per task and 4.6 used about 38,000. Raise the reply length before you judge a hard task.

03

Short questions can stay on 4.6

A one-line answer does not need the longer training. If a test suite is pinned to 4.6, keep sending that model.

Try it, then call the same model

What you see in the box is what the API runs. The model id is grok-4.7.

01

Put a real task in the box

Use a bug you already understand. If the answer is wrong, you will know before you wire it into an app.

02

Set effort to high for a hard job

The control offers low, medium, high, and xhigh. High is the default. Reasoning is part of the reply, so a higher effort needs a longer reply limit.

03

Send grok-4.7 from your app

POST /api/v1/chat/completions with an AIReiter API key. The internal key is chat-grok-4.7. Streaming uses the same id.

Questions before you switch

What the model is, which id to send, and how it differs from Grok 4.6.

/ 01

What is Grok 4.7?

xAI's model for long coding and knowledge work, released on 21 September 2026. It uses a larger base than Grok 4.6 and was trained longer on tasks that take many hours.

/ 02

Which model id do I send?

grok-4.7. In this product the internal key is chat-grok-4.7.

/ 03

How is it different from Grok 4.6?

It is aimed at longer jobs and checks its own work more carefully. Published coding scores are higher, and it also spends more output tokens on the same benchmark. Keep 4.6 for short replies.

/ 04

How much context can I send?

500,000 tokens, the same window as Grok 4.6. Anything outside that window has to be pasted in or left out.

/ 05

What does it already know?

Pretraining runs through June 2026, with extra training data through August 2026. For anything newer, put the source in the prompt.

/ 06

Can I use it for a legal or medical decision?

No. Use it to draft and check. A person who owns the outcome has to review medical, legal, financial, and safety-critical results.