xai/grok-4.6By xAI.
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://odysseyapi.tech/v1", apiKey: process.env.ODYSSEY_API_KEY,}); const stream = await client.chat.completions.create({ model: "xai/grok-4.6", messages: [ { role: "user", content: "Summarise the attached release notes in three bullet points.", }, ], max_tokens: 1024, stream: true,}); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? "");}Reasoning
Works through multi-step problems before answering.
Vision
Accepts images as input.
Tool use
Calls functions you define and uses their results.
JSON output
Returns output that conforms to a JSON schema.
Long context
Holds 200K tokens or more in a single request.
Last 30 days
You haven't called this model in the last 30 days.
1,500 input and 400 output tokens per request