Comparison · As of 2026-12-06

December 2026 Chinese Flagship Coding Models Selection Guide: GLM-5.4 vs. Qwen4-Max vs. MiniMax-M4 vs. Step-5 vs. Kimi K3.1 Pro

As of 2026-12-06, Chinese coding and reasoning models have completed a new flagship generation: GLM-5.4, Qwen4-Max, MiniMax-M4, Step-5, Kimi K3.1 Pro, and DeepSeek-V4.1-Flash all standardize on a 1M-token context window, yet diverge sharply in architecture, single-request output ceilings, image multimodality, and agent thinking overhead. Here is the quick selection rule: pick glm-5.4 for deep looped reasoning and 128K output; pick qwen4-max for large-scale MoE code understanding and replacing retired qwen3.8-max; pick minimax-m4 or kimi-k3.1-pro for 131K long-form generation with vision (note that Kimi bills reasoning tokens as output); pick step-5 for native multimodal frontend replication and complex agent tool chains; and route batch migrations, background subagents, and 384K ultra-long outputs to deepseek-v4.1-flash or deepseek-v4-pro. On QCode, a single cr_ key connects directly to Claude Code (Anthropic protocol) and OpenAI-compatible tools, mixing Claude, GPT, Gemini, and all 11 active Chinese models seamlessly.

QCode is an independent third-party API service with no affiliation or official partnership with Zhipu, Alibaba Cloud, MiniMax, StepFun, Moonshot AI, DeepSeek, Anthropic, OpenAI, or Google. Model specs and active listings were verified on 2026-12-06 against qcode.cc/models and GET https://api.qcode.cc/api/v1/models; refer to qcode.cc/models for live rates and plan multipliers.

Updated 2026-12-06

Key Takeaways

  • 11 Exact Active IDs Across 6 Families: Verified 2026-12-06, QCode's active Chinese lineup spans Zhipu GLM (glm-5.4, glm-5.3, glm-5.3-flash), Alibaba Qwen (qwen4-max, qwen3.8-flash), Moonshot (kimi-k3.1-pro), DeepSeek (deepseek-v4-pro, deepseek-v4.1-flash, deepseek-v4-flash), MiniMax (minimax-m4), and StepFun (step-5), all synced on qcode.cc/models and GET https://api.qcode.cc/api/v1/models.
  • Four Output Ceiling Tiers: DeepSeek leads at 384,000 tokens; minimax-m4 and kimi-k3.1-pro reach 131,072 tokens; glm-5.4, glm-5.3, glm-5.3-flash, and qwen3.8-flash reach 128,000 tokens; qwen4-max caps at 65,536 tokens and step-5 at 64,000 tokens.
  • Multimodal Vision Is Now Standard: All five new flagships (glm-5.4, qwen4-max, minimax-m4, step-5, kimi-k3.1-pro) plus lightweight glm-5.3-flash and qwen3.8-flash support image input; note that text-only glm-5.3 does not accept screenshots.
  • Retired IDs & 1-to-1 Replacements: qwen3.8-max (-> qwen4-max), qwen3.7-plus (-> qwen3.8-flash or qwen4-max), kimi-k3 (-> kimi-k3.1-pro), and glm-5.2 (-> glm-5.4) are retired and return standard HTTP 404.
  • Dual Protocols on One cr_ Key: Sharing one unified USD credit pool, you can call Claude (claude-sonnet-5-5, claude-opus-5-5, claude-fable-5-2), GPT (gpt-6.2-sol, gpt-6.2-astra), Gemini (gemini-4-neon), and all 11 Chinese models; in Claude Code, switch anytime via /model <id> without changing gateway URLs.
  • Anti-Stall Optimization for Long Image Sessions: In screenshot-heavy Claude Code sessions, the QCode gateway automatically applies sliding-window trimming (keeping the latest 8 screenshots) so multi-megabyte Base64 payloads do not drag down TTFT.

December 2026 Chinese Coding Model Spec Landscape

Choosing a model starts with verifying real callable IDs, single-request output ceilings, and input modalities—not marketing claims. Verified on 2026-12-06, all 11 active models provide a 1M-token context window.

