{"slug":"qwen3-235b-a22b-thinking-2507","name":"Qwen3 235B A22B Thinking 2507","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2025-07-25","snapshot_of":null,"open":true,"context":null,"max_output":16384,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":false,"huggingface":"Qwen/Qwen3-235B-A22B-Thinking-2507","speed":21,"latency":0.91,"short":"A text-only open-weights reasoning model from Alibaba, released July 2025, with tool calling. Its main appeal is value, while its benchmark scores mostly sit below the registry median.","strengths":["Open weights, released by Alibaba in July 2025","Supports tool calling and reasoning mode","48th of 194 on intelligence points per dollar","Input costs $0.45 per million tokens"],"weaknesses":["Intelligence index 53.6 against a median of 59.5, 75th of 114","GPQA Diamond 80.1%, 80th of 94","Blended price $1.21 per million tokens, above the $1.01 median"],"best_for":"Budget text agents needing tool calling and reasoning, where open weights matter more than top benchmark scores.","long":"Qwen3 235B A22B Thinking 2507 is an open-weights model from Alibaba, released July 2025. It accepts text only and supports tool calling and reasoning mode, but not structured output. Its context window is not listed, and it is offered through one provider, OpenRouter.\n\nIts main advantage is value. Input costs $0.45 per million tokens and output $3.50, giving 48th of 194 on intelligence points per dollar. Its blended price of $1.21 sits above the median, and its intelligence index of 53.6 is below the median of 59.5.\n\nMost individual benchmarks rank in the lower half. It scores 80.1% on GPQA Diamond, 80th of 94, and 41.4% on SciCode, 76th of 96. Teams that need top reasoning scores should look elsewhere.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3-235b-a22b-thinking-2507","input":0.45,"output":3.5,"cache_read":null,"blended":1.2125,"efficiency":44.2,"bench":{"index":53.6,"gpqa":80.1,"aime":86.7,"simpleqa":40.4,"scicode":41.4,"lmarena":1415.3},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3-235b-a22b-thinking-2507","api":["openai"],"input":0.45,"output":3.5,"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-thinking-2507","gateway_string":null}],"ranks":{"intelligence":72,"popularity":167,"efficiency":48,"speed":175,"price":102},"top_score":0.4235,"about":["A text-only open-weights reasoning model from Alibaba, released July 2025, with tool calling. Its main appeal is value, while its benchmark scores mostly sit below the registry median.","Qwen3 235B A22B Thinking 2507 is an open-weights model from Alibaba, released July 2025. It accepts text only and supports tool calling and reasoning mode, but not structured output. Its context window is not listed, and it is offered through one provider, OpenRouter.","Its main advantage is value. Input costs $0.45 per million tokens and output $3.50, giving 48th of 194 on intelligence points per dollar. Its blended price of $1.21 sits above the median, and its intelligence index of 53.6 is below the median of 59.5.","Most individual benchmarks rank in the lower half. It scores 80.1% on GPQA Diamond, 80th of 94, and 41.4% on SciCode, 76th of 96. Teams that need top reasoning scores should look elsewhere."],"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-thinking-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-thinking-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-thinking-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-thinking-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-thinking-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-thinking-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-thinking-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-thinking-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":"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":"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":"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}}