Models
Grok 4.5
Model id: xai/grok-4.5
- Agentic
- Frontier
- Coding
- Reasoning
- Vision
- Long context
- Tools
xAI’s Grok 4.5 flagship for agentic coding, engineering, and knowledge work.
Best for
IDE agents, multi-step tool use, and everyday coding at a strong price.
- Provider
- xAI
- Context window
- 500,000
- Release date
- 2026-07-08
- Reasoning effort
- lowmediumhighDefault: high
Pricing
Input
$3.0864 / 1M
Output
$9.2591 / 1M
Cached input
$0.463 / 1M
Long-context rate (above 200,000 tokens)
Input
$6.1728 / 1M
Output
$18.5183 / 1M
Cached input
$0.9259 / 1M
Web search
Per successful search
$0.0077 / search
Billed on top of tokens when the model uses web search.
Amounts in Canadian dollars, converted at the Bank of Canada indicative rate (2026-07-31).
Performance
Reading
Last 7 days
Not enough data to display the chart.
Activity
Tokens
—
—
—
—
—
Top 5 tools · last 7 days
Not enough data to display tool activity.
Availability
Availability (%)
Last 7 days
- Operational probes
- 100% over 7 days
- Samples
- 8,608
Quick start
Call the API with a tonia_ key and the exact model id below.
curl
curl https://pass.tonia.ca:8443/v1/chat/completions \
-H "Authorization: Bearer $TONIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-4.5",
"messages": [{"role":"user","content":"Bonjour"}]
}'Python (OpenAI SDK)
import os
from openai import OpenAI
client = OpenAI(
base_url="https://pass.tonia.ca:8443/v1",
api_key=os.environ["TONIA_API_KEY"],
)
response = client.chat.completions.create(
model="xai/grok-4.5",
messages=[{"role": "user", "content": "Bonjour"}],
)TypeScript (OpenAI SDK)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://pass.tonia.ca:8443/v1",
apiKey: process.env.TONIA_API_KEY,
});
const response = await client.chat.completions.create({
model: "xai/grok-4.5",
messages: [{ role: "user", content: "Bonjour" }],
});