Five Flagships Head-to-Head

Model ID Vendor & Architecture Highlights Max Single Output Image Input Core Positioning
glm-5.4 Zhipu, Loop Transformer (28 layers × 2 loops) 128,000 Supported Complex reasoning, generalized coding, multimodal refactors
qwen4-max Alibaba Cloud, 2.4T/71B MoE + 328B N-gram Embedding 65,536 Supported Large-repo understanding, Chinese engineering docs, replaces qwen3.8-max
minimax-m4 MiniMax, long-output multimodal flagship 131,072 Supported Full-stack code generation, full-file single-pass edits, screenshot coding
step-5 StepFun, native multimodal agent flagship 64,000 Supported UI screenshot replication, complex multi-step tool orchestration
kimi-k3.1-pro Moonshot AI, explicit-reasoning flagship 131,072 Supported Hard bug diagnosis, long-chain reasoning (thinking billed as output)

Full 11-Model Catalog Across 6 Active Families

Beyond the five flagships above, DeepSeek and the lightweight Flash tiers carry the bulk of batch jobs and background subagent workloads:

Model Family Flagship ID Lightweight / Companion IDs Context & Output Highlights
Zhipu GLM glm-5.4 glm-5.3, glm-5.3-flash All 1M context / 128,000 output; glm-5.4 & Flash support images
Alibaba Qwen qwen4-max qwen3.8-flash All 1M context & image input; Flash reaches 128,000 max output
Moonshot Kimi kimi-k3.1-pro — (kimi-k3 retired) 1M context / 131,072 output, image input, thinking counts toward output
DeepSeek deepseek-v4-pro deepseek-v4.1-flash, deepseek-v4-flash All 1M context / 384,000 ultra-long output; V4.1 upgraded to 1017
MiniMax minimax-m4 — 1M context / 131,072 output, image input, canonical lowercase ID
StepFun step-5 — 1M context / 64,000 output, native multimodality & complex tool calling

Check qcode.cc/models for live rates and plan multipliers, or fetch the active catalog programmatically via GET https://api.qcode.cc/api/v1/models.

Deep Dive: Five Flagships & Head-to-Head Matchups

Spec tables often look similar on paper, but inside real IDEs and terminal agent loops, architectural differences translate immediately into pacing, tool-calling stability, and single-turn completeness.

GLM-5.4: Loop Transformer Deep Reasoning vs. Latency Trade-Off

glm-5.4 introduces Zhipu's first Loop Transformer architecture, looping 28 layers twice to deepen per-step reasoning without inflating static parameter count, while adding the image input missing from glm-5.3. It handles cross-file architecture analysis, edge-case hunting, and complex algorithms well, with 128,000 output tokens covering most refactors.

Watch pacing in practice: deep looped thinking means open-ended prompts can trigger long reasoning chains and slower end-to-end latency. Reserve glm-5.4 for well-scoped hard bugs or module-level refactors, and delegate routine edits to glm-5.3-flash.

Qwen4-Max: 2.4T/71B MoE + 328B N-gram Embedding Flagship

Released by Alibaba Cloud on 2026-11-16, qwen4-max combines a 2.4T total / 71B active MoE backbone with a 328B N-gram Embedding layer—delivering broad knowledge capacity, strong inference throughput, and native image input as the direct successor to retired qwen3.8-max.

For teams working heavily with Chinese specs, sprawling business codebases, and polyglot stacks (Java / Go / TypeScript / Python), qwen4-max delivers steady instruction following and structured output. Its main boundary on QCode is the 65,536-token single-request output cap—ample for typical file edits, though huge single-file generations fit 131K or 384K models better.

MiniMax-M4: 131K Long Output & Full-Stack Visual Coding

minimax-m4 carves out a crisp niche in December 2026: 1M context paired with 131,072 max output tokens and native image input. For building frontend component libraries, generating full-stack scaffolds in one shot, or turning mockups into complete multi-file code, its output headroom is roughly double qwen4-max or step-5, minimizing mid-stream cutoffs.

Mind the ID formatting: QCode's canonical ID is lowercase minimax-m4. Although the gateway tolerates MiniMax-M4, using minimax-m4 consistently prevents client validation mismatches and config drift.

