{"slug":"qwen3-30b-a3b-instruct-2507","name":"Qwen3 30B A3B Instruct 2507","family":"qwen","family_name":"Qwen","developer":"Alibaba","color":"#ff6a00","status":"active","released":"2025-07-28","snapshot_of":null,"open":true,"context":null,"max_output":235929,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"Qwen/Qwen3-30B-A3B-Instruct-2507","speed":37.5,"latency":0.72,"short":"An open-weights text model from Alibaba in the low-cost tier, with tool calling and structured output. Its intelligence and benchmark results sit near the bottom of the registry.","strengths":["Blended price of $0.14 per million tokens, far below the $1.01 median","Sixth of 194 on intelligence points per dollar","Supports tool calling and structured output","Open weights published by Alibaba"],"weaknesses":["Intelligence index of 41.2, 106th of 114, against a median of 59.5","55.6% on GPQA Diamond, last of 94 models tested","Only one provider, OpenRouter, and no context window listed"],"best_for":"High-volume, low-cost tasks such as extraction and classification with tool calls, where hard reasoning is not needed.","long":"Qwen3 30B A3B Instruct 2507 is an open-weights text model from Alibaba, released July 2025. Its main appeal is cost: $0.09 per million input tokens and $0.30 per million output, and it ranks sixth of 194 on intelligence points per dollar. It supports tool calling and structured output but has no reasoning mode.\n\nIts benchmarks trail the registry. The intelligence index is 41.2 against a median of 59.5, 106th of 114, and it ranks last of 94 on GPQA Diamond at 55.6%. Its LMArena rating is also below the median. No context window is listed, and it is offered only through OpenRouter.\n\nIt suits high-volume work where price matters more than hard reasoning, such as simple extraction or classification. Difficult science and math problems are likely to expose its scores.","described":true,"gateway":false,"byok":true,"string":"openrouter:qwen/qwen3-30b-a3b-instruct-2507","input":0.09,"output":0.3,"cache_read":null,"blended":0.1425,"efficiency":289.1,"bench":{"index":41.2,"gpqa":55.6,"aime":62.2,"lmarena":1383.7},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"qwen/qwen3-30b-a3b-instruct-2507","api":["openai"],"input":0.09,"output":0.3,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:qwen/qwen3-30b-a3b-instruct-2507","gateway_string":null}],"ranks":{"intelligence":103,"popularity":108,"efficiency":6,"speed":158,"price":13},"top_score":0.5511,"about":["An open-weights text model from Alibaba in the low-cost tier, with tool calling and structured output. Its intelligence and benchmark results sit near the bottom of the registry.","Qwen3 30B A3B Instruct 2507 is an open-weights text model from Alibaba, released July 2025. Its main appeal is cost: $0.09 per million input tokens and $0.30 per million output, and it ranks sixth of 194 on intelligence points per dollar. It supports tool calling and structured output but has no reasoning mode.","Its benchmarks trail the registry. The intelligence index is 41.2 against a median of 59.5, 106th of 114, and it ranks last of 94 on GPQA Diamond at 55.6%. Its LMArena rating is also below the median. No context window is listed, and it is offered only through OpenRouter.","It suits high-volume work where price matters more than hard reasoning, such as simple extraction or classification. Difficult science and math problems are likely to expose its scores."],"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-30b-a3b-instruct-2507', 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-30b-a3b-instruct-2507', 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-30b-a3b-instruct-2507',\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-30b-a3b-instruct-2507')\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-30b-a3b-instruct-2507'","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-30b-a3b-instruct-2507'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'qwen/qwen3-30b-a3b-instruct-2507' \\\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-30b-a3b-instruct-2507'),\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":"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}}