惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tor Project blog
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
G
Google Developers Blog
J
Java Code Geeks
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
I
Intezer
Jina AI
Jina AI
T
Tenable Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
The Hacker News
The Hacker News
F
Full Disclosure
Cloudbric
Cloudbric
量子位
H
Heimdal Security Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
罗磊的独立博客
V
Vulnerabilities – Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Recent Announcements
Recent Announcements
WordPress大学
WordPress大学
GbyAI
GbyAI
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
Recorded Future
Recorded Future
Security Archives - TechRepublic
Security Archives - TechRepublic
AI
AI
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hacker News: Front Page
Latest news
Latest news

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Qwen 3.6 Has Four Tiers. Here's How to Route Without Burning Cash.
tokenmixai · 2026-05-25 · via DEV Community

Alibaba shipped four Qwen 3.6 SKUs in 30 days. The pricing spread between cheapest and most expensive output is 41x — open-source 35B-A3B at $0.90/M out vs Max-Preview at $6.24/M out. Pick the wrong tier and you either burn money or leave benchmark headroom you didn't need.

This is the developer-side companion to TokenMix.ai's tier picker analysis. Code patterns for routing across all four variants, fallback chains for the "Preview" tag risk, and a self-host break-even discussion for the Apache-2.0 35B-A3B. All pricing verified 2026-05-25 against OpenRouter and Hugging Face source pages.

Table of Contents

  • What Shipped (Confirmed)
  • Pricing Across All Four Tiers
  • The Tier Routing Pattern
  • Fallback Chain for Preview-Tag Risk
  • Self-Host vs API Break-Even (35B-A3B)
  • Supported LLM Providers and Model Routing
  • Known Limitations and Gotchas
  • When to Use Each Tier
  • Quick Installation Guide
  • FAQ

