xAI · Text
Grok 4.6 API pricing
xai/grok-4.6
Agents & knowledge work. Grok 4.6 by xAI, called through one INFRO key alongside every other model you run. We price it 40% below xAI's direct rate — the same model, the same weights, reached through a different integration.
Pricing
xAI direct
$3.00
per 1M tokens
INFRO
$1.80
per 1M tokens
You save
40%
on every unit
Per-token rates
$1.20 / 1M input tokens·$3.60 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Illustrative launch rates, reconciled against published provider pricing on 2026-08-24. Live rates come from GET /v1/models once your key is active.
Calling Grok 4.6
POST /v1/chat/completionsAt launch — Committed to the first release. In build now, not usable yet.import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="xai/grok-4.6",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is billed at the provider's cached rate, so the discount compounds.
Alternatives for agents & knowledge work
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
Work out what Grok 4.6 would cost you
Put your current spend on this model into the calculator and see the same workload priced here — or have us read your real usage.