AI Coding · Rankings

Best Open-Weight AI Models for Coding in 2026

Last ranked August 30, 2026 · ToolStep Editorial Team

The open-weight coding model market exploded in August 2026: DeepSeek V4 Pro went official, Zhipu shipped GLM-5.3 and its Flash sibling, Alibaba released the Qwen3.8 open family, and Tencent open-sourced Hy4 preview — all within four weeks. This page ranks the best open-weight AI models for coding in 2026 by the evidence that actually exists: published coding benchmarks, context windows, per-token cost, deployment practicality, and license terms. It is designed to be updated as new weights and benchmarks land — the best answer here changes monthly.

Ranking snapshot — August 30, 2026

1. DeepSeek V4 Pro (top published coding performance, MIT) · 2. GLM-5.3-Flash (best capability-per-dollar, MIT) · 3. Tencent Hy4 preview (most capable spec, thinnest evidence, Apache-2.0) · 4. Qwen3.8-Flash-Next (most efficient to serve; trails GLM on shared coding suites) · 5. Qwen3.8-2.4T-A95B (max-scale open option). All benchmarks vendor-reported unless noted.

How We Rank

The Ranking at a Glance

#ModelParams (total/active)ContextPublished coding evidenceLicenseBest for
1DeepSeek V4 Pro1.6T / —1MTB2.1 87.9 · DeepSWE 62.7MITTop open coding performance, self-host
2GLM-5.3-Flash320B / 18B1M (128K out)TB2.1 84.3 · DeepSWE 63.4 · NL2Repo 56.3MITCapability per dollar, API + self-host
3Hy4 preview770B / 49B1M+Blind expert eval 2.99/4 (no numeric scores)Apache-2.0Most capable-spec Apache-2.0 model
4Qwen3.8-Flash-Next125B / 6B262K → 1MDeepSWE 58.7 · SWE-bench Pro 62.5 · LiveCodeBench v6 91.9Qwen Community v1.0 (card)Cheapest self-host footprint
5Qwen3.8-2.4T-A95B2.4T / 95BNot detailed in repoApache-2.0Max-scale open experimentation

#1DeepSeek V4 Pro — Best Published Coding Performance

DeepSeek's official release (August 13, 2026, V4-Pro-0813) is the only open model this month with frontier-adjacent published numbers across the hardest suites: Terminal-Bench 2.1 87.9, DeepSWE v1.1 62.7, CyberGym 83.3 — per DeepSeek's published evaluations (vendor-reported; GPT-5.6 Sol still leads some suites per the same table). It pairs a 1M-token context with MIT weights and official SGLang/vLLM deployment. The catch is pricing: the August 16 schedule raised output to $3.96/M peak / $1.98/M off-peak (from $0.87), so it is no longer the value pick it was. Full DeepSeek V4 Pro review →

Best for: teams that want the best-documented open coding performance and can self-host or shift to off-peak API hours.

#2GLM-5.3-Flash — Best Capability-Per-Dollar

Zhipu's Flash-tier release (August 26) delivers near-flagship agentic coding at a tenth of flagship pricing: Terminal-Bench 2.1 84.3, DeepSWE 63.4, NL2Repo-Bench 56.3 (vendor-reported), a native 1M context, MIT weights (~328GB FP8), and API pricing of $0.15/$0.50 per million tokens — $0.075/$0.25 during the launch discount until September 9. It leads Zhipu's own tool-use leaderboards (Toolathlon-Verified 78.4) and runs on four official engines (SGLang, vLLM, TokenSpeed, KTransformers). Full GLM-5.3-Flash review → · Pricing analysis →

Best for: developers who want published coding numbers, a real 1M context, and the cheapest capable API — or MIT weights to self-host.

#3Tencent Hy4 Preview — Most Capable Spec, Thinnest Evidence

Tencent's first open flagship (August 28) is the scale play: 770B total / 49B active, 1M+ context, Apache-2.0 weights released at launch with official vLLM/SGLang images. Its evidence is a blind expert evaluation — 163 experts scored it 2.99/4 vs GLM-5.3's 2.92 on engineering tasks (vendor-run) — with no public numeric benchmark tables. Tencent's own repo flags an over-reasoning tendency. If you want the most capable-spec permissively-licensed model you can download today, this is it; if you want benchmark tables, they haven't been published. Full Hy4 preview review → · Hy4 vs GLM-5.3 →

Best for: self-hosting teams prioritizing scale and permissive licensing over published benchmark evidence.