What Shipped (Confirmed) {#what-shipped}

Variant Released Status Context Active Params License
Qwen 3.6-Plus 2026-04-02 GA 1M proprietary proprietary
Qwen 3.6-35B-A3B 2026-04-16 GA 262K → 1M (YaRN) 3B (35B total MoE) Apache-2.0
Qwen 3.6-Max-Preview 2026-04-20 Preview 262K ~1T (unverified) proprietary
Qwen 3.6-27B 2026-04-22 GA varies dense 27B open-weights
Qwen 3.6-Flash 2026-04 GA 1M proprietary proprietary

The performance claim: Qwen 3.6-Plus hits 78.8 SWE-Bench Verified, Max-Preview tops 6 coding/agent benchmarks per Alibaba's release. The 35B-A3B variant scores 92.7 AIME26 and 86.0 GPQA at $0.15/$0.90.

The honest caveat: Max-Preview's "Preview" tag is not cosmetic — Alibaba's own announcement describes ongoing improvements. Production behavior could shift week to week. Don't build a stable agent loop on it without telemetry and a fallback.


Pricing Across All Four Tiers {#pricing}

Verified 2026-05-25 from OpenRouter and pricepertoken.com:

Model Input $/M Output $/M Cache hit Max output
Qwen 3.6-Max-Preview $1.04 $6.24 not published not specified
Qwen 3.6-Plus $0.325 $1.95 not published 65,536
Qwen 3.6-Flash $0.1875 $1.125 not published 65,536
Qwen 3.6-35B-A3B $0.150 $0.900 n/a (open weights) 32K-82K

Note: OpenRouter rates reflect platform discounts (35% Plus, 25% Flash, 20% Max-Preview). DashScope direct pricing for the 3.6 family was not yet listed on Alibaba Cloud's Model Studio pricing page as of the verification date.

Reference baselines for cost comparison:

  • DeepSeek V4-Pro (post-permanent-cut): $0.435 / $0.87 per MTok
  • Claude Opus 4.7: $5 / $25 per MTok
  • GPT-5.5: $5 / $30 per MTok

Qwen 3.6-Flash undercuts DeepSeek V4-Pro on input (2.3x cheaper) but DeepSeek wins on output. Plus undercuts Claude Opus 4.7 by ~15x on input.


The Tier Routing Pattern {#routing}

Don't route everything to your most capable model. Split by context length and task class:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["OPENAI_API_KEY"],
    base_url=os.environ.get("OPENAI_BASE_URL", "https://api.tokenmix.ai/v1"),
)

def route_qwen_tier(tokens_in: int, task: str) -> str:
    """Pick the right Qwen 3.6 variant based on context size and task class."""

    # Tier 1 — High-volume classification, summary, retrieval
    if task in ("classify", "extract", "summarize", "rerank"):
        return "qwen3.6-flash"

    # Tier 2 — Math/reasoning at any volume
    if task in ("math", "reasoning", "science"):
        # 35B-A3B beats Plus on AIME26 (92.7) at 1/2 the cost
        return "qwen3.6-35b-a3b"

    # Tier 3 — Long-context (>256K) workflows
    if tokens_in > 256_000:
        # Only Plus and Flash support 1M; Max-Preview caps at 262K
        # Flash if cost matters, Plus if you also need SWE-Bench quality
        return "qwen3.6-plus" if task == "code" else "qwen3.6-flash"

    # Tier 4 — Hardest coding/agent tasks under 262K
    if task in ("agentic-code", "repo-edit", "terminal-agent"):
        # Max-Preview tops SWE-Bench Pro 57.3, TB2 65.4
        return "qwen3.6-max-preview"

    # Default — Plus is the safe production pick
    return "qwen3.6-plus"


def chat(messages: list, task: str = "general") -> str:
    tokens_in = sum(len(m["content"]) // 4 for m in messages)
    model = route_qwen_tier(tokens_in, task)
    r = client.chat.completions.create(model=model, messages=messages)
    return r.choices[0].message.content

Key judgment: the cost spread (41x) is large enough that even a coarse router beats a single-model default. A 100K-task-per-day pipeline routed across all four tiers typically cuts monthly spend 60-85% vs hardcoding Max-Preview, with no measurable quality regression on the workload classes it auto-downgrades.


Fallback Chain for Preview-Tag Risk {#fallback}

The Max-Preview tag is the biggest reliability risk in this family. Build a fallback:

QWEN_36_CHAIN = [
    os.getenv("QWEN_PRIMARY", "qwen3.6-max-preview"),   # Try frontier first
    os.getenv("QWEN_SECONDARY", "qwen3.6-plus"),        # Stable GA fallback
    os.getenv("QWEN_TERTIARY", "qwen3.6-35b-a3b"),      # Open-source last resort
]

def chat_with_fallback(messages: list, max_retries: int = 3) -> str:
    last_error = None
    for model in QWEN_36_CHAIN[:max_retries]:
        try:
            r = client.chat.completions.create(
                model=model,
                messages=messages,
                timeout=30,
            )
            return r.choices[0].message.content
        except Exception as e:
            last_error = e
            continue
    raise last_error

This pattern matters during Alibaba's Preview iteration windows. If Max-Preview behavior shifts mid-window (response format change, latency spike, capacity throttle), the chain auto-promotes Plus to primary without code changes.


Self-Host vs API Break-Even (35B-A3B) {#selfhost}

Qwen 3.6-35B-A3B is the family's hidden value tier. Apache-2.0 license, 3B active parameters per token (MoE with 256 experts, 8+1 activated), 262K native context extensible to ~1M via YaRN.

The serving math: At 3B active params, you can run real workloads on a single H100. Benchmark-for-benchmark, it's within 5 points of Plus on SWE-Bench Verified (73.4 vs 78.8) and crushes Plus on math (AIME26 92.7).

The break-even vs API:

Variable Math
H100 hourly cost (cloud) $2-4/hr
Tokens/sec at 3B active ~200-400 tok/s real-world
Equivalent API cost (Plus output) $1.95/M out
Break-even output volume ~3-5M tokens/hr at H100 utilization >50%

At sustained throughput above ~3M output tokens/hour, owned/rented H100 inference beats Plus API. At lower throughput, Plus API wins. The math gets sharper if you have multi-tenant utilization smoothing out idle time.

The honest caveat: self-hosting carries operational tax. Capacity planning, queue management, model loading time, and version updates are real engineering costs. Most teams should start on API and migrate only after demonstrating sustained volume.


Supported LLM Providers and Model Routing {#providers}

Qwen 3.6 variants are accessible through several routes:

  • Direct via Alibaba DashScopedashscope.aliyuncs.com/v1/services/aigc/text-generation/generation. Pricing for the 3.6 family was not yet on the public Model Studio pricing page as of 2026-05-25 verification.
  • OpenRouterhttps://openrouter.ai/api/v1. Headline-discounted rates for Plus, Flash, and Max-Preview.
  • Hugging Face Inference (35B-A3B only) — open-weights endpoint or self-host.
  • OpenAI-compatible aggregators — drop-in via base URL swap.

The OpenAI-compatible aggregator path is the most flexible — and it's where TokenMix.ai fits in. TokenMix.ai is OpenAI-compatible and provides access to 300+ models including Qwen 3.6-Plus, Qwen 3.6-Flash, Qwen 3.6-35B-A3B, DeepSeek V4-Pro, Claude Opus 4.7, and GPT-5.5 through one API key. That means the routing patterns above work without juggling four separate credentials.

Configuration:

[llm]
provider = "openai"
api_key = "your-tokenmix-key"
base_url = "https://api.tokenmix.ai/v1"
model = "qwen3.6-plus"  # or qwen3.6-flash, qwen3.6-35b-a3b, qwen3.6-max-preview

Or as environment variables:

export OPENAI_API_KEY="your-tokenmix-key"
export OPENAI_BASE_URL="https://api.tokenmix.ai/v1"

One credit card, four Qwen tiers, automatic fallback to other vendors if any tier goes down. The per-token rate matches upstream for proprietary tiers; the 35B-A3B Apache-2.0 variant is priced separately.


Known Limitations and Gotchas {#gotchas}

1. Max-Preview has no published cache-hit pricing. Unlike DeepSeek V4-Pro (cache hit at 1/120 the input rate) or Anthropic (1/10), Qwen 3.6-Max-Preview doesn't surface a cache-tier price on OpenRouter as of verification. If you rely on cache discounts for cost modeling, validate against the specific endpoint before committing.

2. Tiered pricing above 256K context isn't unified. Plus and Flash both advertise 1M context, but per provider documentation, above 256K the cost can scale per a separate sheet. Different providers may apply different multipliers. Test before betting your budget on 800K-input workloads.

3. Max-Preview is text-only at launch. Don't put it behind a multimodal route. Vision input on the 3.6 family is currently only on 35B-A3B (which includes a vision encoder per the Hugging Face model card).

4. Plus's 1M context advertisement may apply only to certain endpoints. Verify max-context per provider — some aggregators cap at 256K for Plus depending on backend configuration.

5. 35B-A3B requires careful YaRN configuration to reach 1M context. Native is 262K; the extension is technically supported but quality degrades past ~512K in early community benchmarks. If your workload needs reliable 1M, use Plus or Flash via API.

6. Open-source 35B-A3B model file is large and load time is non-trivial. First-token latency after cold start can be 30-60 seconds. For latency-sensitive applications, keep it warm or use API tiers.


When to Use Each Tier {#when}

Workload Pick Why
Repo-level coding agent, large context Plus 1M ctx + 78.8 SWE-V at $0.325/$1.95
Hardest coding tasks, willing to pay Max-Preview Tops 6 benchmarks; accept Preview risk
High-volume routing, classification Flash $0.1875/$1.125 is the cheapest 1M-context tier
Math/reasoning at any volume 35B-A3B AIME26 92.7 at $0.15/$0.90
Air-gapped / on-prem deployment 35B-A3B Only Apache-2.0 variant
Multimodal (vision/video) 35B-A3B Only variant with vision encoder
Production stability over peak quality Plus or 35B-A3B Avoid Preview-tag drift
Long PDFs/codebases over 256K Plus or Flash Max-Preview caps at 262K

Decision heuristic: Default to Plus. Escalate to Max-Preview only when your eval shows the +6 to +14 benchmark points pay for themselves. Downgrade to Flash for cost-sensitive high-volume work. Pull 35B-A3B in for math, multimodal, or self-host economics.


Quick Installation Guide {#install}

Drop-in SDK swap from OpenAI:

pip install openai

from openai import OpenAI

# Swap base URL — keep your existing OpenAI SDK code
client = OpenAI(
    api_key="your-tokenmix-key",
    base_url="https://api.tokenmix.ai/v1",
)

response = client.chat.completions.create(
    model="qwen3.6-plus",
    messages=[{"role": "user", "content": "Hello Qwen"}],
)
print(response.choices[0].message.content)

Test all four tiers in 30 seconds:

for model in qwen3.6-max-preview qwen3.6-plus qwen3.6-flash qwen3.6-35b-a3b; do
    curl https://api.tokenmix.ai/v1/chat/completions \
        -H "Authorization: Bearer $OPENAI_API_KEY" \
        -H "Content-Type: application/json" \
        -d "{\"model\":\"$model\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}"
    echo
done

Docker setup (for the open-source 35B-A3B):

docker run -d --gpus all \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -p 8000:8000 \
  vllm/vllm-openai:latest \
  --model Qwen/Qwen3.6-35B-A3B \
  --tensor-parallel-size 1 \
  --max-model-len 262144


FAQ {#faq}

Which Qwen 3.6 variant matches Claude Opus 4.7 on coding?

Plus at SWE-Bench Verified 78.8 is in the same band as Opus 4.7's published number. Max-Preview claims top-6 across SWE-Bench Pro, Terminal-Bench 2.0, SkillsBench, QwenClawBench, QwenWebBench, and SciCode per Alibaba, though independent verification is ongoing. For workloads where Opus 4.7's quality is the bar, Plus is the right swap.

Is Qwen 3.6-Plus actually 1M context, or does it degrade past 256K?

Officially 1M per Alibaba and OpenRouter listing. Above 256K, tiered pricing applies per most provider documentation. Real-world retrieval quality past 500K depends on the specific task and hasn't been independently benchmarked at the time of writing.

Can I fine-tune Qwen 3.6-35B-A3B?

Yes. Apache-2.0 license permits commercial use including fine-tunes. Community fine-tunes are already appearing on Hugging Face as of late May 2026. The MoE architecture (3B active per token from 35B total) means LoRA and QLoRA tuning work on smaller hardware than the 35B parameter count suggests.

How does Qwen 3.6-Flash compare to DeepSeek V4-Flash on cost?

DeepSeek V4-Flash runs roughly $0.14/$0.28 per MTok; Qwen 3.6-Flash is $0.1875/$1.125. DeepSeek wins on output cost (4x cheaper), Qwen Flash wins on input cost for some workloads. The crossover depends on input/output ratio — high-output workloads should test V4-Flash first.

Does Max-Preview support function calling?

Yes per Alibaba's release notes. Native function calling and agentic workflows are supported across the family. 35B-A3B documents this explicitly on its Hugging Face card.

What's the realistic throughput for Qwen 3.6-Plus in production?

Provider-reported tok/s varies 20-80 depending on routing and load. For SLA-bound workloads, run your own benchmark against the specific endpoint before committing capacity.

When will the Max-Preview tag come off?

No public timeline. Alibaba's release describes ongoing improvements. Treat Max-Preview as a moving target — fine for evaluation and asymmetric high-value tasks, risky for stable production agent loops without telemetry.

Can I deploy Qwen 3.6 on AWS or Azure?

35B-A3B (open weights) yes, via standard deployment paths. Proprietary tiers (Plus/Flash/Max-Preview) are accessible via DashScope, OpenRouter, and OpenAI-compatible aggregators including TokenMix.ai. Direct Bedrock or Azure AI integration for the proprietary tiers was not confirmed as of 2026-05-25.


Author: TokenMix Research Lab | Last Updated: 2026-05-25 | Data Sources: OpenRouter Qwen Models, Qwen3.6-35B-A3B on Hugging Face, Alibaba Cloud — Qwen3.6-Plus announcement, TokenMix.ai Model Tracker