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

Grok Latest

This model always redirects to the latest Grok model from xAI.

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

xAI

Model ID~x-ai/grok-latest

Specifications

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

Quick start

~x-ai/grok-latest

—

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

Use Grok Latest via Hanzo AI

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