GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone
All resources

· reAPI Team

Qwen 4 Architecture, Closed Qwen4-Max API, and Live Costs

Audit Qwen 4 architecture (2.4T MoE, 71B active, 328B N-gram), closed Qwen4-Max API pricing, Work360 and Plotly benchmarks, and live reAPI alternatives.

Qwen 4 Architecture, Closed Qwen4-Max API, and Live Costs

On November 16, 2026, Alibaba launched Qwen4-Max, the first production release of the Qwen 4 generation, and broke from the open-weight playbook that built its developer base[1][3]. Rather than publishing day-one Hugging Face checkpoints, Alibaba released a closed-weight, API-only sparse Mixture-of-Experts flagship with 2.4 trillion total backbone parameters, 71 billion active per forward pass, a separate 328 billion parameter N-gram embedding lookup layer, a 1 million token context window, and native text, image, and video input[1][2][3]. That commercial turn arrived under three months after Alibaba open-sourced an August 28 architecture preview (Qwen3.8-Flash-Next) and two months after its September 22 Apsara keynote teased a four-tier Qwen 4 roster[6][7].

Below we trace how the Qwen 4 architecture scales from Flash-Next to Qwen4-Max, reconcile launch-week specification conflicts, and audit Alibaba's Work360, Agents' Last Exam, DeepSWE v1.1, and Code Arena claims against independent Artificial Analysis and Plotly evaluations plus $1.50/$4.50 regional API pricing[1][2][4]. To be transparent on platform availability, Qwen4-Max is not yet hosted on reAPI as of December 3, 2026, while Alibaba's Qwen Image 3.0 is live today[13]. We compare Qwen4-Max directly against four live chat endpoints on reAPI: DeepSeek V4.1 Flash, Kimi K3.1 Pro, gpt-6.2-sol:gpt-0.1, and Claude Opus 5.5[9][10][11][12].

Cantilevered modular matrix of matte stoneware and glossy celadon-porcelain louver blocks on warm pale oak illustrating Qwen 4 architecture

Inside the Qwen 4 architecture and its N-gram lookup split

Alibaba telegraphed the Qwen 4 architecture months before opening a commercial endpoint[6][7]. On August 28, 2026, Alibaba Cloud deployed Qwen3.8-Flash-Next on GMI Cloud as an open architectural preview carrying internal identifiers qwen4_exp and Qwen4ExpForConditionalGeneration, the same day llama.cpp merged PR #27742 supporting its sparse attention blocks, oversized N-gram embedding tables, vision paths, and custom quantization kernels[6].

Teardowns of Flash-Next reveal why Alibaba split static recall from active compute[6][7]. That preview paired a 125B sparse MoE backbone (6B active per token across 512 experts with top-10 routing) with an independent 51B Parameter-Free Lookup Embedding (PLE) table (176B served total)[6][7]. Its 48 layers split into 36 Gated DeltaNet layers and 12 attention layers, combined with Compressed Sparse Attention (CSA), Gated Residual Streams, Gated HyperConnection routing, Muon optimizer training, and Recursive Self-Improvement (RSI)[6][7]. Because static N-gram lookups rely on indexed memory reads rather than active tensor contractions, consumer testing on an RTX 4090 offloaded the 51B table and 512 experts to host DDR4/DDR5 RAM and still hit 21 tok/s decode at 250K active context (364 tok/s prefill), while unified memory reached 24.1 tok/s across a 262K native context[6].

Production Qwen4-Max scales that decoupling design to cloud clusters[1][3]. Upgrading attention, residual connections, and embeddings, Alibaba pairs a 2.4T sparse MoE backbone (71B active per token, a 2.96% activation ratio) with a standalone 328B N-gram embedding table[1][2][3]. High-frequency short token sequences resolve through the 328B fast path instead of burning routed 71B compute on routine phrasing, cutting active parameters by 25% relative to Qwen3.8-Max's 95B active count[1][3][5].

