{"slug":"qwen3.5-27b","name":"Qwen3.5-27B","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2026-02-23","snapshot_of":null,"open":true,"context":262144,"max_output":65536,"knowledge_cutoff":null,"modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3.5-27B","speed":25,"latency":2.34,"short":"Open-weights model from Alibaba, released February 2026, with a 262k context window and image and video input. Its low price stands out, while its two benchmark results sit below the registry median.","strengths":["Open weights with text, image and video input","262k token context window with 65k token responses","Blended price of $0.54 per million tokens, below the $1.01 median","Supports tool calling, reasoning mode and structured output"],"weaknesses":["WebDev Arena rating 1357, 75th of 85 and well below median","LMArena text rating 1409, 89th of 114, below the median","Only two benchmark results and two providers, OpenRouter and Novita"],"best_for":"Low-cost agents needing image or video input, tool calling and long context, where benchmark quality matters less.","long":"Qwen3.5-27B is an open-weights model from Alibaba, released in February 2026. It accepts text, image and video input and supports tool calling, reasoning mode and structured output. Its 262k token context window and 65k token response limit are the main specifications to plan around.\n\nPricing is the clearest advantage. Input costs $0.195 per million tokens and output $1.56, giving a blended rate of about $0.54 against a registry median of $1.01. It ranks 64th of 194 on price and is offered through OpenRouter and Novita only.\n\nBenchmark evidence is thin and weak. It has two results: a WebDev Arena rating of 1357, 75th of 85 and well below the median, and an LMArena text rating of 1409, 89th of 114 and slightly below the median. It ranks 124th of 194 on popularity.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3.5-27b","input":0.195,"output":1.56,"cache_read":null,"blended":0.5363,"efficiency":null,"bench":{"webdev":1357.4,"lmarena":1408.8},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3.5-27b","api":["openai"],"input":0.195,"output":1.56,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3.5-27b","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"qwen/qwen3.5-27b","api":["openai"],"input":0.3,"output":2.4,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null}],"ranks":{"intelligence":null,"popularity":124,"efficiency":null,"speed":173,"price":64},"top_score":0.1571,"about":["Open-weights model from Alibaba, released February 2026, with a 262k context window and image and video input. Its low price stands out, while its two benchmark results sit below the registry median.","Qwen3.5-27B is an open-weights model from Alibaba, released in February 2026. It accepts text, image and video input and supports tool calling, reasoning mode and structured output. Its 262k token context window and 65k token response limit are the main specifications to plan around.","Pricing is the clearest advantage. Input costs $0.195 per million tokens and output $1.56, giving a blended rate of about $0.54 against a registry median of $1.01. It ranks 64th of 194 on price and is offered through OpenRouter and Novita only.","Benchmark evidence is thin and weak. It has two results: a WebDev Arena rating of 1357, 75th of 85 and well below the median, and an LMArena text rating of 1409, 89th of 114 and slightly below the median. It ranks 124th of 194 on popularity."],"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.5-27b', 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.5-27b', 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.5-27b',\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.5-27b')\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.5-27b'","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.5-27b'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3.5-27b' \\\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.5-27b'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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}}