Grok 4.7 is xAI's flagship model, released on 21 September 2026, and it is the most capable version of Grok yet. It ships with a 500,000-token context window, configurable reasoning effort from low to xhigh, and a reputation for agentic coding that lets it inspect repositories, edit files, run commands and retry after errors. On Terminal-Bench 4.0 it scored 37.6%, up from 20.3% for Grok 4.6, and on CursorBench 4.0 it improved from 40.4% to 46.3%. API pricing starts at $2 per million input tokens and $6 per million output tokens, with cached input at $0.50 per million, although any prompt that reaches 200,000 tokens is repriced at double for the whole request.
What makes Grok 4.7 different from other flagship models is not just the benchmark scores. It is the only major model with native X search built in, so it can pull live posts from the platform and fold them into an answer. It also offers DeepSearch for multi-source research, file analysis, voice, and Grok Imagine for image and short video generation. Its knowledge cutoff is May 2026, so for anything newer you should ask it to search rather than relying on what it was trained on. The prompts below are written to exploit exactly those strengths: long-context reasoning, live search, agentic coding and multimodal creation. Each one is ready to copy and paste, and each includes a note on how to adapt it.
How to Get the Best from Grok 4.7 Before You Prompt
A good prompt starts before you type it. Grok 4.7 lets you set reasoning effort to low, medium, high or xhigh, with high as the default. Use low for quick factual answers and short rewrites, where speed matters more than depth. Use high for ordinary knowledge work, and switch to xhigh only for genuinely hard problems such as debugging a large codebase or untangling a complex research question, because the extra reasoning costs more tokens and more time. If you are working through the API, remember that prompts above 200,000 tokens double the price of the whole request, so keep your context lean and paste only the files that matter.
Second, be explicit about tools. Grok 4.7 will not always search the web or X on its own, and its training data ends in May 2026. If your question touches on anything recent, say so directly: ask it to search the web, search X, or use DeepSearch, and tell it how recent the sources must be. Third, give it a role, a task and a format in that order. A role sets the standard, the task sets the work, and the format sets the shape of the answer. Finally, ask for verification. Grok 4.7 was trained with extended reinforcement learning weighted toward harder, longer tasks, and it is good at self-verification when you ask it to check its own work.
1. Grok 4.7 Prompts for Coding and Development
Grok 4.7 is built for coding first. Its agentic abilities mean it can work through a repository end to end rather than answering one function at a time, so the best coding prompts give it a whole task, permission to run tests, and a clear definition of done.
Prompt 1: Full Repository Bug Hunt
Reasoning effort: high. Work through this repository end to end. I have pasted the files below. Find every bug that could cause a crash, a data loss or a security issue. For each one, show the file and line, explain the failure mode, and give a corrected version of the code. Then run a mental test pass over the fixed code and report anything that still fails.
Use this when you inherit a project or review a pull request. The instruction to run a mental test pass pushes the model to verify its own fixes instead of stopping at the first plausible answer.
Prompt 2: Refactor Without Breaking Behaviour
Refactor the code below to [describe the goal, for example: split this 400-line function into small testable functions]. Keep every public function signature unchanged and keep the behaviour identical. List each change you make, explain why it is safe, and flag any behaviour you could not preserve exactly.
This prompt works because it separates what may change from what must not. Grok 4.7's long context helps here: paste the whole module, not just the function, so it can see every caller.
Prompt 3: Explain a Codebase to a New Teammate
You are a senior engineer onboarding a new developer. Explain this codebase in plain English: what it does, how the main modules fit together, where the entry points are, and which three files a new joiner should read first. End with a list of five questions a new developer should ask before changing anything.
A strong choice for open-source projects and inherited code. Ask for the five questions at the end, because they surface assumptions the original authors never wrote down.
Prompt 4: Turn an Error Message into a Fix
Here is the full error message and stack trace: [paste it]. The code that produced it is below. Tell me the root cause in one paragraph, then give me the smallest fix that resolves it, then explain how to prevent the same class of error in future. Do not rewrite the whole file.
The "smallest fix" constraint matters. Without it, language models tend to rewrite far more than necessary. Pair this prompt with reasoning effort set to high when the error involves concurrency, state or async code.
Prompt 5: Build a Feature from a Plain-English Brief
Build [feature] for this project. Requirements: 1) [requirement]. 2) [requirement]. 3) [requirement]. Use the existing patterns in the code I have pasted, add tests for the new behaviour, and list every file you changed with a one-line summary of each change. If a requirement is ambiguous, state your assumption and continue.
Grok 4.7's agentic coding strengths show up here: it inspects the repo, follows existing patterns and retries after errors. The final line matters, because it stops the model stalling on ambiguity and forces it to document its choices instead.
2. Grok 4.7 Prompts for Research and X Analysis
Grok 4.7's standout feature is live access to X and the web. These prompts are designed for research that would be stale or impossible with training data alone, and they work best when you demand sources and dates.
Prompt 6: Real-Time News Briefing
Use web search and X search to give me the latest on [topic or event] from the last 24 hours. Skip the caveats and give me signal, not noise: what happened, who said what, and what is still unconfirmed. Cite the source and time for each claim.
Ask for citations and times explicitly. Grok 4.7 can search X natively, which makes this briefing far fresher than a generic news summary, but only if you tell it to search rather than answer from memory.
Prompt 7: DeepSearch Research Dossier
Use DeepSearch to compile everything published in the last 48 hours about [topic]. Rank the sources by credibility, summarise the consensus, and highlight every claim where sources disagree. End with the three questions I should investigate next.
This is the research prompt to reach for before writing an article, a report or a product decision. Ranking by credibility and surfacing disagreement are the two things that separate a dossier from a simple summary.
Prompt 8: Sentiment and Contrarian Signals
Analyse the current sentiment around [stock, sector or topic] using real-time X data. Identify the consensus view, then find the contrarian signals most analysts are missing. For each contrarian signal, give the evidence and a confidence level. This is research only, not investment advice.
Prompt 9: Track What People Actually Ask
Search recent X conversations about [product or topic]. Identify the recurring questions, frustrations, misconceptions and purchase concerns people raise. Group them into themes, rank the themes by frequency, and quote one representative post for each theme.
A practical prompt for marketers, product managers and content creators. It turns the X firehose into a prioritised list of what your audience genuinely cares about, which is far more useful than a generic trend report.
Prompt 10: Fact-Check a Viral Claim
A post on X claims: "[paste the claim]". Verify it using web search and X search. Give a verdict of true, false, misleading or unproven, with the evidence for and against, the original source of the claim, and the date it first appeared. If the evidence is inconclusive, say so plainly.
Grok 4.7's knowledge cutoff is May 2026, so a claim from the last few months can only be checked by searching. Asking for the date a claim first appeared is a useful tell: recycled claims are one of the most common forms of misinformation on X.
3. Grok 4.7 Prompts for Writing and Content
For writing work, Grok 4.7's 500,000-token context is the asset. You can paste an entire draft, a style guide and a pile of source material in one prompt and ask for a coherent rewrite, which smaller-context models cannot do in a single pass.
Prompt 11: Rewrite in a Specific Voice
Rewrite the text below in the voice of [author, publication or tone, for example: a plain-English explainer for non-technical readers]. Keep every fact and figure unchanged, cut any jargon, and keep the length within 10% of the original. Show me a before-and-after of the first paragraph so I can judge the voice.
The before-and-after request is the quality control. It lets you approve the voice on one paragraph before the model rewrites the whole piece, which saves a lot of revision time.
Prompt 12: Turn Notes into a Structured Article
Here are my rough notes: [paste notes]. Turn them into a structured article with an introduction, clear subheadings, and a conclusion. Fill gaps only with facts you can verify from the notes themselves, and mark any place where a claim needs a source with [NEEDS SOURCE]. Aim for around [word count] words.
The [NEEDS SOURCE] instruction is the difference between a useful draft and a hallucination risk. It forces the model to flag uncertainty instead of smoothing over it with invented detail.
Prompt 13: Summarise a Long Document
Summarise the document below in three layers: a one-paragraph executive summary, a bulleted list of the ten most important points, and a table of every number, date and name mentioned. Then list the three weakest arguments in the document and why they are weak.
The three-layer structure works well for reports, contracts and research papers. The final request, to find the weakest arguments, turns a passive summary into an active review.
Prompt 14: Generate Ideas That Are Not Generic
I write about [topic] for [audience]. Give me 15 content ideas. For each one, give the working title, the specific angle that makes it different from the obvious take, and the one question the piece must answer. Reject any idea that could apply to any blog in this niche.
The rejection clause is what makes this prompt work. Without it, you get the same ten ideas every model produces for every niche. With it, Grok 4.7 has to filter for specificity, and the results are noticeably sharper.
4. Grok 4.7 Prompts for Images and Video with Grok Imagine
Grok 4.7 itself takes text and image input and produces text, but through Grok Imagine it can create and edit images and generate short video clips. The current image model is Grok Imagine Image 2.0, which supports reference images, different aspect ratios and multiple output resolutions, while Grok Imagine Video 1.5 can create video from text or images with audio and lip-synced speech. These prompts are written for that workflow.
Prompt 15: Product Shot from a Reference Photo
Using the reference image I have uploaded, generate a clean product photograph of [product] on a plain light-grey background, soft studio lighting, shot from a slight three-quarter angle, with the product centred and no text, logos or props in frame. Keep the product's colours and proportions exactly as in the reference.
Reference images are the key to usable product shots. Describing the lighting, angle and background in one prompt gives Imagine enough constraint to produce something you can actually publish, rather than a generic render.
Prompt 16: Social Media Visual Series
Create a set of three square images in a consistent style for a social media series about [topic]. Style: [describe it, for example: bold flat illustration, deep navy background, one accent colour]. Each image should show a different scene from the series, with no text in the images. Keep the colour palette identical across all three.
Consistency is the hard part of AI image series, so name the palette and style explicitly and repeat them in every follow-up. Asking for no text avoids the garbled typography that image models still struggle with.
Prompt 17: Image-to-Video Clip
Turn the uploaded image into a 5-second video clip: slow camera push-in, subtle movement in [describe the moving element, for example: the steam rising from the cup], natural lighting, no cuts, no text overlays. The clip should loop cleanly.
Short, specific motion directions work best with Grok Imagine Video 1.5. One camera move and one moving element is enough; asking for three movements at once usually produces a muddled result.
5. Grok 4.7 Prompts for Productivity and Everyday Work
The last group covers the everyday jobs where a fast, well-structured prompt saves real time: planning, emails, learning and decision-making.
Prompt 18: Plan My Week from a Brain Dump
Here is everything on my mind this week: [paste the list]. Turn it into a day-by-day plan from Monday to Friday. Put the hardest task first each morning, group similar tasks together, leave two 30-minute buffers each day, and tell me which three items I should drop or delegate if the week gets busy.
The drop-or-delegate question is what makes this more than a to-do list. It forces a priority judgement, which is the part of planning most people skip.
Prompt 19: Draft a Difficult Email
Draft an email to [recipient] about [situation]. Tone: firm but professional. The email must: 1) state the facts in two sentences, 2) state what I need, with a deadline of [date], 3) offer one reasonable compromise. Keep it under 150 words and do not use apologetic language.
Constraining the structure and the word count keeps the draft tight. The ban on apologetic language matters for negotiation emails, where models default to softening language that weakens your position.
Prompt 20: Learn a Topic in 30 Minutes
Teach me [topic] in 30 minutes. Structure it as: a two-paragraph overview, five key concepts with a one-sentence explanation and a real example for each, three common mistakes beginners make, and a five-question quiz with the answers at the end. Assume I know nothing about the subject.
This is the prompt to use when you need working knowledge fast rather than deep expertise. The quiz at the end is not a gimmick: it forces the model to choose the concepts that are actually testable, which keeps the lesson focused.
Grok 4.7 Prompt Tips: Reasoning Effort, Context and Verification
Four habits will improve every prompt above. First, match reasoning effort to the job: low for quick answers, high for normal work, xhigh only for hard reasoning, coding or research tasks. Second, respect the 200,000-token pricing cliff. Grok 4.7's 500,000-token window is generous, but once a request passes 200,000 tokens the whole request is repriced at double, so paste only the files and documents the task actually needs. Third, always ask for sources and dates on anything after May 2026, which is the model's knowledge cutoff. Fourth, ask the model to verify its own output. Grok 4.7 was trained to self-verify on long, difficult tasks, and a simple "check your work and report any errors" line at the end of a prompt catches mistakes that would otherwise slip through.
It is also worth knowing what Grok 4.7 cannot do. It takes text and image input and produces text output, so image generation happens through Grok Imagine rather than the chat model itself, and native video input was removed in an earlier release and has not returned. Consumer access through grok.com, the mobile apps and Grok in X may run different model versions, and xAI has not confirmed exactly which version each surface uses, so if a feature behaves differently in the app than in the API, that is why. For a full head-to-head on how Grok 4.7 stacks up against its closest rival, see our Grok 4.7 vs Claude Opus 5.5 comparison, and for more model-specific prompt collections, see our Gemini Omni 1.2 Flash prompts and ChatGPT Images 2.6 prompts.
Frequently Asked Questions About Grok 4.7 Prompts
What is the best reasoning effort setting for Grok 4.7 prompts?
High is the default and the right choice for most work. Use low for short factual questions and xhigh for complex coding, research or multi-step reasoning where accuracy matters more than speed or cost.
Can Grok 4.7 search X and the web?
Yes. Grok 4.7 can search the web and X natively, and it offers DeepSearch for multi-source research. Ask it to search explicitly, especially for anything after its May 2026 knowledge cutoff, and ask for sources and dates.
How much does Grok 4.7 cost through the API?
For prompts below 200,000 tokens, Grok 4.7 costs $2 per million input tokens, $0.50 per million cached input tokens and $6 per million output tokens. Prompts at or above 200,000 tokens are charged at double those rates for the whole request.
Can Grok 4.7 generate images?
The chat model itself produces text output, but Grok Imagine handles image generation and editing, with Grok Imagine Image 2.0 as the current image model, and short video clips through Grok Imagine Video 1.5.
Is Grok 4.7 better than Claude for coding?
On Terminal-Bench 4.0 Grok 4.7 scored 37.6%, nearly double Grok 4.6's 20.3%, and on CursorBench 4.0 it scored 46.3%. Whether it beats Claude for your project depends on the codebase and the task, so read our full Grok 4.7 vs Claude Opus 5.5 comparison before choosing.
#Grok47 #AIPrompts #xAI #Grok #PromptGuide #AITools #Coding #November2026
Comments (0)