Step-5: Native Multimodality & Complex Agent Tool Calling

StepFun's step-5 stands out for frontend and agent-focused engineers. With 1M context and 64,000 max output tokens, its strengths lie in two areas: crisp native image comprehension across error screenshots, architecture diagrams, UI mockups, and terminal captures; and reliable multi-step tool calling across tight "search -> edit -> test -> inspect failure -> patch" loops with fewer malformed arguments or loops.

For high-turn, lower-output-per-turn agent exploration (running shell, grep, and patch tools frequently in Claude Code or Cline), 64K output is rarely limiting—step-5's tool-calling discipline matters more.

Kimi K3.1 Pro: 131K Output & Explicit Reasoning Diagnosis

kimi-k3.1-pro replaces retired kimi-k3 with 1M context, 131,072 max output tokens, and image input. It remains a strong performer for digesting long Chinese technical specifications, breaking down intricate requirements, and performing deep code reviews.

Budget carefully when running kimi-k3.1-pro: reasoning tokens count toward output tokens. Hard diagnostic prompts can burn tens of thousands of thinking tokens, making it best suited for "fewer turns, high-value" deep reviews and tough bug hunts rather than high-frequency simple completions.

DeepSeek-V4.1-Flash & V4 Pro: The 384K Output Backbone

Even in a five-flagship roundup, any serious December 2026 stack includes DeepSeek. DeepSeek upgraded deepseek-v4.1-flash to DeepSeek-V4.1-Flash-1017 on 2026-11-13; together with deepseek-v4-pro and deepseek-v4-flash, all three active IDs support 1M context and 384,000 max output tokens.

For massive SQL/ORM migrations, repo-wide test generation, batch documentation translation, or filling Claude Code's fast background slot, deepseek-v4.1-flash is the simplest high-throughput workhorse.

Head-to-Head Decision Matrix

Matchup Edge of First Model Edge of Second Model Recommendation
qwen4-max vs glm-5.4 Balanced 2.4T/71B MoE, predictable pacing Deep Loop Transformer reasoning, ~2× output cap (128K) qwen4-max for steady daily refactors; glm-5.4 for hard problems & longer outputs
minimax-m4 vs qwen4-max 131,072 max output (~2× larger) for full-module writes 328B N-gram Embedding, strong large-repo Chinese comprehension minimax-m4 for new large modules & vision-to-code; qwen4-max for legacy repos
step-5 vs kimi-k3.1-pro Crisp multi-step tool calling & native visual UI iteration 131,072 output + deep explicit reasoning for long-doc audits step-5 for frequent tool loops & UI debugging; kimi-k3.1-pro for deep diagnosis
Five Flagships vs deepseek-v4.1-flash Multimodal screenshot comprehension & peak reasoning depth 384,000 ultra-long output, high speed for batch & subagents Flagships for core decisions & vision; deepseek-v4.1-flash for background chores

December 2026 Retired Model Migration Table

If your scripts, IDE plugins, or Claude Code configs hardcode older Chinese model IDs, requests to retired IDs return standard HTTP 404 starting 2026-12-06. Replace them 1-to-1:

Retired ID (Returns HTTP 404) Recommended Replacement Migration Notes Supported Protocols
qwen3.8-max qwen4-max Alibaba's new 2.4T/71B MoE flagship with image input /api & /openai/v1
qwen3.7-plus qwen3.8-flash or qwen4-max qwen3.8-flash (128K) for lightweight; qwen4-max for heavy reasoning /api & /openai/v1
kimi-k3 kimi-k3.1-pro 1M context / 131,072 output with image input /api & /openai/v1
glm-5.2 glm-5.4 Loop Transformer flagship adding image input & 128K output /api & /openai/v1
glm-5.1, kimi-k2.6, qwen3.7-max, qwen4-max-preview Active ID in same family Previously retired—swap to glm-5.4, kimi-k3.1-pro, qwen4-max /api & /openai/v1

If model_not_found or not_found_error persists after updating IDs, check protocol paths and env precedence in Complete Guide to model_not_found and 404 Errors.

