Skip to content
Try Hanzo
Language: English (United States)

Grok 4.7

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.

Context Window
500K
In
—per million tokens
Out
—per million tokens

xAI

Model IDx-ai/grok-4.7

Specifications

Context Window
500K
Modalities
text
Price
—
Model ID
x-ai/grok-4.7

Quick start

x-ai/grok-4.7

—

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'x-ai/grok-4.7',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →

Use Grok 4.7 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.