{"slug":"qwen3-coder","name":"Qwen3 Coder 480B A35B","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2025-07-22","snapshot_of":null,"open":true,"context":null,"max_output":65536,"knowledge_cutoff":"2025-04","modalities":["text"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3-Coder-480B-A35B-Instruct","speed":65.5,"latency":0.82,"short":"Open-weight text model from Alibaba, priced below the registry median and ranked low on general intelligence benchmarks. Its main appeal is value for money.","strengths":["Blended price of $0.48 per million tokens, under the $1.01 median","31st of 194 on intelligence index points per dollar","Supports tool calling and structured output","Open weights and a 65k-token maximum response"],"weaknesses":["Intelligence index 38.1, 108th of 114, against a median of 59.5","Terminal-Bench 27.2%, 28th of 35, below the 43.2% median","LMArena text rating 1356.4, 108th of 114"],"best_for":"Low-cost agents running tool-calling or structured-output tasks where raw reasoning quality is less important.","long":"Qwen3 Coder 480B A35B is an open-weight text model from Alibaba, released July 2025. It supports tool calling and structured output but has no reasoning mode. Its context window is not stated, and its output limit is 65k tokens. Only OpenRouter lists it.\n\nIts clearest advantage is price. At $0.30 per million input tokens and $1 per million output tokens, its blended cost of $0.48 is well under the median of about $1.01, and it ranks 31st of 194 on intelligence per dollar. Capability is the trade-off: its intelligence index of 38.1 ranks 108th of 114, against a median of 59.5.\n\nIts Terminal-Bench score of 27.2% ranks 28th of 35, and its LMArena text rating also sits near the bottom. It fits budget workloads where tool use matters more than top reasoning.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3-coder","input":0.3,"output":1,"cache_read":0.1,"blended":0.475,"efficiency":80.2,"bench":{"index":38.1,"terminal":27.2,"webdev":1273.8,"lmarena":1356.4},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3-coder","api":["openai"],"input":0.3,"output":1,"cache_read":0.1,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3-coder","gateway_string":null}],"ranks":{"intelligence":105,"popularity":136,"efficiency":31,"speed":96,"price":61},"top_score":0.4542,"about":["Open-weight text model from Alibaba, priced below the registry median and ranked low on general intelligence benchmarks. Its main appeal is value for money.","Qwen3 Coder 480B A35B is an open-weight text model from Alibaba, released July 2025. It supports tool calling and structured output but has no reasoning mode. Its context window is not stated, and its output limit is 65k tokens. Only OpenRouter lists it.","Its clearest advantage is price. At $0.30 per million input tokens and $1 per million output tokens, its blended cost of $0.48 is well under the median of about $1.01, and it ranks 31st of 194 on intelligence per dollar. Capability is the trade-off: its intelligence index of 38.1 ranks 108th of 114, against a median of 59.5.","Its Terminal-Bench score of 27.2% ranks 28th of 35, and its LMArena text rating also sits near the bottom. It fits budget workloads where tool use matters more than top reasoning."],"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-coder', 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-coder', 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-coder',\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-coder')\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-coder'","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-coder'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3-coder' \\\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-coder'),\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":"terminal","name":"Terminal-Bench","unit":"%","desc":"Tasks completed in a terminal; the best result of any agent using the model","category":"coding","floor":0,"ceiling":100,"url":"https://www.tbench.ai/leaderboard/terminal-bench/2.0","credit":"Terminal-Bench, 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}}