All models

xAI

Grok 4.6

images

Model id

xai/grok-4.6
Input
$2
per M · $4 at 200K context
Output
$6
per M · $12 at 200K context
Cache read
$0.5
per M tokens
Context
500K
tokens

Registry contract

Capabilities

Protocols
3
Chat · Responses · Messages · streaming
Tools
None
Not supported
JSON Schema
None
Not supported
Vision
Yes
Chat · Responses · Messages
Reasoning
None
No public control
Output limit
Provider
No narrower TokenSpend limit

canonical xai/grok-4.6 · revision xai/grok-4.6 · aliases grok-4.6

Provider list price

Pricing

Input$2 / M tokens
Output$6 / M tokens
Cache read$0.5 / M tokens
From 200K prompt tokens$4 in / $12 out per M$1 cache read
RoutingFree

Provider list price. BYOK bills your provider; managed credits draw down at these rates. No markup or request fee. Every request is metered per engineer and joined to shipped work.

Registry 2026-09-15.1 · effective 9/15/2026 · xAI models and pricing

First request

Run it

Python · TokenSpend SDK

from tokenspend import TokenSpend

client = TokenSpend()
resp = client.chat.completions.create(
    model="xai/grok-4.6",
    messages=[{"role": "user", "content": "hello"}],
)

TypeScript · TokenSpend SDK

import { TokenSpend } from "@tokenspend/sdk";

const client = new TokenSpend();
const resp = await client.chat.completions.create({
  model: "xai/grok-4.6",
  messages: [{ role: "user", content: "hello" }]
});

curl

curl https://api.tokenspend.dev/v1/chat/completions \
  -H "content-type: application/json" \
  -H "Authorization: Bearer $TOKENSPEND_API_KEY" \
  -d '{"model":"xai/grok-4.6","messages":[{"role":"user","content":"hello"}]}'

Claude Code integration

export ANTHROPIC_BASE_URL=https://api.tokenspend.dev
export ANTHROPIC_API_KEY=$TOKENSPEND_API_KEY
export ANTHROPIC_MODEL=xai/grok-4.6

One request shape reaches every model. Claude Code connects as an integration with two environment variables. Prompts are not stored unless you enable request logging.