GoodPrompts
Main navigation
Model guides

Prompting Grok

Frame current research and coding tasks, then enable the search tools they need.

Sources checked Official documentationweb · mobile · api · search

Model selection

Model or serviceUse caseModel ID or access
Grok 4.7Text, code and agent tasksgrok-4.7
Grok ImagineImage and video generationModel catalog
Grok Voice APIReal-time voiceModel catalog

Which model to choose

Use Grok 4.7 for a text or coding brief. Select the dedicated media surface when the deliverable is an image, video or voice interaction.

Using the chat or local app

For current research, specify date range, geography and source preference. Ask for the original publication date and a link for each material claim.

Using the API

Use the server-side web or X search tools for fresh information. A Responses request can combine the input with enabled tools. Inspect returned citations before relying on the synthesis.

POST https://api.x.ai/v1/responses

{
  "model": "grok-4.7",
  "input": "Find official release notes for {{product}} within {{date range}}. Cite each claim.",
  "tools": [
    {
      "type": "web_search"
    }
  ]
}

Prompting advice

  • Distinguish reported facts, quotations and your requested analysis.
  • Give a cutoff date so updates after it do not change the comparison.
  • Grok 4.7 documents low, medium, high and xhigh reasoning effort. Adjust the request setting for the task instead of treating a long reasoning prompt as a substitute.

Example prompt template

Find changes to {{product}} released between {{start}} and {{end}}. Prefer official release notes. For each change give the release date, original URL and effect on existing users.

Sources