Published: · Updated:
Exact ID: grok-4.6. Models available to your key: GET /v1/models.
Grok 4.6 API pricing
| API429 price | Official xAI price (Standard) |
|---|---|
$0.150000000000 / 1,000,000 cached input tokens · Context up to 199,999 tokens inclusive $0.300000000000 / 1,000,000 cached input tokens · Context over 199,999 tokens $0.600000000000 / 1,000,000 input tokens · Context up to 199,999 tokens inclusive $1.200000000000 / 1,000,000 input tokens · Context over 199,999 tokens $1.800000000000 / 1,000,000 output tokens · Context up to 199,999 tokens inclusive $3.600000000000 / 1,000,000 output tokens · Context over 199,999 tokens | $2 / $6 per 1M ordinary input / output tokens Global Standard; input <200,000 tokens Manufacturer sourceChecked: Oct 24, 2026. Cache, tools and special modes are excluded from this rate pair. |
API429 prices as of the catalog dated .
Cost calculator for Grok 4.6
Ordinary input and output are counted, excluding cache, tools, fees and repeated calls. This estimates spending; it does not validate whether a request is accepted. RUB results use only your entered rate; they are neither a bank quote nor a top-up amount.
Context and capabilities of Grok 4.6
The manufacturer specifies a shared context window of 500,000 tokens; no separate numeric text output limit is stated for its own API (specification: xAI, checked Oct 24, 2026, 6:11 AM UTC). These are manufacturer limits, not verified effective API429 limits: test very long contexts on your own request.
API429 capabilities published for this exact ID: chat function_calling multimodal_input reasoning structured_output vision . Test any mode missing from this list on your own request.
Practical task: planning a long coding and knowledge task
Separate the system description from the observed defect and unknown information. Request a verification plan with stopping criteria. For a long response, impose your own small budget and inspect completion: the absence of a separate numerical output cap in documentation does not mean an infinite response or unlimited spending.
Exact version and lifecycle
The release date is August 12, 2026. The model page establishes a 500,000-token context window, while release notes explicitly state there is no text output limit. Both sources are needed together: no separate numerical output maximum is established and one should not be invented.
Context, output and ordinary token budget
According to xAI documentation reviewed on 2026-10-24, the manufacturer shared context window is 500,000 tokens. No separate numerical output maximum is established; retain the shared-window constraint and your own max_tokens budget. Global Standard is $2/$6 per million input/output tokens when input is strictly below 200,000 tokens. At 200,000 and above, $4/$12 applies to the entire request. This boundary differs from Google’s inclusive lower tier, so reuse the condition rather than a rounded label.
Alternatives for a controlled comparison
claude-fable-5 is a candidate for research document synthesis. claude-opus-4-8 is a candidate for an established bug-fixing workflow. gemini-2.5-pro is a candidate for long-document extraction.
Speed and errors of Grok 4.6 over 24 hours
There are no fresh observations with confirmed traffic for this model. This does not mean zero latency or prove an absence of errors.
Source: public 24-hour statistics. The mean is neither a median nor a response time guarantee.
How to connect Grok 4.6: curl, Python, JavaScript
Create a key, check your balance and set API429_API_KEY on the server. The request is paid from your balance; Python and JavaScript first check that the model is available to your key.
curl
Before generation, check the exact ID in the response from GET https://gateway.api429.com/v1/models using the same Bearer key.
curl --fail-with-body https://gateway.api429.com/v1/chat/completions \
-H "Authorization: Bearer $API429_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.6","messages":[{"role":"user","content":"System: three services read a shared queue; after a failure some jobs repeat. Create a diagnostic plan, separate facts from hypotheses and give a stopping criterion for each step."}],"max_tokens":512,"stream":false}'Python 3
import json
import os
import urllib.request
key = os.environ["API429_API_KEY"]
base = "https://gateway.api429.com/v1"
headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json"}
models_request = urllib.request.Request(base + "/models", headers=headers)
with urllib.request.urlopen(models_request, timeout=30) as response:
available = {item["id"] for item in json.load(response)["data"]}
model = "grok-4.6"
if model not in available:
raise ValueError("Model is unavailable to this key")
payload = json.loads("{\"model\":\"grok-4.6\",\"messages\":[{\"role\":\"user\",\"content\":\"System: three services read a shared queue; after a failure some jobs repeat. Create a diagnostic plan, separate facts from hypotheses and give a stopping criterion for each step.\"}],\"max_tokens\":512,\"stream\":false}")
request = urllib.request.Request(base + "/chat/completions",
data=json.dumps(payload).encode("utf-8"), headers=headers, method="POST")
with urllib.request.urlopen(request, timeout=60) as response:
result = json.load(response)
choice = result["choices"][0]
if choice.get("finish_reason") != "stop" or not choice.get("message", {}).get("content"):
raise ValueError("Incomplete or empty response")
print(choice["message"]["content"])
print(result.get("usage"))JavaScript: Node.js 18+
const key = process.env.API429_API_KEY;
if (!key) throw new Error("Set API429_API_KEY");
const base = "https://gateway.api429.com/v1";
const headers = { Authorization: "Bearer " + key, "Content-Type": "application/json" };
const model = "grok-4.6";
const available = await fetch(base + "/models", { headers, signal: AbortSignal.timeout(30000) });
if (!available.ok) throw new Error("Models HTTP " + available.status);
if (!(await available.json()).data.some(item => item.id === model)) throw new Error("Model unavailable to this key");
const response = await fetch(base + "/chat/completions", {
method: "POST", headers, signal: AbortSignal.timeout(60000),
body: JSON.stringify({"model":"grok-4.6","messages":[{"role":"user","content":"System: three services read a shared queue; after a failure some jobs repeat. Create a diagnostic plan, separate facts from hypotheses and give a stopping criterion for each step."}],"max_tokens":512,"stream":false})
});
if (!response.ok) throw new Error("Generation HTTP " + response.status);
const result = await response.json();
const choice = result.choices?.[0];
if (choice?.finish_reason !== "stop" || !choice?.message?.content) throw new Error("Incomplete or empty response");
console.log(choice.message.content);
console.log(result.usage);The examples use basic fields from the published API contract.
Grok 4.6 in n8n: HTTP Request
- Create an HTTP Request with method POST and URL
https://gateway.api429.com/v1/chat/completions. - Store the Bearer key in credentials; add
Content-Type: application/json. Do not put the key in an exported workflow example. - Send the JSON from curl: the exact model
grok-4.6, messages, max_tokens and stream=false. - After the HTTP node, check
choices,finish_reasonand the response content before writing the result to your production system.
Alternatives to Grok 4.6: similar models and prices
Compare them on the same task. Prices apply to a short text request; see the catalog for full pricing.
| Model | API429: input / output per 1M tokens |
|---|---|
Claude Fable 5claude-fable-5 | $3 / $15 |
Claude Opus 4.8claude-opus-4-8 | $1.5 / $7.5 |
Gemini 2.5 Progemini-2.5-pro | $0.375 / $3 |
Version and release date
Manufacturer API release date, xAI: . The exact predecessor has not been established in the reviewed sources.
Payment and a $10 test
- Russian bank card. Top up your balance in the account.
- Invoice for companies. Bank transfer with closing documents.
- USDT and TON. Top up in crypto.
$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot
Frequently asked questions
Does no separate output cap mean an infinite response?
No. Release notes explicitly describe no text output limit, while the model page retains a 500,000-token shared window. Input and output must still fit that window. Your own max_tokens budget and completion check remain necessary for managing a long diagnostic task.
Which sources establish the Grok 4.6 limits?
Two sources are required: the exact grok-4.6 model page for context and release notes for the absence of a separate text-output cap. A missing numerical value alone is not evidence. Do not transfer this exception to Grok 4.5 or another model without separate primary-source confirmation.
Why does exactly 200,000 use the higher tier?
According to xAI documentation reviewed on 2026-10-24, for Global Standard, $2/$6 per million input/output tokens applies strictly below 200,000 input tokens. At 200,000, $4/$12 applies to the entire request. Do not copy Gemini’s inclusive condition: equal round-number thresholds can still have different boundaries across manufacturers.
How should I evaluate the repeated-jobs diagnostic plan?
Check the separation of facts, hypotheses and measurements. Each hypothesis should have an observation and stopping criterion rather than an unsupported declaration of cause. The absence of a separate numerical output cap does not make a longer plan better; assess whether its steps can be performed and falsified.
Sources and review
- docs.x.ai/developers/models/grok-4.6
- docs.x.ai/developers/pricing
- docs.x.ai/developers/release-notes
- gateway.api429.com/api/public/openapi.json
Editorial review: . Pricing and general calculator · Getting started · Compare the family: Grok
