~x-aiVision
xAI: Grok Latest
Try in chat →This model always redirects to the latest Grok model from xAI.
Context
500k tokens
Input / 1M tokens
$2
Output / 1M tokens
$6
Benchmark
—
Uptime & performance
Loading…
Pricing
Input tokens$2 per 1M tokens
Output tokens$6 per 1M tokens
Cache read$0.50 per 1M tokens
Cache writeFree per 1M tokens
Apps and activity
Loading…
Technical details
Model ID~x-ai/grok-latest
Context window500k tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
TokenizerRouter
Max output tokens450,000
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://themegabrain.ru/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: '~x-ai/grok-latest',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use xAI: Grok Latest?
Try it in the browser first, then get an API key and start making requests in minutes.