#4Qwen3.8-Flash-Next — Most Efficient to Serve

Alibaba's Qwen4 experimental release (August 26) runs just ~6B active parameters with a 262K native context (extendable to 1M) and public weights (Qwen Community License v1.0 per the model card) — the cheapest open model of the group to serve, with a training-cost claim of ~1/9 of Qwen3.7-Plus that appears in third-party coverage of the release. Its official card publishes coding scores (DeepSWE 1.1 58.7, SWE-bench Pro 62.5, LiveCodeBench v6 91.9) that trail GLM-5.3-Flash on the suites both report (DeepSWE 63.4, NL2Repo 56.3 — vendor-reported), and the 51B N-gram embedding layer plus vision components inflate real memory. The hosted sibling Qwen3.8-Flash API is the production delivery form. Full Qwen3.8-Flash-Next review →

Best for: GPU-constrained self-hosters and researchers who value efficiency over published coding evidence.

#5Qwen3.8-2.4T-A95B — Max-Scale Open Option

Alibaba's open Qwen3.8 family (August 12) brought a Qwen-Max-class model to open release for the first time: Qwen3.8-2.4T-A95B (2.4T total / 95B active, Apache-2.0) plus Qwen3.8-27B (August 14). The repo defers detailed results to the model cards and serving examples use 262K contexts. At 2.4T parameters it is a serious infrastructure commitment — the choice for teams that specifically want maximum open scale. (Covered in our Qwen3.8 series review.)

Best for: labs and enterprises with multi-node GPU fleets exploring max-scale open models.

Also Tracking

Decision Guide

How This Page Updates

This is a living ranking. It changes when: (1) GLM-5.3 weights release, (2) Hy4 publishes numeric benchmarks, (3) Qwen publishes coding scores for Flash-Next, (4) any leader changes pricing, or (5) independent verification (e.g., Artificial Analysis-style testing) lands for this cohort. We will revise the ranking — not just append news — on each of those events.

Final Verdict

In August 2026, open-weight coding finally became a real alternative to closed models: DeepSeek V4 Pro holds the best published numbers, GLM-5.3-Flash holds the best price-performance, Hy4 preview holds the best spec, and Qwen3.8-Flash-Next holds the best efficiency — with MIT, Apache-2.0, and Qwen Community licenses across the board. The rational pick is workload-dependent, and every benchmark is still vendor-reported, so the strongest move is the cheapest one: benchmark GLM-5.3-Flash and Hy4 preview on your own tasks now, while the free windows and discounts last, and let real evidence — not vendor tables — pick your winner.

Related: GLM-5.3-Flash vs Qwen3.8-Flash-Next · Hy4 vs GLM-5.3 · Best Long-Context Models 2026 · Best AI Coding Assistant 2026

FAQ

What is the best open-weight model for coding in 2026?

By published evidence (August 30, 2026): DeepSeek V4 Pro for top scores (TB2.1 87.9, vendor-reported); GLM-5.3-Flash for price-performance (TB2.1 84.3 at $0.15/$0.50).

Which open-weight model is best for self-hosting?

Qwen3.8-Flash-Next for footprint (~6B active); DeepSeek V4 Pro for documented performance; GLM-5.3-Flash for capability + MIT. Measure VRAM before choosing.

Is GLM-5.3 open weight?

Not yet (as of August 30, 2026) — weights pending safety hardening. GLM-5.3-Flash is open under MIT today.

What is the cheapest open-weight coding API?

GLM-5.3-Flash ($0.075/$0.25 during launch discount; $0.15/$0.50 list). Qwen3.8-Flash (≈$0.11/$0.38) is cheaper at list.

Which open-weight model has the best license?

MIT (DeepSeek V4 Pro, GLM-5.3-Flash) is the most permissive; Apache-2.0 (Hy4 preview; Qwen3.8-27B and 2.4T-A95B per the repo) adds an explicit patent grant and attribution requirements; Qwen3.8-Flash-Next's card lists the Qwen Community License v1.0 — verify per model.

Sources (accessed August 30, 2026): vendor official documentation and announcements — DeepSeek V4 Pro (DeepSeek published evaluations), Zhipu GLM-5.3-Flash (docs.bigmodel.cn, ModelScope), Tencent Hy4 preview (official newsroom, GitHub repo), Alibaba Qwen3.8 (model card, QwenLM/Qwen3.8 repo). All benchmarks vendor-reported and reproduced as published; ToolStep claims no laboratory test results. See our editorial policy.