Grok 4.6 is SpaceXAI's smartest model to date, with frontier performance across coding, knowledge work, and STEM. It is the current flagship of the Grok line — listed as "Latest" in xAI's own developer docs — and succeeds Grok 4.5 with the same 500K-token context window, the same text / image / file input surface, and the same base pricing. It supports configurable reasoning effort, native tool calling, structured outputs, and the full sampling surface (temperature / top_p / seed / logprobs / penalties), so it drops into existing integrations unchanged. As a first-class OpenAI Responses model on api.x.ai it plugs directly into agent frameworks and tool-calling loops without a translation layer. Pricing is tiered by prompt length: requests above 200K input tokens bill at double the base rate. Use Grok 4.6 as the high-capability tier for complex coding agents, research, and multi-step automation where quality matters more than cost.
OpenAI-compatible — keep the SDK you already use
https://api.orcarouter.ai/v1import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="grok/grok-4.6",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningreasoning_effortresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_p| Input / 1M tokens | $2.00 |
| Output / 1M tokens | $6.00 |
| Cache read / 1M | $0.500 |
| Currency | USD |
Estimate based on list price
Estimate only — actual token counts depend on the provider's tokenizer.
What developers are saying this week
@misc{orcarouter_grok_4_6,
title = {Grok 4.6 API},
author = {SpaceXAI},
year = {2026},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/grok/grok-4.6}
}SpaceXAI. (2026). Grok 4.6 API. OrcaRouter. https://www.orcarouter.ai/models/grok/grok-4.6