{"slug":"qwen3-235b-a22b-2507","name":"Qwen3 235B A22B Instruct 2507","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2025-07-21","snapshot_of":null,"open":true,"context":null,"max_output":117964,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3-235B-A22B-Instruct-2507","speed":22,"latency":0.74,"short":"An open-weight text model from Alibaba, released July 2025, in the low price tier. It is cheap to run, but its few benchmark results are weak.","strengths":["Blended price of $0.21 per million tokens, 28th cheapest of 194","Supports tool calling and structured output","Open weights","Responses can run to 118k tokens"],"weaknesses":["1.2% on ARC-AGI-2, 67th of 68 against a 61.3% median","1419 on LMArena text, 77th of 114, just below the 1438 median","Available only through OpenRouter"],"best_for":"Low-cost, high-volume text tasks with tool calling or structured output, where benchmark-level reasoning is not required.","long":"Qwen3 235B A22B Instruct 2507 is an open-weight text model from Alibaba, released July 2025. It accepts text only and supports tool calling and structured output, but has no reasoning mode. The registry does not list its context window, though it can return responses up to 118k tokens.\n\nPrice is its main draw. Input costs $0.09 per million tokens and output $0.55, giving a blended rate of about $0.21 against a registry median near $1.01. That places it 28th of 194 for price, and 81st of 194 for popularity.\n\nBenchmark evidence is thin, with only two results. It scores 1.2% on ARC-AGI-2, 67th of 68 and far below the median of 61.3%. On LMArena text it reaches 1419, 77th of 114 and slightly under the median of 1438. Its only listed provider is OpenRouter.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3-235b-a22b-2507","input":0.09,"output":0.55,"cache_read":null,"blended":0.205,"efficiency":null,"bench":{"arc_agi_2":1.2,"lmarena":1419.2},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3-235b-a22b-2507","api":["openai"],"input":0.09,"output":0.55,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3-235b-a22b-2507","gateway_string":null}],"ranks":{"intelligence":null,"popularity":81,"efficiency":null,"speed":174,"price":28},"top_score":0.2595,"about":["An open-weight text model from Alibaba, released July 2025, in the low price tier. It is cheap to run, but its few benchmark results are weak.","Qwen3 235B A22B Instruct 2507 is an open-weight text model from Alibaba, released July 2025. It accepts text only and supports tool calling and structured output, but has no reasoning mode. The registry does not list its context window, though it can return responses up to 118k tokens.","Price is its main draw. Input costs $0.09 per million tokens and output $0.55, giving a blended rate of about $0.21 against a registry median near $1.01. That places it 28th of 194 for price, and 81st of 194 for popularity.","Benchmark evidence is thin, with only two results. It scores 1.2% on ARC-AGI-2, 67th of 68 and far below the median of 61.3%. On LMArena text it reaches 1419, 77th of 114 and slightly under the median of 1438. Its only listed provider is OpenRouter."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:qwen/qwen3-235b-a22b-2507', 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['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:qwen/qwen3-235b-a22b-2507', 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['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:qwen/qwen3-235b-a22b-2507',\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['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:qwen/qwen3-235b-a22b-2507')\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 OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:qwen/qwen3-235b-a22b-2507'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/qwen/qwen3-235b-a22b-2507'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3-235b-a22b-2507' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('qwen/qwen3-235b-a22b-2507'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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":"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}}