Skip to content

Grok 4.7

xAI's Grok 4.7 joins the catalog, 500K context, adjustable reasoning, vision in, and six BYOK upstream routes.

Open Grok 4.7

x-ai/grok-4.7 is xAI's latest flagship for coding, agentic work, and knowledge tasks, succeeding Grok 4.6. It keeps the 500K context window and image input, and makes reasoning mandatory but adjustable: low, medium, high, or xhigh effort (default high). Bring your own xAI key, or route through OpenRouter, Cline, OpenCode Zen, OpenCode Zen Go, or AIHubMix BYOK. Your key, your quota.

Try it in the Vercel AI SDK. createAnyRouter() reads ANYROUTER_API_KEY:

generateText with the catalog id
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()

const { text } = await generateText({
  model: anyrouter("x-ai/grok-4.7"),
  prompt: "Summarize this diff in three bullets.",
})
console.log(text)

Or launch a coding agent through the anyr CLI:

Coding agents via the AnyRouter CLI
curl -fsSL https://anyr.dev/cli.sh | bash
anyr login
anyr claude --model "x-ai/grok-4.7"

More: AI SDK · OpenAI SDK · coding agents.

No terminal? Open the playground and send a first message.

Try in playground

Looking for the full catalog? Browse all models.