{"slug":"qwen3.5-35b-a3b","name":"Qwen3.5-35B-A3B","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-35B-A3B","speed":102,"latency":0.73,"short":"Alibaba's open-weights multimodal model, with a 262k context window and low prices. Its benchmark results mostly sit in the bottom third of the registry.","strengths":["Input costs $0.25 per million tokens, blended $0.69, below the $1.01 median","262k context window and up to 65k tokens per response","Accepts text, image and video, with tool calling and structured output","35th of 194 on intelligence points per dollar"],"weaknesses":["Intelligence index 47.5, 94th of 114, against a median of 59.5","SciCode 29.3%, last of 96; OTIS Mock AIME 70.0%, 87th of 95","LMArena rating 1394.8, 98th of 114, below the median of 1437.6"],"best_for":"Low-cost agents that need long context, image or video input and tool calling, without top benchmark scores.","long":"Qwen3.5-35B-A3B is an open-weights model from Alibaba, released February 2026. Its main appeal is cost and capacity: input at $0.25 per million tokens and a blended price of $0.69, below the registry median of $1.01, with a 262k context window and up to 65k tokens per response. It accepts text, image and video, and supports tool calling, reasoning mode and structured output. It is offered by three providers and sits on the Pydantic AI Gateway.\n\nBenchmark results are weaker. The intelligence index is 47.5, 94th of 114, against a median of 59.5. It ranks 72nd of 94 on GPQA Diamond at 83.5%, and 96th of 96 on SciCode at 29.3%. Its LMArena rating is 1394.8, below the median of 1437.6. The model is most useful where its efficiency ranking, 35th of 194 on intelligence points per dollar, matters more than raw capability.","described":true,"gateway":true,"byok":true,"string":"gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8","input":0.25,"output":2,"cache_read":null,"blended":0.6875,"efficiency":69.1,"bench":{"index":47.5,"gpqa":83.5,"aime":70,"scicode":29.3,"lmarena":1394.8,"eci":144.1},"offers":[{"provider":"doubleword","name":"Doubleword","model_id":"Qwen/Qwen3.5-35B-A3B-FP8","api":["openai"],"input":0.25,"output":2,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":true,"gateway_route":"doubleword","byok":true,"string":null,"gateway_string":"gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8"},{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3.5-35b-a3b","api":["openai"],"input":0.1625,"output":1.3,"cache_read":0.05,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3.5-35b-a3b","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"qwen/qwen3.5-35b-a3b","api":["openai"],"input":0.25,"output":2,"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":91,"popularity":88,"efficiency":35,"speed":39,"price":77},"top_score":0.5902,"about":["Alibaba's open-weights multimodal model, with a 262k context window and low prices. Its benchmark results mostly sit in the bottom third of the registry.","Qwen3.5-35B-A3B is an open-weights model from Alibaba, released February 2026. Its main appeal is cost and capacity: input at $0.25 per million tokens and a blended price of $0.69, below the registry median of $1.01, with a 262k context window and up to 65k tokens per response. It accepts text, image and video, and supports tool calling, reasoning mode and structured output. It is offered by three providers and sits on the Pydantic AI Gateway.","Benchmark results are weaker. The intelligence index is 47.5, 94th of 114, against a median of 59.5. It ranks 72nd of 94 on GPQA Diamond at 83.5%, and 96th of 96 on SciCode at 29.3%. Its LMArena rating is 1394.8, below the median of 1437.6. The model is most useful where its efficiency ranking, 35th of 194 on intelligence points per dollar, matters more than raw capability."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8', 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['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8', 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['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent(\n    'gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8',\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['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8')\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 PYDANTIC_AI_GATEWAY_API_KEY='...'\n\nuvx pax --model 'gateway/doubleword:Qwen/Qwen3.5-35B-A3B-FP8'","soon":true},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport PYDANTIC_AI_GATEWAY_API_KEY='...'\n\ncodex --model 'Qwen/Qwen3.5-35B-A3B-FP8' \\\n  -c model_provider='gateway' \\\n  -c model_providers.gateway.name='Pydantic AI Gateway' \\\n  -c model_providers.gateway.base_url='https://gateway.pydantic.dev/proxy/doubleword/v1' \\\n  -c model_providers.gateway.env_key='PYDANTIC_AI_GATEWAY_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.PYDANTIC_AI_GATEWAY_API_KEY = '...'\n\nconst doubleword = createOpenAICompatible({\n  baseURL: 'https://gateway.pydantic.dev/proxy/doubleword',\n  apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: doubleword('Qwen/Qwen3.5-35B-A3B-FP8'),\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":"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)"},{"id":"eci","name":"Epoch Capabilities Index","unit":"","desc":"Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index","category":"reference","floor":80,"ceiling":180,"url":"https://epoch.ai/benchmarks/eci","credit":"Epoch AI (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}