Hybrid Claude Code & Multi-Tool Production Setup

Engineering teams rarely rely on a single model. A more resilient pattern puts international flagships (claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-2, gpt-6.2-sol, gpt-6.2-astra, gemini-4-neon) and all 11 Chinese models inside one unified USD pool under a single QCode cr_ key, routing by task stage:

Engineering Stage International Primary Chinese Companion Combined Benefit
Core architecture & high-risk changes claude-opus-5-5 / claude-sonnet-5-5 glm-5.4 / qwen4-max cross-review Dual-model second opinion catches blind spots
Frontend UI replication & visual bug fixing gemini-4-neon / claude-sonnet-5-5 step-5 / minimax-m4 / qwen4-max Native image understanding directly on mockups & error screenshots
Full-module generation & long migrations gpt-6.2-sol deepseek-v4-pro / minimax-m4 / kimi-k3.1-pro 131K–384K single-pass output without mid-file interruption
Background code search, summaries & unit tests claude-haiku-5-5 deepseek-v4.1-flash / qwen3.8-flash / glm-5.3-flash Offloads context and credit spend from primary model

Seamless Flagship Switching in Claude Code

Once Claude Code points to QCode's Anthropic Messages endpoint (https://api.qcode.cc/api), switch models via CLI flags or /model without touching gateway URLs or keys:

export ANTHROPIC_BASE_URL="https://api.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_your_key"

# Option 1: Launch directly with a Chinese flagship
claude --model glm-5.4

Inside a session, swap anytime for specific subtasks:

/model qwen4-max
/model minimax-m4
/model step-5
/model kimi-k3.1-pro

To keep your main thread on Claude Sonnet 5.5 while offloading background search and subtasks to a fast Chinese model, configure ~/.claude/settings.json:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.qcode.cc/api",
    "ANTHROPIC_AUTH_TOKEN": "cr_your_key",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash"
  },
  "model": "claude-sonnet-5-5"
}

Side-by-Side Evaluation in OpenAI-Compatible Tools & Scripts

For Cline, OpenCode, Continue, or benchmark scripts, use the OpenAI Chat Completions endpoint: global default https://api.qcode.cc/openai/v1, https://asia.qcode.cc/openai/v1 preferred in Mainland China, or https://us.qcode.cc/openai/v1 for US nodes—all sharing the same cr_ key:

from openai import OpenAI

client = OpenAI(
    api_key="cr_your_key",
    base_url="https://asia.qcode.cc/openai/v1",
)

prompt = "Write an async TypeScript HTTP request wrapper with exponential backoff and timeouts, plus unit tests."
candidates = [
    "glm-5.4",
    "qwen4-max",
    "minimax-m4",
    "step-5",
    "kimi-k3.1-pro",
    "deepseek-v4.1-flash",
]

for model_id in candidates:
    resp = client.chat.completions.create(
        model=model_id,
        messages=[{"role": "user", "content": prompt}],
    )
    print(model_id, resp.usage.prompt_tokens, resp.usage.completion_tokens)

TTFT Optimization for Long Multimodal Sessions

In Claude Code or IDE sessions, engineers frequently paste a dozen or more UI mockups, browser console captures, and architecture diagrams. Re-uploading every historical Base64 image on every turn quickly bloats payloads to megabytes, wasting context and spiking TTFT.

Calling these multimodal models through the QCode gateway triggers automatic sliding-window trimming (keeping the latest 8 images by default) on excess older screenshots, keeping immediate debugging context crisp while maintaining responsive first-token latency.

Selection Pitfalls & Live Rate Verification

Before standardizing a Chinese flagship across your team, verify four common pitfalls:

  • Do not estimate costs from memory or old posts: Model pricing shifts quickly, so this article does not hardcode QCode's USD rates for Chinese models. Check qcode.cc/models for live rates, context specs, and plan multipliers, and test small samples on your own repository to inspect actual usage.
  • Watch hidden thinking-token consumption: kimi-k3.1-pro bills reasoning tokens as output tokens, and glm-5.4 can stretch thinking steps under high reasoning depth. Track completion_tokens and total latency, not just input size.
  • Respect output ceilings and protocol paths: Do not force 64K–65.5K models (step-5, qwen4-max) to emit massive single-file dumps. Remember also that Chinese models support /api (Anthropic) and /openai/v1 (OpenAI Chat), not Codex Responses (/openai), while Claude models use /api only and GPT models use /openai only.
  • Always use canonical lowercase IDs: Even though QCode tolerates MiniMax-M4 for minimax-m4, step-5, qwen4-max, and glm-5.4 require strict lowercase and exact hyphens—copy directly from qcode.cc/models.

