{"slug":"grok-4.6","name":"Grok 4.6","family":"xai","family_name":"xAI","developer":"xAI","color":"#5b6470","status":"active","released":"2026-08-12","snapshot_of":null,"open":false,"context":500000,"max_output":500000,"knowledge_cutoff":"2026-02","modalities":["text","image","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":70,"latency":1.81,"short":"Grok 4.6 is a closed-weights model from xAI, released August 2026, with a 500k context window and reasoning mode. It ranks 23rd of 194 on the intelligence index and sits above the registry median on most benchmarks.","strengths":["Intelligence index 69.0, 24th of 114, against a median of 59.5","99.2% on OTIS Mock AIME, 20th of 95","94.0% on GPQA Diamond, 17th of 94","APEX-Agents 65.3%, 17th of 60, against a median of 54.3%"],"weaknesses":["Blended price $3 per million tokens, 132nd of 194 on price","LMArena text rating 1430.1, 66th of 114, just below the median","FrontierMath 66.0%, 38th of 80, roughly at the median"],"best_for":"Agents doing reasoning-heavy, tool-using or long professional tasks where a 500k context and strong benchmark results matter more than cost.","long":"Grok 4.6 is a closed-weights model from xAI, released in August 2026. It accepts text, image and file inputs, supports tool calling, structured output and a reasoning mode, and offers a 500k context window with responses up to 500k tokens. Its knowledge cutoff is February 2026. It is available through xAI and OpenRouter, and is not built into the Pydantic AI Gateway.\n\nOn the registry's composite intelligence index it scores 69.0, placing 24th of 114 and well above the median of 59.5. Its strongest individual results are on maths and science: 99.2% on OTIS Mock AIME and 94.0% on GPQA Diamond, both above the median. It also scores 65.3% on APEX-Agents, which covers long professional tasks, ranking 17th of 60.\n\nThe main drawback is price. A blended cost of $3 per million tokens is well above the registry median of about $1, and it ranks 132nd of 194 on price. Its human-preference result on LMArena text is slightly below the median, and its FrontierMath score is roughly average.","described":true,"gateway":false,"byok":true,"string":"xai:grok-4.6","input":2,"output":6,"cache_read":0.5,"blended":3,"efficiency":23,"bench":{"index":69,"gpqa":94,"aime":99.2,"frontiermath":66,"arc_agi_2":67.1,"simpleqa":49.3,"scicode":56.5,"webdev":1617.6,"apex":65.3,"lmarena":1430.1,"eci":157.8},"offers":[{"provider":"x-ai","name":"xAI","model_id":"grok-4.6","api":["openai"],"input":2,"output":6,"cache_read":0.5,"cache_write":null,"input_tiers":[{"start":199999,"price":4}],"output_tiers":[{"start":199999,"price":12}],"context":500000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"xai:grok-4.6","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"x-ai/grok-4.6","api":["openai"],"input":2,"output":6,"cache_read":0.5,"cache_write":null,"input_tiers":[{"start":200000,"price":4}],"output_tiers":[{"start":200000,"price":12}],"context":500000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:x-ai/grok-4.6","gateway_string":null}],"ranks":{"intelligence":23,"popularity":82,"efficiency":72,"speed":87,"price":132},"top_score":0.6913,"about":["Grok 4.6 is a closed-weights model from xAI, released August 2026, with a 500k context window and reasoning mode. It ranks 23rd of 194 on the intelligence index and sits above the registry median on most benchmarks.","Grok 4.6 is a closed-weights model from xAI, released in August 2026. It accepts text, image and file inputs, supports tool calling, structured output and a reasoning mode, and offers a 500k context window with responses up to 500k tokens. Its knowledge cutoff is February 2026. It is available through xAI and OpenRouter, and is not built into the Pydantic AI Gateway.","On the registry's composite intelligence index it scores 69.0, placing 24th of 114 and well above the median of 59.5. Its strongest individual results are on maths and science: 99.2% on OTIS Mock AIME and 94.0% on GPQA Diamond, both above the median. It also scores 65.3% on APEX-Agents, which covers long professional tasks, ranking 17th of 60.","The main drawback is price. A blended cost of $3 per million tokens is well above the registry median of about $1, and it ranks 132nd of 194 on price. Its human-preference result on LMArena text is slightly below the median, and its FrontierMath score is roughly average."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['XAI_API_KEY'] = '...'\n\nagent = Agent('xai:grok-4.6', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['XAI_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('xai:grok-4.6', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['XAI_API_KEY'] = '...'\n\nagent = Agent(\n    'xai:grok-4.6',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['XAI_API_KEY'] = '...'\n\nagent = Agent('xai:grok-4.6')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export XAI_API_KEY='...'\n\nuvx pax --model 'xai:grok-4.6'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport XAI_API_KEY='...'\n\npi --model 'xai/grok-4.6'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport XAI_API_KEY='...'\n\ncodex --model 'grok-4.6' \\\n  -c model_provider='xai' \\\n  -c model_providers.xai.name='xAI' \\\n  -c model_providers.xai.base_url='https://api.xai.example/v1' \\\n  -c model_providers.xai.env_key='XAI_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/xai\nimport { createXai } from '@ai-sdk/xai'\nimport { generateText } from 'ai'\n\nprocess.env.XAI_API_KEY = '...'\n\nconst xai = createXai({ apiKey: process.env.XAI_API_KEY })\n\nconst { text } = await generateText({\n  model: xai('grok-4.6'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"index","name":"Intelligence index","unit":"","desc":"Our composite of the benchmarks below, 0-100","category":"reference","floor":0,"ceiling":100,"url":"/methodology/","credit":"Pydantic, from the sources credited below"},{"id":"gpqa","name":"GPQA Diamond","unit":"%","desc":"Graduate-level science questions, multiple choice","category":"reasoning","floor":25,"ceiling":97,"url":"https://epoch.ai/benchmarks/gpqa-diamond","credit":"Epoch AI (CC BY 4.0)"},{"id":"aime","name":"OTIS Mock AIME","unit":"%","desc":"Competition mathematics problems with exact answers","category":"reasoning","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks/otis-mock-aime-2024-2025","credit":"Epoch AI (CC BY 4.0)"},{"id":"frontiermath","name":"FrontierMath","unit":"%","desc":"Original research-level mathematics problems, tiers 1 to 3","category":"reasoning","floor":0,"ceiling":95,"url":"https://epoch.ai/frontiermath","credit":"Epoch AI (CC BY 4.0)"},{"id":"arc_agi_2","name":"ARC-AGI-2","unit":"%","desc":"Abstract visual puzzles that test learning a new rule from a few examples","category":"reasoning","floor":0,"ceiling":100,"url":"https://arcprize.org/leaderboard","credit":"ARC Prize, via Epoch AI (CC BY 4.0)"},{"id":"simpleqa","name":"SimpleQA Verified","unit":"%","desc":"Short factual questions answered from memory, without search","category":"reasoning","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks/simpleqa-verified","credit":"Epoch AI (CC BY 4.0)"},{"id":"scicode","name":"SciCode","unit":"%","desc":"Scientific programming problems written by researchers","category":"coding","floor":0,"ceiling":100,"url":"https://scicode-bench.github.io/","credit":"SciCode, via Epoch AI (CC BY 4.0)"},{"id":"webdev","name":"WebDev Arena","unit":"","desc":"Rating from human votes on web apps the models built","category":"coding","floor":1000,"ceiling":1900,"url":"https://web.lmarena.ai/leaderboard","credit":"LMArena, via Epoch AI (CC BY 4.0)"},{"id":"apex","name":"APEX-Agents","unit":"%","desc":"Long professional tasks (banking, consulting, law) passed on the first attempt","category":"agents","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks","credit":"Mercor, via Epoch AI (CC BY 4.0)"},{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"},{"id":"eci","name":"Epoch Capabilities Index","unit":"","desc":"Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index","category":"reference","floor":80,"ceiling":180,"url":"https://epoch.ai/benchmarks/eci","credit":"Epoch AI (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}