How to prompt Grok 4.7 in 2026

What xAI documents about Grok 4.7, the rules the other model makers agree on, a real before-and-after, a prompt to copy, and every official xAI page worth reading.

Checked against the makers’ own pages on .

The rules that matter now

Grok 4.7

xAI

  • Reasoning is always on. xAI says Grok 4.7 reasons before every answer and that reasoning cannot be disabled. Choose the depth with reasoning_effort (low, medium, high by default, or xhigh) instead of asking for steps. xAI: Reasoning
  • Some settings are rejected. presencePenalty, frequencyPenalty and stop return an error on reasoning models, so drop them from old requests. xAI: Reasoning
  • Cache the long part. xAI recommends a prompt_cache_key, so a long instruction block you send every time is read from the cache. xAI: Grok 4.7 developer guide
  • There is no official prompt guide. xAI documents its models but publishes no prompting guide, so PromptForge applies what Anthropic, OpenAI and Google agree on: a clear goal, the context with its reason, the output format and examples. xAI: Models and pricing
  • See how xAI prompts Grok. xAI publishes the system prompts behind Grok on grok.com and X, a rare look at how a model maker writes for its own model. xAI: Grok system prompts on GitHub

An old prompt, X-rayed and fixed

A prompt written the way many still are, checked by PromptForge’s X-ray against xAI’s current guidance and the rules the other makers share.

Before

You are ChatGPT. Think step by step and tell me whether I should buy or rent a flat in Bengaluru. IMPORTANT: be honest!!! Make it as good as possible.

What the X-ray says for Grok 4.7

  1. ChangeAnother model's name

    The prompt names a different model than Grok 4.7. Remove the name, or use the right one.

  2. Change"Think step by step" is now built in

    Grok 4.7 always reasons before it answers, and xAI says reasoning cannot be disabled. Set reasoning_effort rather than asking for steps.

  3. ChangeShouting rules

    Current models follow instructions closely, and emphasis written for older models now causes over-triggering. Write the rule calmly and give its reason.

  4. ConsiderQuality words with no bar

    If you want above-and-beyond results, describe them; "make it good" leaves the model to guess what good is.

  5. ConsiderNo output format

    Be specific about the format and length you want back.

After one click on “Fix what can be fixed”

You are ChatGPT. Tell me whether I should buy or rent a flat in Bengaluru. Important: be honest. Make it as good as possible.

The rest of the notes need your judgement, such as what format you want back.

X-ray your own prompt for Grok 4.7

A prompt to copy

Built by PromptForge in the structure xAI recommends where it says anything, and the shared rules elsewhere. Each part is labelled with the rule it follows.

Ready to pasteGrok 4.7, about 110 tokens
  1. Role
    # Role You are an expert who gives specific, accurate and practical answers, and says plainly when something is uncertain.
  2. Goal
    # Goal Compare buying and renting a 2BHK flat in Bengaluru over ten years.
  3. Context
    # Context I earn ₹1.8 lakh a month, have ₹25 lakh saved and may move cities in five years.
  4. Success criteria
    # Success criteria - Shows the numbers behind the answer. - Says which assumption would change it.
  5. Output
    # Output Present the result as a Markdown table.
# Role
You are an expert who gives specific, accurate and practical answers, and says plainly when something is uncertain.

# Goal
Compare buying and renting a 2BHK flat in Bengaluru over ten years.

# Context
I earn ₹1.8 lakh a month, have ₹25 lakh saved and may move cities in five years.

# Success criteria
- Shows the numbers behind the answer.
- Says which assumption would change it.

# Output
Present the result as a Markdown table.

Settings for Grok 4.7

  • Reasoning is always on: set reasoning_effort to low, medium, high (the default) or xhigh.
  • presencePenalty, frequencyPenalty and stop return an error on reasoning models.
  • Set a prompt_cache_key so a long prompt is reused from the cache.

Which model to use

ModelBest forInput / output per million tokensAPI IDOpen
Grok 4.7xAI's most capable model$2 / $6grok-4.7Write for it

Prices from xAI’s own page, checked on 18 October 2026.

Questions

Does xAI publish a Grok prompting guide?

Not as of 18 October 2026. xAI documents its models, reasoning and caching, so PromptForge uses the rules Anthropic, OpenAI and Google agree on, plus what xAI does document.

Should I tell Grok to think step by step?

No. xAI says Grok 4.7 always reasons before it answers and reasoning cannot be disabled. Set reasoning_effort to low, medium, high or xhigh instead.

Why does my old Grok request fail?

presencePenalty, frequencyPenalty and stop return an error on reasoning models such as Grok 4.7. Remove them.

Where can I see how xAI prompts Grok?

xAI publishes the system prompts it uses for Grok on grok.com and X in its grok-prompts repository on GitHub.