SpecificationQwen3.8-Flash-Next (Preview)Qwen3.8-Max (0902)Qwen4-Max (Production)
Release dateAugust 28, 2026[6]September 3, 2026[3]November 16, 2026[1]
MoE backbone total125B (48 layers, 512 experts)[6][7]2.4T[1][7]2.4T[1][2]
Active per token6B[6]95B[5][7]71B (2.96% of MoE)[1][3]
N-gram lookup table51B static PLE (176B served)[6][7]Not disclosed328B separate embedding[2][3]
Context and output262K native context[6]1M context[7]1M ctx; 131,072 non-thinking / 262,144 thinking cap[2]
Native modalitiesText + vision components[6]Text (separate Omni Flash SKU)[3]Text, image, and video (returns text)[2]
AvailabilityOpen-weight preview[7]Hosted API ($2/$6)[3][7]Closed API-only ($1.50/$4.50 Singapore)[2]

Source: Alibaba Group[1], Model Studio documentation summary[2], Local AI Zone[3], Shattered[5], and Kie.ai teardowns[6][7].

Reconciling launch-week specification discrepancies

Three spec conflicts surfaced across launch coverage. First, some launch-day posts claimed Qwen4-Max doubled total parameters over Qwen3.8-Max, whereas Alibaba Group's November 16 press release states Qwen4-Max runs 25% fewer active parameters (71B vs 95B) at the same 2.4T scale, with the extra capacity coming from the separate 328B N-gram table[1][2][3].

Second, Alibaba Cloud Model Studio specifies 131,072 max output tokens in non-thinking mode and 262,144 tokens shared across thinking traces and final output, whereas other launch summaries summed those two caps into 393,216 (393K) tokens[2][3]. Budget long-reasoning agents against Model Studio's 262,144-token shared cap[2].

Third, the 5 to 10 trillion parameter roadmap shown at Apsara alongside Alibaba's T-Head Zhenwu V900 silicon (500,000-chip clusters) targets future Qwen 4.5 and Qwen 5 models rather than Qwen 4[6][7].

Why Alibaba shipped Qwen4-Max closed-weight and API-only

At the September 22, 2026 Apsara Conference in Hangzhou, Qwen LLM head Liu Dayiheng confirmed Qwen 4 was in training while stage slides displayed a four-tier roster (Qwen4-Max, Qwen4-Plus, Qwen4-Flash, and Qwen4-27B), though the published press release confirmed only active training[6][7]. After arena testers spotted early checkpoints under "Kalmia" and Qoder's "QoDuck", Alibaba opened Qwen4-Max-Preview on November 11 exclusively to Token Plan subscribers from $6/month without benchmarks, a model card, or pay-as-you-go rates, retiring that preview on November 25[2][3][5][6].

On November 16, production qwen4-max launched across six Alibaba Cloud Model Studio regions (Singapore, Beijing, Hong Kong, Frankfurt, Virginia, and Tokyo), Vercel AI Gateway, and OpenRouter, feeding QwenCloud, Qwen Studio, QwenWork, and Qoder[1][2][4][5]. Folding native text, image, and video into one SKU removes the fragmented September Qwen3.8 catalog (Max 0902, Omni Flash, Max Prime) and channels both API usage and seat-based subscriptions into Alibaba's own products[3][5].

The closed-weight stance breaks sharply from peers. On November 4, 2026, Moonshot AI shipped Apache 2.0 weights for Kimi K3.1 Pro (2.8T total, 104B active), and DeepSeek continues publishing downloadable checkpoints within days of API releases[3]. Even U.S. hyperscalers have shipped downloadable weights with commercial caveats, as examined in our Amazon Ergo open-weight and license audit. Qwen4-Max ships with no Hugging Face repo, no model card, and no GGUF path; Qwen's open-source blog index on qwenlm.github.io still displays Qwen3-era releases (Qwen3Guard, 20B MMDiT Qwen-Image, 92-language Qwen-MT, and GSPO RL) with no fourth-generation checkpoint post[3][8]. Alibaba promised only that smaller open-weight Qwen 4 models will arrive "soon," with no dates or licenses[1][3]. Contrary to one launch-day misstatement claiming Qwen 2.5 is the newest downloadable Qwen, open-weight Qwen3.8-Flash-Next and Qwen 3.8 27B already run locally on machines such as a 64 GB Mac mini[3][4][7].

