{"slug":"qwen3-coder-next","name":"Qwen3 Coder Next","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2026-02-03","snapshot_of":null,"open":true,"context":null,"max_output":235929,"knowledge_cutoff":"2025-09","modalities":["text"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3-Coder-Next","speed":43,"latency":0.83,"short":"An open-weights text model from Alibaba, released February 2026, priced well below the registry median. Its one benchmark result is weak, and its context window is not listed.","strengths":["Blended price of $0.29 per million tokens, well below the $1.01 median","Open weights, with tool calling and structured output supported","Ranks 44th of 194 for price, where 1 is the cheapest"],"weaknesses":["SciCode score of 36.2%, 90th of 96 and below the 50.2% median","Only one benchmark result, so capability is hard to judge","Accepts text only, has no reasoning mode, and lists no context window"],"best_for":"Low-cost coding and tool-calling agents where scientific programming accuracy is not critical.","long":"Qwen3 Coder Next is an open-weights model from Alibaba, released in February 2026 and offered through OpenRouter only. Its main appeal is price: a blended cost of $0.29 per million tokens is well below the registry median of about $1.01, and it ranks 44th of 194 for price. It accepts text only and has no reasoning mode, but it supports tool calling and structured output.\n\nThe benchmark picture is thin. Its single result, SciCode at 36.2%, places 90th of 96 and sits below the registry median of 50.2%, so scientific programming is a clear weak spot. The context window is not listed, though the largest response is about 235k tokens.\n\nPopularity ranks 103rd of 194, and the knowledge cutoff is September 2025. The model suits cheap coding and tool-using agents, while tasks needing strong scientific code should be tested before adoption.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3-coder-next","input":0.12,"output":0.8,"cache_read":0.07,"blended":0.29,"efficiency":null,"bench":{"scicode":36.2},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3-coder-next","api":["openai"],"input":0.12,"output":0.8,"cache_read":0.07,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3-coder-next","gateway_string":null}],"ranks":{"intelligence":null,"popularity":103,"efficiency":null,"speed":138,"price":44},"top_score":0.2071,"about":["An open-weights text model from Alibaba, released February 2026, priced well below the registry median. Its one benchmark result is weak, and its context window is not listed.","Qwen3 Coder Next is an open-weights model from Alibaba, released in February 2026 and offered through OpenRouter only. Its main appeal is price: a blended cost of $0.29 per million tokens is well below the registry median of about $1.01, and it ranks 44th of 194 for price. It accepts text only and has no reasoning mode, but it supports tool calling and structured output.","The benchmark picture is thin. Its single result, SciCode at 36.2%, places 90th of 96 and sits below the registry median of 50.2%, so scientific programming is a clear weak spot. The context window is not listed, though the largest response is about 235k tokens.","Popularity ranks 103rd of 194, and the knowledge cutoff is September 2025. The model suits cheap coding and tool-using agents, while tasks needing strong scientific code should be tested before adoption."],"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-next', 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-next', 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-next',\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-next')\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-next'","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-next'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3-coder-next' \\\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-next'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}