{"slug":"qwen3.8-omni-flash","name":"Qwen3.8 Omni Flash","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2026-09-17","snapshot_of":null,"open":false,"context":1000000,"max_output":131072,"knowledge_cutoff":null,"modalities":["text","image","audio","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":42,"latency":2.11,"short":"A closed, low-cost multimodal model from Alibaba, accepting text, image, audio and video with a 1M-token context. It has no benchmark results in the registry.","strengths":["Accepts text, image, audio and video input in one model","1M-token context window","Blended price of $0.23 per million tokens, well below the $1.01 median","Supports tool calling, reasoning mode and structured output"],"weaknesses":["No benchmark results, so capability cannot be compared with other models","Available from a single provider, OpenRouter","Ranks 89th of 194 for popularity"],"best_for":"Cost-sensitive agents that process mixed media input and need long context, provided the quality is verified on their own tasks.","long":"Qwen3.8 Omni Flash is a closed-weight model from Alibaba, released in September 2026. Its main appeal is price: input costs $0.15 per million tokens and output $0.47, giving a blended rate of $0.23 per million tokens against a registry median of about $1.01, and it ranks 30th of 194 on price. It accepts text, image, audio and video, which is broader than most text-first models, and it offers a 1M-token context window with responses up to 131k tokens.\n\nThe model supports tool calling, reasoning mode and structured output, so it can sit inside agent loops that call functions or return typed data. Its knowledge cutoff is not stated in the registry.\n\nThe registry holds no benchmark results for this model, so its quality cannot be ranked against others, and the intelligence-per-dollar figure is also unavailable. It is offered only through OpenRouter and is not built into the Pydantic AI Gateway. Anyone choosing it should test it on their own workload before relying on it.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3.8-omni-flash","input":0.15,"output":0.47,"cache_read":0.016,"blended":0.23,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3.8-omni-flash","api":["openai"],"input":0.15,"output":0.47,"cache_read":0.016,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3.8-omni-flash","gateway_string":null}],"ranks":{"intelligence":null,"popularity":89,"efficiency":null,"speed":142,"price":30},"top_score":0.2405,"about":["A closed, low-cost multimodal model from Alibaba, accepting text, image, audio and video with a 1M-token context. It has no benchmark results in the registry.","Qwen3.8 Omni Flash is a closed-weight model from Alibaba, released in September 2026. Its main appeal is price: input costs $0.15 per million tokens and output $0.47, giving a blended rate of $0.23 per million tokens against a registry median of about $1.01, and it ranks 30th of 194 on price. It accepts text, image, audio and video, which is broader than most text-first models, and it offers a 1M-token context window with responses up to 131k tokens.","The model supports tool calling, reasoning mode and structured output, so it can sit inside agent loops that call functions or return typed data. Its knowledge cutoff is not stated in the registry.","The registry holds no benchmark results for this model, so its quality cannot be ranked against others, and the intelligence-per-dollar figure is also unavailable. It is offered only through OpenRouter and is not built into the Pydantic AI Gateway. Anyone choosing it should test it on their own workload before relying on it."],"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-omni-flash', 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-omni-flash', 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-omni-flash',\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-omni-flash')\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-omni-flash'","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-omni-flash'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3.8-omni-flash' \\\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.8-omni-flash'),\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}}