BUILD / use-grok-4-7-in-grok-build

Build

Use Grok 4.7 in Grok Build

Grok 4.7 is the default model of the Grok Build coding agent. Official: Grok Build overview, Grok 4.7. Announcement: Introducing Grok 4.7.

Install and start a session:

curl -fsSL https://x.ai/cli/install.sh | bash
cd your-project
grok

On first launch, Grok opens a browser for authentication. In non-browser environments, export an API key first:

export XAI_API_KEY="xai-..."
grok

Switch to grok-4.7

/model <id> (alias /m) switches the active model for the current session (Modes and Commands). Full picker pattern: Switch the active model in Grok Build.

  1. List catalog entries from the shell:
grok models
  1. In the TUI, send:
/model grok-4.7
/m grok-4.7

Headless and defaults

Path How
One headless run grok -p "…" -m grok-4.7
Default for new sessions [models] default = "grok-4.7" in ~/.grok/config.toml

After editing config, run grok inspect so you can see which sources loaded.

Fast in Build

Grok 4.7 Fast is the same model on faster infrastructure at standard token rates. It is available in Grok Build. It is excluded from Grok Build's free tier. It is unavailable on the public xAI API. Rates and scope: Grok 4.7 Fast pricing (Cursor and Grok Build only).

Prompt tokens Input Cached input Output
Below 200k $4.00 / 1M $1.00 / 1M $12.00 / 1M
Above 200k $6.00 / 1M $1.50 / 1M $18.00 / 1M

Details and Cursor billing: Understand Grok 4.7 Fast limits.

Pitfalls

  • /effort sets reasoning effort on the current model; switch models with /model when you need a different catalog entry.
  • Fast has no public API model id — use Build or Cursor surfaces, never invent an API string.

Related