{"slug":"grok-4.3","name":"Grok 4.3","family":"xai","family_name":"xAI","developer":"xAI","color":"#5b6470","status":"active","released":"2026-04-17","snapshot_of":null,"open":false,"context":1000000,"max_output":30000,"knowledge_cutoff":null,"modalities":["text","image","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":77,"latency":1.2,"short":"Closed-weight xAI model with a 1M-token context window, image and file input, and tool calling. Most of its benchmark results sit below the registry median.","strengths":["1M-token context window with up to 30k-token responses","Accepts text, image and file inputs","Supports tool calling, structured output and reasoning mode","Intelligence points per dollar rank 60th of 194"],"weaknesses":["Intelligence index 52.2, 84th of 114, below the 59.5 median","Blended price $1.56 per million tokens, above the $1.01 median","LMArena text rating 1396.8, 96th of 114"],"best_for":"Agents that need long context, image or file input, and tool calling at a moderate price.","long":"Grok 4.3 is a closed-weight model from xAI, released in April 2026 and offered through xAI and OpenRouter. Its main draw is the 1M-token context window and 30k-token response limit, alongside text, image and file inputs, tool calling, structured output and a reasoning mode. No knowledge cutoff is listed.\n\nOn benchmarks it mostly trails the registry. Its intelligence index is 52.2 against a median of 59.5, ranking 84th of 114. Results on GPQA Diamond and OTIS Mock AIME are close to the median, while SimpleQA Verified, FrontierMath and WebDev Arena sit well below it. Its LMArena text rating is near the bottom.\n\nPricing is above the median at $1.25 per million input tokens and $2.50 per million output tokens, or $1.56 blended. Its efficiency rank of 60th of 194 is better than its raw intelligence rank, so its value is middling rather than weak.","described":true,"gateway":false,"byok":true,"string":"xai:grok-4.3","input":1.25,"output":2.5,"cache_read":0.2,"blended":1.5625,"efficiency":33.4,"bench":{"index":52.2,"gpqa":88.8,"aime":93.3,"frontiermath":42.8,"simpleqa":33.2,"scicode":48.3,"webdev":1357.2,"lmarena":1396.8},"offers":[{"provider":"x-ai","name":"xAI","model_id":"grok-4.3","api":["openai"],"input":1.25,"output":2.5,"cache_read":0.2,"cache_write":null,"input_tiers":[{"start":199999,"price":2.5}],"output_tiers":[{"start":199999,"price":5}],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"xai:grok-4.3","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"x-ai/grok-4.3","api":["openai"],"input":1.25,"output":2.5,"cache_read":0.2,"cache_write":null,"input_tiers":[{"start":200000,"price":2.5}],"output_tiers":[{"start":200000,"price":5}],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:x-ai/grok-4.3","gateway_string":null}],"ranks":{"intelligence":81,"popularity":93,"efficiency":60,"speed":73,"price":113},"top_score":0.5704,"about":["Closed-weight xAI model with a 1M-token context window, image and file input, and tool calling. Most of its benchmark results sit below the registry median.","Grok 4.3 is a closed-weight model from xAI, released in April 2026 and offered through xAI and OpenRouter. Its main draw is the 1M-token context window and 30k-token response limit, alongside text, image and file inputs, tool calling, structured output and a reasoning mode. No knowledge cutoff is listed.","On benchmarks it mostly trails the registry. Its intelligence index is 52.2 against a median of 59.5, ranking 84th of 114. Results on GPQA Diamond and OTIS Mock AIME are close to the median, while SimpleQA Verified, FrontierMath and WebDev Arena sit well below it. Its LMArena text rating is near the bottom.","Pricing is above the median at $1.25 per million input tokens and $2.50 per million output tokens, or $1.56 blended. Its efficiency rank of 60th of 194 is better than its raw intelligence rank, so its value is middling rather than weak."],"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.3', 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.3', 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.3',\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.3')\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.3'","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.3'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport XAI_API_KEY='...'\n\ncodex --model 'grok-4.3' \\\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.3'),\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":"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":"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)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}