Grok 4.6 API pricing

Call grok-4.6 through RouterPlex's OpenAI-compatible API — vendor list price, 0% markup, billed per token from a prepaid balance. No subscription required.

On cost it sits in the mid-range band of the catalog: the 23rd cheapest of 39 comparable text models, at about $0.26 per 100K-in / 10K-out agent turn — cheaper than 14 others on the same key. Its 500K context window ranks 25th of 39.

Input / 1M tokens
$2.00
Output / 1M tokens
$6.00
Context window
500K
Provider
xAI

Base rate applies below 200K prompt tokens. Prompts at or above 200K are billed at $4 input / $12 output per 1M tokens. Cached prompt tokens are billed at xAI's published $0.50 per 1M rate ($1 in the long-context tier).

Example request costs

These examples apply the published input and output token rates directly. Actual cost depends on the tokens your client sends and the model returns.

Short request
$0.026

10K input + 1K output tokens

Agent turn
$0.26

100K input + 10K output tokens

Long-context rate

Past 200K tokens in a single request, Grok 4.6 bills at $4.00 per 1M input and $12.00 per 1M output — 2.0× more on input than the standard rate. The threshold applies per request, not per conversation.

Cheaper and pricier on the same key.

Every model below runs through the same endpoint and the same API key, so moving between them is a one-line model ID change. Costs are for the same 100K-in / 10K-out turn.

Quality is a separate question from price — see Grok 4.6 benchmark results before optimising on cost alone. Grok 4.6 reads images; for generating them see GPT Image 2 pricing.

Use it in one request.

curl https://api.routerplex.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERPLEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.6",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Works with any OpenAI SDK or tool — just change the base URL. See the quickstart.

Common questions.

How much does the Grok 4.6 API cost?

Through RouterPlex, Grok 4.6 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens — the vendor list price with 0% markup, billed per token from a prepaid balance you top up from $5. Base rate applies below 200K prompt tokens. Prompts at or above 200K are billed at $4 input / $12 output per 1M tokens. Cached prompt tokens are billed at xAI's published $0.50 per 1M rate ($1 in the long-context tier).

What does one Grok 4.6 agent turn cost?

A 100K-token input with a 10K-token reply costs about $0.26 on Grok 4.6. That makes it the 23rd cheapest of 39 comparable text models on RouterPlex, roughly 24.1× the cost of the cheapest option (DeepSeek V4 Flash).

What is a cheaper alternative to Grok 4.6?

Gemini 3.5 Flash from Google is the closest cheaper model on RouterPlex — $0.24 per agent turn against $0.26 for Grok 4.6, at $1.50/1M input and $9.00/1M output. Both run on the same key and the same endpoint, so switching is a one-line model ID change.

Is Grok 4.6 cheaper than Claude Sonnet 5?

Yes. Per agent turn, Grok 4.6 costs about $0.26 against $0.30 for Claude Sonnet 5 — 13% less.

What is the context window of Grok 4.6?

Grok 4.6 supports a 500K token context window on RouterPlex, the 25th largest of the 39 models that publish one.

Can I use Grok 4.6 with the OpenAI SDK?

Yes. RouterPlex serves Grok 4.6 through an OpenAI-compatible endpoint at https://api.routerplex.com/v1 — point any OpenAI SDK or tool at that base URL with your RouterPlex key and set model to "grok-4.6".

More from xAI.

Compare current API prices and context windows before changing the model ID.

Try Grok 4.6 in minutes.

Top up from $5, or see all model pricing and plans.

Get my API key
Grok 4.6 API Pricing · RouterPlex