AI
Qwen4 Max on Together AI and Model Studio: Architecture, Benchmarks, and Token Pricing Trade-Offs
Together AI launched serverless inference for Alibaba's 2.4T-parameter Qwen4 Max on November 22, 2026, pairing a 1M-token context window with 95% automatic prompt-cache discounts. While vendor tests highlight sub-dollar whole-repo patching, independent Artificial Analysis telemetry flags high latency and output verbosity—here is the engineering breakdown.
9 min read
Qwen4 Max on Together AI and Model Studio: Architecture, Benchmarks, and Token Pricing Trade-Offs
Executive Summary
- What changed: On November 22, 2026, Together AI launched serverless inference for Alibaba's Qwen4 Max (
Qwen/Qwen4-Max) with a 30% introductory discount ($1.05input /$0.0525cached /$3.15output per 1M tokens through November 22–23, 2026, versus$1.50/$0.075/$4.50list), while Alibaba Cloud Model Studio updated itsqwen4-maxproduction documentation on November 23, 2026 (Futurum Group, PricingSaaS, Alibaba Cloud Docs). - Core architecture & specs: Qwen4 Max uses a 2.4-trillion-parameter sparse Mixture-of-Experts (MoE) backbone activating 71B parameters per token, paired with 328B n-gram embedding parameters, a 1M-token context window (991,808 max input), and multimodal text, image, and video inputs (Yotta Labs, Alibaba Cloud Docs).
- Vendor vs. independent reality check: Together AI demonstrated patching the 344-file Tornado Python repository (
652,519tokens) in a single call for$0.69($0.98at list price) in72seconds, and cut repeat-call input costs by95%via automatic caching (Futurum Group). However, independent testing by Artificial Analysis scores Qwen4 Max at 43 on the Intelligence Index (#51 / 95in its price tier; median44), flags a99.17stime to first answer token, and notes high verbosity (127Moutput tokens vs.65.4Mmedian) (Artificial Analysis). - Primary engineering takeaway: Qwen4 Max is an API-only flagship—unlike
Qwen 3.8-Max, its weights are not open-sourced (Yotta Labs). It fits long-context batch coding and cached agent loops where output latency is secondary, but teams must explicitly tunereasoning_effortandthinking_budgetto prevent Chain-of-Thought token bills from inflating output costs.
Architecture & How It Works
Sparse MoE, 328B N-Gram Embeddings, and Hybrid Attention
Alibaba's Qwen4 Max (released November 16, 2026, following a November 11 preview) retains the 2.4T total parameter scale of Qwen 3.8-Max while reducing active parameters per token by roughly 25%—from ~95B down to 71B active parameters (Yotta Labs). On top of the MoE backbone sits a 328B n-gram embedding layer designed to offload factual lookup capacity from active transformer layers, combined with Gated DeltaNet and Qwen Sparse Attention layers and gated residual connections (Yotta Labs).
Unlike Qwen 3.8-Max (whose weights were published in August 2026), Qwen4 Max is proprietary—Alibaba has not released downloadable weights, and both Artificial Analysis and Yotta Labs confirm that Model Studio does not support custom fine-tuning or private model deployment for qwen4-max (Artificial Analysis, Alibaba Cloud Docs).
Context Limits, Reasoning Controls, and API Protocols
Alibaba Cloud Model Studio exposes qwen4-max across OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and DashScope protocols (Alibaba Cloud Docs). Crucially, extended thinking is enabled by default (enable_thinking: true, reasoning_effort: "high", thinking_budget: 131072) and thinking tokens are billed at the output rate (Alibaba Cloud Docs, Yotta Labs).
- Context length:
1,000,000tokens total (991,808max input in standard mode;983,616max input in thinking mode). - Output ceiling:
131,072tokens without thinking, or262,144tokens combined (Chain-of-Thought + final answer) in thinking mode. - Multi-turn reasoning state:
preserve_thinking: trueby default; Model Studio returns a readable CoT summary alongside an encrypted ciphertext that must be passed back verbatim in subsequent tool-calling turns (Alibaba Cloud Docs).
{
"model": "qwen4-max",
"enable_thinking": true,
"reasoning_effort": "high",
"thinking_budget": 16384,
"max_completion_tokens": 32768,
"temperature": 1.0,
"top_p": 0.95,
"messages": [
{
"role": "system",
"content": "You are a backend code reviewer. Return JSON only.",
"cache_control": { "type": "ephemeral", "ttl": "1h" }
},
{
"role": "user",
"content": "Audit this repository diff for race conditions."
}
]
}
When migrating from qwen4-max-preview, note two breaking changes documented by Alibaba Cloud and Yotta Labs: default reasoning effort shifted from xhigh to high, the combined thinking-plus-output ceiling tightened from 393,216 to 262,144 tokens, and qwen4-max-preview retires on November 25, 2026 at 24:00 Beijing time (Yotta Labs).
Benchmarks, Cost & Latency Analysis
Vendor Benchmarks vs. Independent Evaluations
Alibaba's November 16 launch chart compared qwen4-max against Qwen 3.8-Max, Claude Opus 5.5, GPT-6.1 Sol, GPT-6 Astra, and Kimi K3.1 across 16 evaluations (Yotta Labs). On Alibaba's chart, Qwen4 Max beat Qwen 3.8-Max on all 15 shared benchmarks and led the entire field on four:
| Benchmark | Domain / Focus | Qwen4 Max | Qwen 3.8-Max | Chart Leader (Vendor Chart) |
|---|---|---|---|---|
| DeepSWE v1.1 | Agentic coding | 75.7 | 69.3 | Qwen4 Max (75.7) (Yotta Labs) |
| Agents' Last Exam v1.1 | Long-horizon tasks | 46.7 | 27.9 | Qwen4 Max (46.7) (Yotta Labs) |
| HLAB-Vals-1.1 | Legal agent work | 21.3 | 15.4 | Qwen4 Max (21.3) (Yotta Labs) |
| BioMysteryBench | Bioinformatics research | 85.0 | 84.1 | Qwen4 Max (85.0) (Yotta Labs) |
| APEX-Agents v1.1 | Professional services | 72.1 |
63.3 | Claude Opus 5.5 (73.5) (Yotta Labs) |
| AutomationBench-AA | Agentic SaaS workflows | 72.5 |
56.2 | Kimi K3.1 (73.3) (Yotta Labs) |
| Terminal-Bench 4.0 | Agentic terminal coding | 48.5 |
38.9 | Kimi K3.1 (67.2) (Yotta Labs) |
| ProgramBench | Black-box software replication | 31.5 |
28.0 | Claude Opus 5.5 (65.0) (Yotta Labs) |
However, independent testing by Artificial Analysis paints a more nuanced operational picture (Artificial Analysis):
- Composite Intelligence: Scores 43 on the Artificial Analysis Intelligence Index v5.0.1 (
#51 / 95among models in its price tier, slightly below the peer median of44). - Latency and Speed: Outputs at 66 tokens/sec, but averages
99.17seconds time to first answer token (versus a12.56speer median) and26.4minutes per Intelligence Index task (#85 / 94, versus a13.1minute median) because of extended thinking. - Verbosity and Effective Cost: Generated
127Moutput tokens across the full Intelligence Index suite (nearly double the65.4Mmedian), resulting in an average cost of$3.27per Intelligence Index task despite its moderate per-token list price (Artificial Analysis). Note that Alibaba's own Work360 claim ($1.67per task, down from$4.43forQwen 3.8-Max) measures a different proprietary task suite and is not directly comparable to Artificial Analysis's suite (Yotta Labs).
Together AI Tornado Benchmark & Token Pricing Breakdown
On November 22, 2026, Together AI published a concrete long-context coding benchmark: feeding all 344 files (652,519 tokens) of the Tornado Python web framework plus a bug report into a single Qwen/Qwen4-Max request produced a working patch in tornado/iostream.py in 72 seconds that passed all 1,673 maintainer regression tests (Futurum Group). At Together AI's introductory 30%-off promo, that single-shot call cost $0.69 ($0.98 at standard list pricing).
Even more consequential for multi-turn agents, Together AI's automatic prompt caching (requiring zero code-level cache breakpoints) reduced first-token latency on a repeated ~630,000-token context from 54 seconds to 8 seconds, cutting input cost from ~$0.66 to ~$0.03—a 95% input cost reduction (Futurum Group).
| Provider / Region | Input ($ / 1M) | Cached Input ($ / 1M) | Output ($ / 1M) | Notes & Availability (Nov 2026) |
|---|---|---|---|---|
| Together AI (Promo) | $1.05 |
$0.0525 |
$3.15 |
30% off through Nov 22–23, 2026; automatic prompt caching (PricingSaaS) |
| Together AI (List) | $1.50 |
$0.075 |
$4.50 |
Updated Nov 20, 2026 from initial $1.43 / $4.28 (PricingSaaS) |
| Alibaba Model Studio (Singapore / Virginia) | $1.50 |
$0.075 (5% rate) |
$4.50 |
Explicit 5m ($1.875) & 1h ($3.00) cache writes; 1M free tokens in SG (Alibaba Cloud Docs, Yotta Labs) |
| Alibaba Model Studio (Global / Beijing) | $1.413 |
N/A (region list) | $4.24 |
Frankfurt, Hong Kong, Tokyo, Global Virginia; Beijing Batch $0.707 / $2.12 (Alibaba Cloud Docs) |
Production Deployment & Trade-Offs
1. Proprietary API Lock-In vs. Qwen 3.8-Max Self-Hosting
The sharpest architectural trade-off in the Qwen 4 rollout is weight availability. Futurum's September 2026 enterprise survey (n = 200) found that 42% of enterprises now run open-weight models in production (up from 31% two months earlier), yet the Qwen family's production share slipped to 10% (Futurum Group). Keeping Qwen4 Max closed-weight forces teams requiring VPC self-hosting or custom LoRA fine-tuning to stay on Qwen 3.8-Max or wait for Alibaba's promised smaller open-weight Qwen 4 models (which have no confirmed release dates) (Yotta Labs).
2. Controlling Thinking-Token Verbosity & Latency
Because qwen4-max defaults to enable_thinking: true and reasoning_effort: "high" with a 131,072-token thinking budget—and Artificial Analysis measured 127M output tokens across its benchmark suite—unconstrained calls can stall interactive UX (99.17s TTFT in xhigh/reasoning runs) and inflate bills (Artificial Analysis, Alibaba Cloud Docs).
- Interactive UI & Chat: Set
enable_thinking: falseorreasoning_effort: "low"and capmax_completion_tokensexplicitly. - Multi-Turn Coding Agents: Keep
enable_thinking: true, pass back the encrypted CoT ciphertext whenpreserve_thinkingis active, and route repeated repository contexts through Together AI's automatic cache or Model Studio's 1-hour explicit cache. - Rate-Limit Planning: On Alibaba Cloud Model Studio, Level 1 accounts (
<=$8,000/month) get5,000,000TPM and30,000RPM on Global endpoints (3,000,000TPM /15,000RPM on dedicated Virginia), which scales to20,000,000TPM above$140,000/month(Alibaba Cloud Docs).
3. Provider & Security Governance
Keep model strings (qwen4-max on Model Studio vs. Qwen/Qwen4-Max on Together AI) in environment config rather than hardcoded in application logic, and review provider data-retention defaults—noting that Together AI separately disclosed a prompt-leakage incident on November 21, 2026 and subsequently made Zero Data Retention (ZDR) the default for new accounts (Futurum Group).
Frequently Asked Questions
1. Is Qwen4 Max open-weight or available for local self-hosting?
No. As of November 2026, Qwen4 Max is proprietary and available only via API (Alibaba Cloud Model Studio, Together AI serverless inference, and Token Plan). Teams needing downloadable weights must use Qwen 3.8-Max or wait for smaller open-weight Qwen 4 tiers (Yotta Labs, Artificial Analysis).
2. How much does Qwen4 Max cost per million tokens?
List pricing on both Together AI (after its November 20 update) and Alibaba Cloud Model Studio Singapore/Virginia is $1.50 per 1M input tokens, $0.075 per 1M cached input tokens, and $4.50 per 1M output tokens (including thinking tokens). Together AI offered a 30% promo ($1.05 / $0.0525 / $3.15) through November 22–23, 2026, and Alibaba's Global/Beijing endpoints list $1.413 / $4.24 (PricingSaaS, Alibaba Cloud Docs).
3. Why is Qwen4 Max's Time to First Answer Token so high on Artificial Analysis?
Artificial Analysis measured 99.17s TTFT on Alibaba's API because qwen4-max runs extended Chain-of-Thought reasoning by default (xhigh/high effort), and its 127M output token count across the Intelligence Index makes it nearly twice as verbose as the 65.4M peer median (Artificial Analysis).
4. What is the difference between Together AI's automatic caching and Model Studio's explicit cache?
Together AI applies prompt caching automatically with no code changes, cutting a repeated 630K-token call's TTFT from 54s to 8s and input cost by 95% (Futurum Group). Alibaba Cloud Model Studio supports both implicit caching and explicit cache_control breakpoints with 5m ($1.875/1M write) and 1h ($3.00/1M write) TTLs (Alibaba Cloud Docs, Yotta Labs).
5. When does qwen4-max-preview shut down?
Alibaba is retiring the qwen4-max-preview model ID at 24:00 Beijing time on November 25, 2026. Existing integrations should switch to qwen4-max and verify max_completion_tokens against the 262,144-token thinking-mode ceiling (Yotta Labs).
Sources
- Alibaba Cloud Documentation Center (Updated November 23, 2026) — Alibaba Cloud Model Studio: qwen4-max (latest model): https://www.alibabacloud.com/help/en/model-studio/qwen4-max
- Futurum Group (November 22, 2026) — Together AI Brings Qwen4 Max to Serverless Inference at 30% Off: https://futurumgroup.com/insights/together-ai-brings-qwen4-max-to-serverless-inference-at-30-off/
- PricingSaaS Pulse (Captured November 19–20, 2026) — Together AI: Qwen4 Max price hike to $4.50 output + 30% promo: https://pricingsaas.com/companies/together/diffs/2026D324
- Artificial Analysis (November 16, 2026) — Qwen4 Max: Intelligence, Performance & Price Analysis: https://artificialanalysis.ai/models/qwen4-max
- Yotta Labs (November 16, 2026) — Qwen 4 Max: Specs, Benchmarks, Pricing, and How to Access It: https://www.yottalabs.ai/post/qwen-4-max-specs-benchmarks-pricing-how-to-access
- Futurum Group (November 23, 2026) — Together AI's Agent Credential Leak Exposes Agentic Pipeline Risk: https://futurumgroup.com/insights/together-ais-agent-credential-leak-exposes-agentic-pipeline-risk/