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

Grok 4.6

Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.

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

xAI

Model IDx-ai/grok-4.6

Specifications

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

Quick start

x-ai/grok-4.6

—

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.6',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →

Use Grok 4.6 via Hanzo AI

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