{"slug":"qwen3.8-2.4t-a95b","name":"Qwen3.8 2.4T A95B","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2026-08-12","snapshot_of":null,"open":true,"context":1048576,"max_output":65536,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3.8-2.4T-A95B","speed":53,"latency":1.86,"short":"Open-weight text model from Alibaba with a very large context window. It has no benchmark results, so it is described here by its specifications and price.","strengths":["1M-token context window and output of up to 64k tokens","Supports tool calling, structured output and a reasoning mode","Open weights, served by Novita, OpenRouter and Together AI","Popularity rank of 95 of 194 in the registry"],"weaknesses":["No benchmark results, so no measured quality comparison with other models","Blended price of $3 per million tokens, about triple the registry median","Accepts text input only, with no other modalities"],"best_for":"Long-context agents that call tools and need structured output, after the team runs its own evaluations on its tasks.","long":"Qwen3.8 2.4T A95B is an open-weight text model from Alibaba, released in August 2026. Its main specifications are a 1M-token context window, output of up to 64k tokens, and support for tool calling, structured output and a reasoning mode. Input is limited to text.\n\nThe registry holds no benchmark results for this model, so there is no measured evidence of how it compares on quality with other models. It costs $2 per million input tokens and $6 per million output tokens, a blended $3 against a registry median near $1, which puts it toward the expensive end of the listed models.\n\nIt is served by Novita, OpenRouter and Together AI, and it ranks 95 of 194 on popularity. Its knowledge cutoff is not recorded. Teams weighing it should run their own evaluations on the tasks they care about before committing.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3.8-2.4t-a95b","input":2,"output":6,"cache_read":0.25,"blended":3,"efficiency":null,"bench":{},"offers":[{"provider":"novita","name":"Novita","model_id":"qwen/qwen3.8-2.4t-a95b","api":["openai"],"input":2,"output":6,"cache_read":0.25,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3.8-2.4t-a95b","api":["openai"],"input":2,"output":6,"cache_read":0.25,"cache_write":2.5,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3.8-2.4t-a95b","gateway_string":null},{"provider":"together","name":"Together AI","model_id":"Qwen/Qwen3.8-2.4T-A95B","api":["openai"],"input":2,"output":6,"cache_read":0.5,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"together:Qwen/Qwen3.8-2.4T-A95B","gateway_string":null}],"ranks":{"intelligence":null,"popularity":95,"efficiency":null,"speed":118,"price":132},"top_score":0.2262,"about":["Open-weight text model from Alibaba with a very large context window. It has no benchmark results, so it is described here by its specifications and price.","Qwen3.8 2.4T A95B is an open-weight text model from Alibaba, released in August 2026. Its main specifications are a 1M-token context window, output of up to 64k tokens, and support for tool calling, structured output and a reasoning mode. Input is limited to text.","The registry holds no benchmark results for this model, so there is no measured evidence of how it compares on quality with other models. It costs $2 per million input tokens and $6 per million output tokens, a blended $3 against a registry median near $1, which puts it toward the expensive end of the listed models.","It is served by Novita, OpenRouter and Together AI, and it ranks 95 of 194 on popularity. Its knowledge cutoff is not recorded. Teams weighing it should run their own evaluations on the tasks they care about before committing."],"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.8-2.4t-a95b', 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.8-2.4t-a95b', 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.8-2.4t-a95b',\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.8-2.4t-a95b')\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.8-2.4t-a95b'","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.8-2.4t-a95b'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3.8-2.4t-a95b' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='Novita' \\\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.8-2.4t-a95b'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}