xAI's strongest model to date, built to excel at coding, agentic tasks, and knowledge work and co-developed alongside coding tools for real-world software engineering. Features real-time information access, extended reasoning, and large-context tool use with an OpenAI-compatible API.
Cheapest
OpenRouter
$2.00 / $6.00
OpenRouter, xAI
Sorted by total cost (input + output per 1M tokens). Select a row to view provider details.
| Provider | Pricing (per 1M) | Rate limits | Regions | Health | Latency |
|---|---|---|---|---|---|
In: $2.00Out: $6.00 | 200 RPM / 300K TPM | us-east-1 | Healthy | 0ms | |
In: $2.00Out: $6.00 | 300 RPM / 500K TPM | us-east-1global | Healthy | 0ms |
Use this model via OpenRouter with an OpenAI-compatible SDK.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "x-ai/grok-4.5",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Using OpenRouter API · OpenAI-compatible SDK
Every price recorded for this model, per provider. Prices are per 1M tokens in USD.
No price changes recorded since Jul 9, 2026.
| Date | Provider | Input | Output |
|---|---|---|---|
| Jul 9, 2026Listed · Current | xAI | $2.00 | $6.00 |
| Jul 9, 2026Listed · Current | OpenRouter | $2.00 | $6.00 |