Alibaba emphasized lifecycle governance alongside the closed launch: code-security checks for injection, memory safety, and broken access control; cybersecurity data filtered by intent to keep defensive remediation while removing offensive attack content; and CBRN post-training safeguards[1][5]. Closing weights blocks outside verification of expert routing and safety, and as of December 3, 2026, neither independent safety audits nor independent 1 million token recall tests exist[5].

Auditing official Qwen4-Max benchmarks against independent tests

Alibaba's November 16 announcement positions Qwen4-Max as an enterprise agent workhorse: ranked 6th on Code Arena (1750 Elo), strong across Agents' Last Exam, Vals Index, JobBench, and Chartography, and leading Claude Opus 5.5 (74.2) and Kimi K3.1 (75.5) at 75.7 on DeepSWE v1.1[1][2]. On its proprietary Work360 benchmark covering 721 specialized fields, Alibaba reports a jump from 47.74 (Qwen3.8-Max) to 52.69 using 24% to 35% fewer High-effort output tokens, cutting average task cost by 62% ($4.43 to $1.67, rounded to around 60% in the press release) and trimming Terminal-Bench 4.0 tokens by 48% to 49%[1][2].

Benchmark or MetricQwen4-MaxQwen3.8-MaxClaude Opus 5.5GPT-6 AstraKimi K3.1
DeepSWE v1.1 (official qwen.ai)75.7[2]69.3[2]74.2[2]74.1[2]75.5[2]
CodeArena Elo (official qwen.ai)1750 (#6)[1][2]1676[2]1816[2]1763[2]1686[2]
Terminal-Bench 4.0 (official qwen.ai)48.5[2]38.9[2]59.6[2]59.1[2]67.2[2]
AA-Briefcase v1.1 Elo (official qwen.ai)1686[2]1605[2]1801[2]1569[2]1674[2]
HLAB-Vals-1.1 legal (official qwen.ai)21.3[2]15.4[2]9.2[2]7.1[2]11.7[2]
Automationbench-AA (official qwen.ai)72.5[2]56.2[2]69.5[2]68.5[2]73.3[2]
BioMysteryBench (official qwen.ai)85.0[2]84.1[2]81.9[2]78.9[2]80.6[2]
Humanity's Last Exam (official qwen.ai)51.7[2]43.9[2]59.8[2]53.6[2]51.1[2]
AgentArena net gain (official qwen.ai)7.5[2]Not listed18.2[2]13.9[2]3.9[2]
Artificial Analysis Index (independent)43 (#38 of 81)[2]34 (v5 card)[7]59 (#5)[2]57 (#8)[2]Not in table
AA Avg Cost / Task and Speed$3.27, 53 tok/s[2]$1.13 (older card)[7]$10.04, 117 tok/s[2]$6.24, 42 tok/s[2]Not in table

Source: Alibaba Group[1], qwen.ai and Artificial Analysis tables via Online Tech Tips[2], and Qwen3.8-Max v5 baseline via Kie.ai[7].

Alibaba also cited four internal showcases: cloud scheduling trimming annotation call spend by 9% and accelerating offline CPU rescheduling more than 14 times; automotive workpiece programming falling 95% (475 minutes to 24 minutes); a 48-hour, 4-iteration chip-coolant run; and an Alzheimer's agent executing 454 tool calls and 3,239 evaluations across 24 candidate molecules[1]. Treat those as company showcases rather than reproducible public evals[1][5].

Independent benchmarks expose sharper limits. On the 81-model Artificial Analysis Intelligence Index, Qwen4-Max clears the 41-point median at 43 (#38, 127M output tokens, $3.27/task, 53 tok/s), trailing Claude Fable 5.2 (Max) (65, #1, $26.54/task, 110 tok/s), Gemini 4 Carbon (High) (60, #4, $5.48/task, 62 tok/s), Claude Opus 5.5 (Max) (59, #5, $10.04/task, 117 tok/s), and GPT-6 Astra (Max) (57, #8, $6.24/task, 42 tok/s) by 14 to 22 points[2]. On coding, it trails Claude Opus 5.5 by 11.1 points and Kimi K3.1 by 18.7 points on Terminal-Bench 4.0, and sits 33.5 points behind Claude Opus 5.5 on ProgramBench[2][3].

Plotly's private 43-question DataAnalyticsBench (run November 16 via OpenRouter on a synthetic wind-energy fleet warehouse) adds empirical nuance[4]. Qwen4-Max scored 35/43 (81%, grade B) for $2.29 per full exam ($133/person/year at 1,000 staff asking 10 questions daily over 250 workdays) at a 40-second median (47 minutes total)[4]. It scored 5/5 on ambiguous prompts, 5/5 on impossible requests, 19/20 on direct analytics, and achieved a 92% provider cache hit rate (6 calls and 3,200 output tokens per question)[4]. Still, 31 of 50 models scored higher, 31 of 50 ran faster, and 10 were both cheaper and more accurate[4]. It missed 2/3 planted data-quality bugs, 2/5 statistics traps, and 3/5 hidden patterns (averaging 19 queries vs the 26-query board median), finishing behind open-weight Qwen 3.8 27B (38/43, $1.71, 53 s), DeepSeek V4.1 Flash (36/43, $0.46, 21 s), and Kimi K3.1 Pro (42/43, tied with Tencent Hy4 at $2.11)[4]. Even allowing for Plotly's 3-point single-run variance, the nearly 5x run-cost gap against DeepSeek V4.1 Flash ($2.29 vs $0.46) is decisive[4].

Regional API pricing and live reAPI alternatives

Alibaba Cloud Model Studio sets two regional rates for Qwen4-Max: $1.50 input and $4.50 output per million tokens in Singapore (international) and on OpenRouter, and $1.413 input and $4.24 output across Beijing, Hong Kong, Frankfurt, Virginia, and Tokyo, alongside $0.075 per million tokens for implicit cache hits[1][2][4]. Singapore list pricing cuts 25% off Qwen3.8-Max ($2.00/$6.00) and undercuts Anthropic's official $4.00/$20.00 rate for Claude Opus 5.5 by 62.5% on input and 77.5% on output[3][12].

As of December 3, 2026, Qwen4-Max is not hosted on reAPI, whereas Alibaba's Qwen Image 3.0 is live on POST https://api.reapi.ai/v1/images/generations (qwen-image-3.0 at $0.024/image, qwen-image-3.0-pro at $0.035 for 1K and $0.069 for 2K, plus $0.003/reference across up to 3 references, supporting 4.5k-token layouts with 10px text legibility)[13]. Comparing Qwen4-Max against live December 3 chat models on reAPI shows why discounted multi-model routing changes the economics[2][9][10][11][12]:

Model and Endpoint (Verified Dec 3, 2026)AvailabilityInput / Output (per 1M)Cache Read (per 1M)Context and Verified Fit
Qwen4-Max (qwen4-max)[2]Model Studio / OpenRouter (not on reAPI)$1.50 / $4.50 ($1.413/$4.24 regional)[2]$0.075 (implicit)[1]1M ctx, 262K thinking cap, native video; strong legal (21.3) and bio (85.0)[2]
DeepSeek V4.1 Flash (deepseek-v4.1-flash)[9]Live on reAPI (/v1/chat/completions)$0.18 / $0.72[9]$0.0036[9]1M ctx, 384K max output, vision, default thinking; 36/43 ($0.46, 21 s) on Plotly[4][9]
gpt-6.2-sol:gpt-0.1 (default gpt: $1.50/$7.50)[11]Live on reAPI (/v1/chat/completions)$0.20 / $1.00 (above 272K: $0.40/$1.50)[11]$0.01 ($0.02 long)[11]Text or image input, structured output, streaming; everyday coding[11]
Kimi K3.1 Pro (kimi-k3.1-pro / :kimi3-0.8)[10]Live on reAPI (/v1/chat/completions)$2.00/$10.00 (kimi3) or $1.60/$8.00 (kimi3-0.8)[10]$0.20 or $0.16[10]2.8T/104B open weights, up to 1M output range; 67.2 Terminal-Bench, 42/43 Plotly[2][3][4][10]
Claude Opus 5.5 (claude-opus-5-5 / :claude-0.5)[12]Live on reAPI (/v1/messages or /v1/chat/completions)$2.80/$14.00 (30% off) or $2.00/$10.00 (claude-0.5)[12]$0.14 or $0.10[12]59 AA Index, 59.6 Terminal-Bench, 1816 CodeArena; native Messages or OpenAI SDK[2][12]

Source: Alibaba Group[1], Model Studio regional pricing[2], Plotly[4], and live reAPI quotes fetched December 3, 2026[9][10][11][12].

Three price spreads stand out. DeepSeek V4.1 Flash ($0.18/$0.72, $0.0036 cache read) undercuts Qwen4-Max's Singapore rates by 88% on input and 84% on output while keeping a 1M context and 384K max output[2][9]. gpt-6.2-sol:gpt-0.1 ($0.20/$1.00 up to 272,000 input tokens, $0.01 cache read) costs under one-quarter of Qwen4-Max on output[2][11]. And Claude Opus 5.5 on reAPI's claude-0.5 group ($2.00/$10.00, $0.10 cache read) cuts Anthropic's $4.00/$20.00 official rate in half, narrowing the input spread over Qwen4-Max to $0.50 per million tokens for a 16-point lead on Artificial Analysis (59 vs 43)[2][12].

Because reAPI serves deepseek-v4.1-flash, gpt-6.2-sol:gpt-0.1, and kimi-k3.1-pro:kimi3-0.8 synchronously behind one OpenAI-compatible base URL (https://api.reapi.ai/v1), teams can benchmark those endpoints immediately with a key from reAPI API keys[9][10][11]:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.reapi.ai/v1",
    api_key="YOUR_REAPI_API_KEY",
)

# Swap live wire IDs without changing client code:
# "deepseek-v4.1-flash" | "gpt-6.2-sol:gpt-0.1" | "kimi-k3.1-pro:kimi3-0.8"
response = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Audit this migration diff for race conditions."}],
    reasoning_effort="high",
    max_tokens=8192,
)
print(response.choices[0].message.content)

For kimi-k3.1-pro:kimi3-0.8, use max_completion_tokens (default 131072) instead of deprecated max_tokens and set reasoning_effort to low, high, or max[10]. For gpt-6.2-sol:gpt-0.1, keep prompts at or under 272,000 input tokens to stay on $0.20/$1.00 before $0.40/$1.50 long-context billing applies[11].

Engineering routing rules for teams evaluating Qwen 4

Four operational rules settle where each workload belongs today:

  1. Call qwen4-max on Alibaba Cloud Model Studio when your evals match its clear domain leads (21.3 on HLAB-Vals-1.1, 85.0 on BioMysteryBench, or unified text-plus-video 1M ingestion) and repeated prefixes hit $0.075/M implicit caching on $1.413/$4.24 regional rates[1][2].
  2. Route high-concurrency triage, SQL analytics, and budget agent loops to DeepSeek V4.1 Flash ($0.18/$0.72, 21 s Plotly median) or gpt-6.2-sol:gpt-0.1 ($0.20/$1.00) on reAPI rather than paying $1.50/$4.50 for mid-pack analytics accuracy[4][9][11].
  3. Escalate terminal automation and repo-level refactoring to Kimi K3.1 Pro (67.2 Terminal-Bench 4.0, $1.60/$8.00 on kimi3-0.8) or Claude Opus 5.5 (59.6 Terminal-Bench 4.0, $2.00/$10.00 on claude-0.5), and pair typography-dense image tasks with live Qwen Image 3.0 ($0.024 standard, $0.035/$0.069 Pro)[2][10][12][13].
  4. Keep air-gapped or local-GPU stacks on open-weight Qwen 3.8 27B, Apache 2.0 Kimi K3.1 Pro, or U.S.-origin Amazon Ergo until Alibaba publishes weights, sizes, and licenses for the smaller open-weight Qwen 4 checkpoints promised on November 16[1][3][4].

Taken together, the Qwen 4 launch proves Alibaba can cut active inference compute by 25% (71B vs 95B) and shrink Work360 task spend by 62% by pairing a 2.4T sparse MoE backbone with a 328B N-gram lookup table[1][2][3]. Closing the weights, however, drops the flagship directly into managed API competition where live December 3 endpoints on reAPI already beat it on token price (deepseek-v4.1-flash, gpt-6.2-sol:gpt-0.1) or terminal and coding accuracy (kimi-k3.1-pro, claude-opus-5-5)[2][4][9][10][11][12]. Until smaller open-weight checkpoints actually ship, let your own regression suite and measured per-task invoice decide whether Qwen4-Max earns a dedicated Model Studio integration.

References

  1. Alibaba Group. Alibaba Unveils Qwen4-Max: New AI Teammate for Work, Creativity, and Discovery. Checked December 3, 2026 from Alibaba Group Newsroom
  2. Online Tech Tips Staff (ed. Aseem Kishore). Alibaba unveils Qwen4-Max for complex professional tasks. Checked December 3, 2026 from Online Tech Tips
  3. Hussain Nazary (Local AI Zone). Qwen4-Max: The Complete Deep Dive. Checked December 3, 2026 from Local AI Zone
  4. Plotly. Qwen4 Max Benchmark Results for Data Analysis. Checked December 3, 2026 from Plotly Blog
  5. Laura Bennett (Shattered). Alibaba Qwen4-Max: 2.4T Parameters, 60% Lower Task Cost. Checked December 3, 2026 from Shattered
  6. Kenji Tanaka (Kie.ai). Qwen 4 Deep Dive: Architecture and Benchmarks. Checked December 3, 2026 from Kie.ai Blog
  7. Daniel Okonkwo (Kie.ai). Qwen4-Max: Deep Dive Into Alibaba's Flagship. Checked December 3, 2026 from Kie.ai Blog
  8. Qwen Team. Blog | Qwen. Checked December 3, 2026 from Qwen GitHub Pages Blog
  9. reAPI. DeepSeek V4.1 Flash API Pricing and Input Schema. Checked December 3, 2026 from reAPI DeepSeek V4.1 Flash
  10. reAPI. Kimi K3.1 Pro API Pricing and Input Schema. Checked December 3, 2026 from reAPI Kimi K3.1 Pro
  11. reAPI. GPT-6.2 Sol API Pricing and Input Schema. Checked December 3, 2026 from reAPI GPT-6.2 Sol
  12. reAPI. Claude Opus 5.5 API Pricing and Input Schema. Checked December 3, 2026 from reAPI Claude Opus 5.5
  13. reAPI. Qwen Image 3.0 API Pricing and Input Schema. Checked December 3, 2026 from reAPI Qwen Image 3.0

More Posts

All resources