Models

Grok 4.6

Model id: xai/grok-4.6

  • Agentic
  • Frontier
  • Coding
  • Reasoning
  • Vision
  • Long context
  • Tools

xAI’s Grok 4.6 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-08-12
Reasoning effort
lowmediumhighxhighDefault: high

Pricing

Input
$3.0846 / 1M
Cached input
$0.7712 / 1M
Output
$9.2539 / 1M

Long-context rate (above 200,000 tokens)

Input
$6.1692 / 1M
Output
$18.5077 / 1M
Cached input
$1.5423 / 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-09-21).

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
99.95% over 7 days
Samples
9,205

View service status

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.6",
      "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.6",
    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.6",
  messages: [{ role: "user", content: "Bonjour" }],
});

Create a key in the portal