Frequently Asked Questions

How should I choose between Qwen4-Max and GLM-5.4 for coding?

Choose qwen4-max (2.4T/71B MoE + 328B N-gram Embedding, 65,536 max output) if you prioritize steady pacing, large Chinese business codebase comprehension, and a smooth upgrade from retired qwen3.8-max. Choose glm-5.4 if you need deeper logical reasoning, larger single-turn output headroom (128,000 tokens), and can tolerate Loop Transformer's longer thinking time. Both offer 1M context and image input.

What is the core difference between MiniMax-M4 and Qwen4-Max?

Both are new 1M-context, image-capable Chinese flagships, differing mainly in output headroom and focus: minimax-m4 offers 131,072 max output tokens—roughly double qwen4-max's 65,536—making it stronger for single-pass full-stack modules and long generation, whereas qwen4-max leverages its 2.4T/71B MoE + 328B N-gram Embedding for large-repo semantics and complex existing-code edits.

How do I migrate qwen3.8-max , qwen3.7-plus , kimi-k3 , or glm-5.2 after getting 404 errors?

Those four legacy IDs—along with earlier retired IDs (glm-5.1, kimi-k2.6, qwen3.7-max, qwen4-max-preview)—have been retired and return standard HTTP 404. Replace them 1-to-1: qwen3.8-max -> qwen4-max, qwen3.7-plus -> qwen3.8-flash or qwen4-max, kimi-k3 -> kimi-k3.1-pro, and glm-5.2 -> glm-5.4.

When should I pick Step-5 vs. Kimi K3.1 Pro for coding and agents?

step-5 (64,000 output) excels at native multimodal image understanding and complex multi-step agent tool calling—ideal for UI screenshot replication, log/chart debugging, and CLI-heavy automation loops. kimi-k3.1-pro (131,072 output) excels at long-context deep thinking and comprehensive code reviews, though reasoning tokens count toward output, fitting lower-frequency hard diagnostics best.

Do I need to change endpoints or keys when switching to Chinese flagships in Claude Code?

No. Once Claude Code is configured with ANTHROPIC_BASE_URL="https://api.qcode.cc/api" and your QCode cr_ key, you can run claude --model glm-5.4 directly or type /model qwen4-max, /model minimax-m4, or /model step-5 inside a session under the exact same key and unified USD pool.

Will pasting many screenshots in Claude Code make multimodal Chinese models slower over time?

Uploading dozens of unpruned high-res Base64 screenshots every turn would severely hurt TTFT. When calling image-capable models (glm-5.4, qwen4-max, minimax-m4, step-5, kimi-k3.1-pro) through QCode, the gateway automatically trims excess older screenshots via a sliding window (retaining the latest 8 images), preserving recent visual context while keeping responses snappy.

Run Chinese Flagships Alongside Claude, GPT & Gemini on a Daily Plan with One Key

The strongest production setup does not force an either/or bet on a single vendor subscription—it places the Claude 5 series, GPT-6.2, Gemini 4 Neon, and all 11 active Chinese models in one unified USD credit pool under a single cr_ key. If you code daily in Claude Code, Cline, or OpenCode, QCode's Daily plans refresh quota automatically every day for primary development and cross-model checks; if you prefer benchmarking glm-5.4, qwen4-max, minimax-m4, step-5, and kimi-k3.1-pro on a small batch first, start with the Pay-As-You-Go Pack. See Pricing Plans for current daily tiers, and qcode.cc/models for all active IDs and live unit rates.

Run Chinese Flagships Alongside Claude, GPT & Gemini on a Daily Plan with One Key

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack