Tag: GLM-5.3-Flash

  • GLM-5.3-Flash vs Qwen3.8-Flash-Next: Which Cheap Coder Wins

    GLM-5.3-Flash beats Qwen3.8-Flash-Next on coding and costs less to rent: $0.075 per million input tokens on promo through September 9, versus roughly $0.15 on Qwen’s hosted Flash tier. Qwen wins on agentic work and activates 6B parameters against GLM’s 18B, so it is the better model to own. Rent GLM. Self-host Qwen.

    Two Chinese labs shipped a frontier-adjacent open-weight model on the same day. August 26, 2026: Z.ai released GLM-5.3-Flash, Alibaba released Qwen3.8-Flash-Next. Same week, same price bracket, and — as we will get to — very nearly the same architecture.

    This is the comparison that matters for anyone paying an API bill this quarter. Here is what the numbers actually say.

    What are GLM-5.3-Flash and Qwen3.8-Flash-Next?

    Both are sparse mixture-of-experts models built for cheap, long-context, agentic work. GLM-5.3-Flash is the multimodal one with a 1M-token window and an MIT license. Qwen3.8-Flash-Next is a preview of the Qwen4 architecture that activates only 6B parameters per token. Both released August 26, 2026.

    GLM-5.3-Flash: 320B total, 18B active, MIT

    Z.ai’s model carries 320B total parameters with 18B active per token, across 45 layers — 34 linear, 11 full attention — trained on a 30T-token corpus, per LLM-Stats’ launch breakdown.

    It handles text, image and video. The context window is 1,048,576 input tokens with 131,072 output tokens. The license is MIT — the most permissive terms of any model at this capability tier.

    Z.ai claims a 3x attention compute reduction and 4.4x KV cache savings versus the full GLM-5.3.

    Qwen3.8-Flash-Next: 6B active, Qwen4 preview

    Alibaba’s model is 125B in the main body plus a 51B n-gram table and a 4B multi-token-prediction head — roughly 180B stored — but only 6B parameters fire per token. It needs one-ninth the compute of Qwen3.7-Plus.

    Native context is 262,144 tokens, extensible to 1M with YaRN. The license is Qwen Community 1.0, not MIT. Alibaba reports up to 7.6x prefill and 4.9x decoding speedups at 1M tokens.

    How much does each model cost per million tokens?

    GLM-5.3-Flash is cheaper to rent, and it is not close during the promo. Z.ai lists $0.15 input, $0.03 cached input, $0.50 output per million tokens, with 50% off through September 9, 2026. Qwen3.8-Flash-Next has no first-party hosted list price at all — it shipped as weights only.

    Spec GLM-5.3-Flash Qwen3.8-Flash-Next
    Released Aug 26, 2026 Aug 26, 2026
    Total / active params 320B / 18B ~180B stored / 6B
    Native context 1,048,576 tokens 262,144 (1M via YaRN)
    Modalities Text, image, video Text, vision
    License MIT Qwen Community 1.0
    List input / output $0.15 / $0.50 No first-party rate
    Promo input / output $0.075 / $0.25 (to Sep 9)
    Cached input $0.03 Not published
    Nearest hosted sibling Qwen3.8-Flash: $0.16 / $0.47

    What that gap costs on a real workload

    Run 100M input and 20M output tokens a month — a mid-sized coding agent deployment. On GLM’s promo rate that is $7.50 plus $5.00, or $12.50. On Qwen3.8-Flash’s QwenCloud rate of $0.16 / $0.47, it is $16.00 plus $9.40, or $25.40.

    Roughly 2x. Both are rounding errors next to Qwen3.8-Max at $2.00 / $6.00 input-output — the Flash tier undercuts it by more than 10x on input, as DataCamp documented.

    Caching is where GLM pulls further ahead. At $0.03 per million cached input tokens, a repeated 500K-token repo context costs 1.5 cents to re-read. We covered the same dynamic in our breakdown of the cheapest 1M context model.

    Which is better for coding, GLM-5.3-Flash or Qwen3.8-Flash-Next?

    GLM-5.3-Flash wins coding. It scores 63.4 on DeepSWE 1.1 against Qwen’s 58.7, and BenchLM ranks it #13 of 146 on coding versus Qwen at #28. Qwen wins the agentic category decisively — #7 of 140 against GLM’s #36 — so the answer depends on whether your job is writing code or running tools.

    The benchmark split

    Benchmark GLM-5.3-Flash Qwen3.8-Flash-Next
    DeepSWE 1.1 63.4 58.7
    SWE-bench Pro Not published 62.5
    Toolathlon 78.4 Behind GLM
    Terminal Bench 2.1 84.3 Not published
    AutomationBench 48.8 Not published
    GPQA Diamond Not published 91.7
    LiveCodeBench v6 Not published 91.9
    CharXiv-R 89.4% 90.6%
    Agents’ Last Exam Behind Qwen 24.3 pass@1
    BenchLM overall 61.3 (#58/228) 61.3 (#57/228)
    LLM-Stats score 51.6 (#11) 50.5 (#14)

    Note the dead heat at the top line: both land on 61.3/100 at BenchLM, one rank apart. The aggregate hides the split underneath it.

    Where Qwen actually wins

    Qwen’s agentic numbers are the story. SWE-bench Pro 62.5 against Claude Opus 4.6 Max’s 53.4. CoWorkBench 73.9 against 68.2. JobBench 55.7 against 36.6 — a 19-point gap over a frontier closed model.

    It also takes instruction following, ranking #10 of 42 at 91.2. GLM is not measured on that axis.

    Reasoning is Qwen’s weak spot: 35.9 on Humanity’s Last Exam versus Opus’s 40.0. GLM wins the head-to-head on HLE and NL2Repo, per LLM-Stats’ comparison page.

    Why did two rival labs ship the same architecture?

    Because the efficiency math has one answer right now. MarkTechPost’s teardown found both models independently adopted four identical design choices — and the convergence is the real news, more than either model’s scorecard.

    The four shared choices

    • 3:1 linear attention ratio. Three cheap linear layers per full attention layer, compressing history into fixed recurrent states.
    • 4x context compression with sparse attention capped at exactly 2,048 tokens via a learned indexer. Both picked the same number.
    • Four gated residual streams replacing the single-stream transformer, controlled by data-dependent gates.
    • Muon optimizer, with fused matrices split before orthogonalization during training.

    Where they split: RoPE versus NoPE

    GLM dropped rotary position embeddings entirely, relying on linear layers for implicit position. Qwen kept RoPE — after finding that NoPE models “often failed to stop generating” during post-training alignment.

    That is a genuinely useful negative result: a failure mode invisible in pre-training metrics. Not everyone is convinced either way. MiniMax’s ablations found linear attention harms multi-hop reasoning, and M3 uses sparse softmax only.

    Is self-hosting cheaper than the API?

    For GLM-5.3-Flash, no. The FP8 checkpoint is about 306 GiB of weights needing roughly 386 GiB of VRAM — a minimum 8-GPU Hopper node. Two H200s at 282 GiB combined do not fit. For Qwen3.8-Flash-Next at 6B active, the answer flips: fewer active parameters means far cheaper serving at scale.

    The GLM hardware ladder, per LumaDock’s deployment guide:

    • BF16: ~772 GiB VRAM. Multi-node territory.
    • FP8: ~306 GiB weights, ~386 GiB recommended. 8-GPU Hopper node.
    • 4-bit GGUF: ~160 GB before overhead. Two to four GPUs, with quality trade-offs.
    • 1-bit to 3-bit (Unsloth): 100–128 GB combined RAM/VRAM. Mac Studio or DGX class.

    LumaDock’s verdict is blunt: an 8-GPU node costs more per day than most teams spend on the API per month. At $12.50 a month for our example workload, that is not a close call.

    Qwen is the opposite trade. Six billion active parameters is what makes it cheap to serve — the same argument we ran through on Qwen3.8-Max open weights versus API. The catch is the license: Qwen Community 1.0, not MIT. Read it before you build a product on it.

    Which model should you pick?

    Pick by workload, not by leaderboard. GLM for code generation, multimodal input and anything cost-sensitive you plan to rent. Qwen for tool-calling agents, instruction-heavy pipelines and any deployment you intend to own outright.

    Use case Pick Why
    Code generation / repo refactors GLM-5.3-Flash DeepSWE 63.4 vs 58.7; coding #13 vs #28
    Tool-calling agents Qwen3.8-Flash-Next Agentic #7/140; JobBench 55.7
    Document / video understanding GLM-5.3-Flash Multimodal #7/35; video support
    Long-context RAG GLM-5.3-Flash 1M native; $0.03 cached input
    On-prem / air-gapped Qwen3.8-Flash-Next 6B active; runs on far less iron
    Commercial product, license risk GLM-5.3-Flash MIT beats Qwen Community 1.0
    Lowest cost per token today GLM-5.3-Flash $0.075 / $0.25 through Sep 9
    Structured output pipelines Qwen3.8-Flash-Next Instruction following #10/42, 91.2

    Frequently asked questions

    Is GLM-5.3-Flash really MIT licensed?

    Yes. Z.ai released it under MIT, which permits commercial use, modification and redistribution without a revenue threshold. Qwen3.8-Flash-Next ships under Qwen Community License 1.0, which carries its own conditions.

    When does the GLM-5.3-Flash promo price end?

    September 9, 2026. After that, input goes from $0.075 to $0.15 and output from $0.25 to $0.50 per million tokens — a doubling. Budget for it now.

    Can I get Qwen3.8-Flash-Next through an API?

    Not at a first-party list price. It shipped as open weights on Hugging Face. The nearest hosted option is Qwen3.8-Flash on QwenCloud at $0.16 input / $0.47 output; OpenRouter lists a comparable Flash tier at $0.15 / $0.47.

    Which has the bigger context window?

    GLM-5.3-Flash, at 1,048,576 tokens native. Qwen3.8-Flash-Next is 262,144 native and reaches 1M only with YaRN extension.

    Is either one faster?

    BenchLM clocks Qwen3.8-Flash-Next at 73 tokens per second with 30.22s first-token latency; GLM is listed as not measured. Alibaba separately reports up to 7.6x prefill and 4.9x decoding speedups at 1M tokens.

    How do these compare to Western frontier models?

    On agentic coding, favorably. Qwen’s SWE-bench Pro 62.5 beats Claude Opus 4.6 Max’s 53.4. On broad reasoning they still trail — Qwen’s HLE 35.9 versus Opus’s 40.0.

    What hardware do I need to run GLM-5.3-Flash locally?

    An 8-GPU Hopper node for FP8. Community 1-bit to 3-bit GGUF builds run on 100–128 GB of combined RAM/VRAM, with real quality loss.

    The bottom line

    Rent GLM-5.3-Flash. Own Qwen3.8-Flash-Next.

    If you are buying tokens, GLM wins on price, coding accuracy, context length and license, and the $0.03 cached-input rate makes long-context agents genuinely cheap. Move before September 9 and lock in your usage patterns while the promo lasts.

    If you are standing up your own inference, Qwen’s 6B active footprint is the decisive number. Eighteen billion active parameters is three times the serving cost per token, and at scale that swamps a leaderboard gap of five DeepSWE points.

    The one scenario where you should not pick either: a commercial product where license terms carry legal weight and you cannot accept Qwen Community 1.0. There, GLM’s MIT license ends the argument by itself. For a wider look at coding agents, see our comparison of Claude Code vs Codex CLI and GLM-5.3 vs DeepSeek V4 Pro.

    Sources

  • Cheapest 1M Context Model: GLM-5.3-Flash vs Gemini 3.7 Flash

    GLM-5.3-Flash is the cheapest 1M context model worth running in production. Z.ai lists it at $0.15 per million input tokens against $0.75 for Gemini 3.7 Flash — five times cheaper — while scoring 57 on the Artificial Analysis Intelligence Index versus Gemini’s 56. Google keeps two real advantages: raw throughput and vision. Everything else favors the open-weights challenger.

    Z.ai shipped GLM-5.3-Flash on August 26, 2026, thirteen days after Google made Gemini 3.7 Flash generally available. Both models advertise a 1,048,576-token context window. Both target agentic coding and long-document work.

    The gap is price. And at 1M-token scale, price is the entire product decision.

    What is GLM-5.3-Flash?

    GLM-5.3-Flash is a natively multimodal mixture-of-experts model with 320 billion total parameters and 18 billion active per token, released under an MIT license. It routes each token through 8 of 288 experts across 45 layers, ships in native FP8, and holds a 1,048,576-token context window.

    That active-parameter count is the whole story. Z.ai is charging flagship-tier context for a model that only lights up 18B weights per forward pass.

    The architecture behind the price

    The model combines KDA linear-attention layers with NoPE sparse MLA layers. Per MarkTechPost’s launch coverage, that combination delivers roughly 3x less attention compute and a 4.4x smaller KV cache than GLM-5.3.

    KV cache is what makes long context expensive to serve. Shrink it 4.4x and you can price a 1M window like a short one.

    The jump over the previous generation is not cosmetic. Z.ai’s own numbers put DeepSWE v1.1 at 63.4%, up from 46.2% on GLM-5.2, and AutomationBench at 48.8%, up from 26.2% — a 22.6-point gain in one release cycle, according to LLM Stats.

    How much does the cheapest 1M context model actually cost?

    GLM-5.3-Flash lists at $0.15 per million input tokens and $0.50 output, with cached input at $0.03. Gemini 3.7 Flash lists at $0.75 input and $3.75 output on Google’s own model page. That is 5x on input and 7.5x on output, before any discount either side is running.

    Spec GLM-5.3-Flash Gemini 3.7 Flash
    Released Aug 26, 2026 Aug 13, 2026
    License MIT open weights Proprietary API
    Parameters 320B total / 18B active Undisclosed
    Input context 1,048,576 tokens 1,048,576 tokens
    Max output 131,072 tokens 65,536 tokens
    Input / 1M $0.15 $0.75
    Output / 1M $0.50 $3.75
    Cached input / 1M $0.03 $0.06 (Vertex)
    AA Intelligence Index 57 56
    Output speed 50.2 tok/s 301 tok/s
    Time to first token 1.47s 3.83s

    Pricing from Z.ai list rates and Google DeepMind’s Gemini Flash page. Speed and index figures from Artificial Analysis and Requesty’s Vertex listing. Resellers differ: OpenRouter lists GLM-5.3-Flash at $0.075 / $0.25 and Gemini 3.7 Flash at $0.375 / $1.875.

    What it costs to fill the window once

    Push a full 1,048,576-token context through each model, one time, and the arithmetic is brutal.

    GLM-5.3-Flash: $0.157. Gemini 3.7 Flash: $0.786. Same window, same task, a $0.63 difference per call.

    Run that 10,000 times a month — a modest document-processing pipeline — and you are looking at $1,573 versus $7,864. The $6,291 monthly delta is a headcount line item, not a rounding error.

    For context on how wide the field has gotten, Morph’s context-window survey clocked a 71x spread between the cheapest and priciest 1M window on the market, from $0.14 on DeepSeek V4 Flash to $10.00 on Claude Fable 5.

    The January 2027 price cliff

    Google’s $0.75 / $3.75 is an introductory rate. Its own page states the promotion expires December 31, 2026, after which Gemini 3.7 Flash reverts to $1.50 per million input and $7.50 per million output.

    On January 1, filling that same 1M window costs $1.57 on Gemini. Against GLM’s $0.157, that is a clean 10x.

    Z.ai is running a promotion too — 50% off through September 9, 2026 — but its post-promo list price is the $0.15 already quoted. One vendor’s discount expires into a doubling. The other’s expires into the number on the page.

    Which is better for coding agents, GLM-5.3-Flash or Gemini 3.7 Flash?

    Gemini 3.7 Flash wins the coding benchmarks by margins too small to justify a 7.5x output bill. It leads Terminal-Bench 2.1 85.8% to 84.3% and DeepSWE v1.1 65.3% to 63.4%. GLM takes HLE 55.3% to 53.6% and destroys Gemini on AutomationBench, 48.8% to 30.4%.

    A 1.5-point Terminal-Bench edge is inside the noise band of most agent harnesses. An 18.4-point AutomationBench gap is not.

    AutomationBench measures multi-step tool use and workflow completion — the thing you actually buy an agent model for. GLM-5.3-Flash scores 60% higher there in relative terms.

    Coding agents also burn output tokens, not input tokens. A long agentic run is thousands of generated tokens per step. That is precisely the axis where Gemini costs 7.5x more.

    Our earlier breakdown of GLM-5.3 against DeepSeek V4 Pro found the same pattern in the open-weight tier: near-parity capability, order-of-magnitude price separation.

    Where Gemini 3.7 Flash still wins

    Google has genuine leads that no discount closes:

    • Throughput: 301 tokens/second median output versus 50.2 for GLM-5.3-Flash — 6x faster generation.
    • Vision: BabyVision 70.9% against GLM’s 53.4%, a 17.5-point gap that Z.ai does not dispute.
    • Long-context recall: GDM-MRCR v2 at 128k scores 97.0%, among the strongest retrieval numbers published this year.
    • Desktop agents: OSWorld-2.0 at 47.9% and Code Arena at 1588 Elo for web development.
    • Vertical accuracy: Harvey LAB-AA at 90.7% on legal reasoning tasks.

    GLM does answer faster on the first token — 1.47s versus 3.83s — which matters for interactive chat. But once generation starts, Gemini pulls away hard.

    Is GLM-5.3-Flash worth it for multimodal work?

    Only for charts and documents, not for general vision. GLM-5.3-Flash posts 78.0% on Chartography against DeepSeek-V4-Flash-Vision-Exp’s 64.3%, but trails Gemini 3.7 Flash badly on BabyVision, 53.4% to 70.9%. Structured visual data is a strength. Open-ended image understanding is not.

    It also scores 62.4% on OfficeQA Pro, which points at the same conclusion: business documents, spreadsheets, slides and charts are where the multimodal stack earns its keep.

    If your pipeline reads invoices, financial statements or dashboards, GLM handles it at a fifth of the price. If it captions arbitrary photos, pay Google.

    We ran similar math on DeepSeek’s vision model against Claude Opus 4.8, where the per-image gap ran 23x. Cheap vision is now a solved category — you just have to match the model to the image type.

    Which model should you buy for your workload?

    Pick on token mix, not on leaderboard position. Input-heavy jobs at 1M scale go to GLM-5.3-Flash on cost alone. Latency-critical streaming and general vision go to Gemini 3.7 Flash. Coding agents are close on quality and lopsided on price.

    Use case Buy Why
    Bulk document / RAG ingestion GLM-5.3-Flash $0.157 vs $0.786 per full 1M window
    Long-horizon coding agents GLM-5.3-Flash AutomationBench 48.8 vs 30.4; 7.5x cheaper output
    Real-time chat / streaming UX Gemini 3.7 Flash 301 tok/s vs 50.2 tok/s
    General image understanding Gemini 3.7 Flash BabyVision 70.9 vs 53.4
    Charts, invoices, office docs GLM-5.3-Flash Chartography 78.0; OfficeQA Pro 62.4
    Needle-in-haystack retrieval Gemini 3.7 Flash GDM-MRCR v2 at 97.0%
    Data that cannot leave your VPC GLM-5.3-Flash MIT weights, self-hostable
    Terminal-Bench maximalists Gemini 3.7 Flash 85.8 vs 84.3 — for a 5x premium

    Should you self-host GLM-5.3-Flash instead?

    Only above roughly 100 million tokens a month. The FP8 checkpoint is 306 GiB of weights before KV cache and needs NVIDIA Hopper or newer. That is a multi-GPU node running continuously against an API bill of $0.15 per million input tokens.

    The MIT license is the real asset here, not the savings. It permits commercial use, modification and redistribution with no revenue thresholds — which is what makes GLM viable for regulated buyers who cannot route customer data through a third-party API.

    Weights are published on Hugging Face as zai-org/GLM-5.3-Flash. Our Qwen3.8-Max self-hosting cost analysis laid out the crossover math in detail; the shape is unchanged, only the weight file got smaller.

    Frequently asked questions

    Is GLM-5.3-Flash actually the cheapest 1M context model?

    Not quite. DeepSeek V4 Flash fills a 1M window for about $0.14 against GLM’s $0.157. But GLM scores 57 on the Artificial Analysis Intelligence Index and adds native multimodality, which makes it the cheapest capable one.

    How much cheaper is GLM-5.3-Flash than Gemini 3.7 Flash?

    Five times cheaper on input ($0.15 vs $0.75 per million) and 7.5 times cheaper on output ($0.50 vs $3.75). After Google’s introductory pricing expires December 31, 2026, the input gap widens to 10x.

    Does GLM-5.3-Flash really have a 1M context window?

    Z.ai specifies 1,048,576 tokens. OpenRouter lists its routed endpoint at 1,310,720 tokens with 131,072 max output — double Gemini 3.7 Flash’s 65,536-token output ceiling.

    Which model is faster?

    Gemini 3.7 Flash generates 6x faster at 301 tokens per second versus 50.2. GLM-5.3-Flash responds faster initially, at 1.47 seconds to first token against Gemini’s 3.83 seconds.

    Are these benchmark scores independently verified?

    Partly. The Artificial Analysis Intelligence Index scores are third-party. The Terminal-Bench, DeepSWE and AutomationBench figures are vendor self-reported on both sides — LLM Stats flags this explicitly for GLM-5.3-Flash.

    Can I use GLM-5.3-Flash commercially?

    Yes. The weights ship under an MIT license, which permits commercial use, modification and redistribution without revenue caps or usage restrictions.

    What happens to Gemini 3.7 Flash pricing in 2027?

    Google’s model page states the introductory rate ends December 31, 2026, moving to $1.50 per million input tokens and $7.50 per million output from January 1, 2027.

    The bottom line

    Buy GLM-5.3-Flash. For any workload dominated by input tokens or agent output tokens, it is the correct default — 5x to 7.5x cheaper at an intelligence index one point above Gemini 3.7 Flash, with a bigger output ceiling and weights you can take in-house.

    Keep Gemini 3.7 Flash for exactly two jobs: user-facing streaming where 301 tokens per second is the product, and general image understanding where 17.5 BabyVision points decide whether the feature works at all.

    The broader signal matters more than either model. Google discounted a Flash-tier model and still got undercut 5x by open weights released thirteen days later. Google’s own price sheet says that gap widens to 10x in four months.

    If you are still routing 1M-token jobs through a proprietary Flash endpoint in 2027, you are paying a tenfold convenience tax. Compare that against our Gemini 3.7 Flash versus Claude Sonnet 5 cost-per-point analysis and the direction is unmistakable.

    Sources