x-aiVision
xAI: Grok 4.5
Grok 4.5 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.
Context
500k tokens
Input / 1M tokens
$2
Output / 1M tokens
$6
Benchmark
—
Pricing
Input tokens$2 per 1M tokens
Output tokens$6 per 1M tokens
Cache read$0.50 per 1M tokens
Technical details
Model IDx-ai/grok-4.5
Context window500k tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
TokenizerGrok
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'x-ai/grok-4.5',
messages: [{ role: 'user', content: 'Hello!' }],
})