New: LLM Rankings are live!
See how the top LLMs rank on real infrastructure tasksQwen4 Max on iac-bench 2026-11
How Qwen4 Max did on iac-bench 2026-11: an overall composite of 78.9, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.
Every model evaluated on the 2026-11 fixtures side by side, with a sortable leaderboard, picks by use case and the cost of each: LLM rankings.
| Developer | Alibaba |
| API identifier | qwen/qwen4-max |
| Access | OpenRouter, Alibaba endpoint |
| Weights | Closed |
| List price (USD / M tokens, in / out) | 1.425 / 4.275 (OpenRouter, 2026-11-24) |
| Evaluated | 2026-11-23 (generation) · 2026-11-24 (judge) |
| Attempts | 18 (6 fixtures × 3 samples) |
| Overall composite | 78.9 (95% CI 77.5–81.1) |
| Rank | 14 of 24 (95% rank interval 11–16) |
| Mechanical only / judge only | 78.0 (rank 15) / 87.3 (rank 13) |
| Failed gates · insecure attempts | 0/18 · 2/18 |
| Estimated cost, all 18 attempts | $2.16 |
Summary
Qwen4 Max is new in 2026-11. It ranks 14th of 24 with an overall composite of 78.9 and a 95% rank interval of 11–16. It is not ordered against Gemini 4 Carbon just above it (win probability 0.61) or Gemini 4 Hydrogen just below it (0.72). It finishes ahead of Gemini 4 Neon in 11% of bootstrap resamples and ahead of Kimi K3.1 Pro in 4%, and ahead of GPT-6 Luna and GLM-5.3 in 96%.
All 18 attempts planned. Two carry a security finding: G003 e2 leaves basic-auth publishing
on (G003 H2), and G004 e1 does not enforce encrypted connections on its secondary cluster
(G004 H3). All three Aurora global database attempts (G004) have Secrets Manager manage the
master password on the primary cluster, a known apply failure, so their composites are
halved (median 40.0, 18th). Its strongest fixtures are App Service (G003, 91.3, eighth) and
S3 (G001, 83.9, twelfth); Cloud SQL (G002, 81.7) is 19th. All 18 attempts cost $2.16.
Its distinguishing weakness is documentation that contradicts the code. The judge gave Documentation 0 in 27 of 54 readings, tied with Gemini 3.8 Flash for the fifth-highest count in the field.
Changes since the 2026-10 report
Qwen4 Max was not part of the 2026-10 release; this is its first report.
Scores
| Fixture | Composite median (range) | Rubric median | Expertise | Judge median | ✗ gate | ⚠security | Median inputs | Median output tokens | Median time | Median cost |
|---|---|---|---|---|---|---|---|---|---|---|
| G001 · S3 | 83.9 (83.1–92.9) | 0.822 | 5/7 | 89.5 | 0/3 | 0/3 | 7 | 8,870 | 222 s | $0.068 |
| G002 · Cloud SQL | 81.7 (77.5–84.9) | 0.818 | 6/9 | 84.2 | 0/3 | 0/3 | 10 | 10,529 | 157 s | $0.084 |
| G003 · App Service | 91.3 (90.8–92.0) | 0.926 | 3/5 | 92.1 | 0/3 | 1/3 (H2) | 24 | 17,085 | 406 s | $0.144 |
| G004 · Aurora global | 40.0 (39.6–42.1) | 0.411 | 4/8 | 78.9 | 0/3 | 1/3 (H3) | 17 | 20,890 | 397 s | $0.158 |
| G005 · GKE | 87.5 (84.1–90.5) | 0.878 | 5/10 | 92.1 | 0/3 | 0/3 | 20 | 15,079 | 191 s | $0.118 |
| G006 · Storage | 88.9 (85.4–89.1) | 0.920 | 4/8 | 86.8 | 0/3 | 0/3 | 8 | 9,161 | 197 s | $0.070 |
Rubric items not at full credit, counted over attempts that planned: G001: H9 2/3, H12 3/3, H13 3/3, H15 2/3, A5 1/3, B1 2/3; G002: H3 1/3, H4 3/3, H5 3/3, H8 1/3, H9 3/3, H11 3/3, A3 1/3, A4 3/3, A5 2/3, A6 1/3, B1 2/3; G003: H2 1/3, A7 2/3; G004: H3 1/3, H9 3/3, H11 1/3, H12 3/3, H17 3/3, A3 2/3, A5 3/3, A8 1/3, B1 1/3, known apply failure in 3/3 (score ×0.5); G005: H9 1/3, H11 1/3, H16 2/3, A5 3/3, B1 2/3; G006: H7 3/3, H9 3/3, A4 1/3. Definitions are in Scoring criteria.
Strengths
- S3 with lifecycle rules. Every S3 attempt offers transition or expiration rules and
noncurrent-version handling (G001
H6,H7kept in 3/3), which GPT-6 Astra, GPT-6 Luna, GPT-6.1 Terra and GPT-6.2 Astra lack in all of theirs. G001 e1 scores 92.9, losing only access logging and half the tagging item. - Broad G004 operational coverage. Every attempt creates a customer-managed KMS key in each region, keeps at least 14 days of backups at defaults (35 in two attempts), and enables Performance Insights and enhanced monitoring (E3, E4, 3/3). G004 e1 also loads pgaudit and logs connections (E1, E2).
- App Service close to complete. Every attempt sets the container port and pulls images with a managed identity (E2, E4, 3/3); two have autoscale rules (E1) and one uses Key Vault references (E5). Rubric median 0.926.
- Storage account names made unique and valid (E4, 3/3), with portal access defaulting to Entra ID and local users off (E2, E8, 3/3).
- Outputs. The judge gave Outputs 2 in all 54 readings.
Weaknesses
- Secrets Manager on a global member cluster (G004, 3/3). Every attempt sets
manage_master_user_password = trueon the primary cluster, which Aurora rejects for global databases (F1), so each composite is multiplied by 0.5. - An unprotected DR cluster in G004 e1. The secondary cluster names no parameter group,
so
rds.force_sslis not set there (G004H3, a mandatory failure). A comment in the same file says cluster parameters are inherited from the primary (excerpt below); the judge called that comment inaccurate (Documentation 0 in all three readings). - Documentation that contradicts the code. Examples, each 0 in at least one judge
reading:
- Cloud SQL (3/3): the
tierdescription suggestsdb-perf-optimized-N-2, an Enterprise Plus tier, while every attempt hardcodesedition = "ENTERPRISE"; - S3 e2: the README's logs example sets
expiration_days = 30with the default transition of 90 days, which the module's own precondition rejects; - GKE: a wrong Workload Identity member format (e1) and a wrong description of authorized networks (e3);
- storage account e3: a claim that App Service passes the
AzureServicesbypass.
- Cloud SQL (3/3): the
- Large GKE interfaces: 19–23 inputs against a budget that reaches zero at 21 (G005
A5, 3/3). Two attempts defaultmaster_ipv4_cidr_blockto a fixed172.16.0.0/28, so a second cluster in the same VPC fails to create (G005H16). - Cloud SQL gaps (3/3). No
deletion_policy(G002H11), backups and point-in-time recovery always on (G002H4/H5at 0.75), no maintenance-window input (G002A4), the region fed to the instance rather than the provider (G002H9at 0.5), and nocloudsql.instanceUsergrant, so the IAM users it creates cannot log in (E6, 0/3). G002 e1 also hardcodes deletion protection with no opt-out (G002H3). - Basic auth left on in G003 e2. Neither publishing flag is set on the app or the slot; the other two attempts disable both on both.
- No blob access logs or lifecycle policy on the storage account (G006
H7,H9, 3/3). - Provider constraints that admit a new major in 7 of 18 attempts (
B1), including the unbounded>= 5.0and>= 5.40.0.
Characteristic patterns
- Inputs added for specialists the brief does not describe. The judge marked Interface
design 1 in 29 of 54 readings, citing knobs such as
abort_multipart_upload_dayson S3,performance_insights_retention_periodandkms_deletion_window_in_dayson G004, andmin_master_versionandenable_intranode_visibilityon GKE. - Inline security-group rules on G004. All three attempts declare
ingressinline onaws_security_group(Inline Resource Configuration 0 in 8 of 9 G004 readings, 1 in the ninth). - Validation that rejects valid values, such as a Performance Insights retention check
that rejects 731 days (G004 e3), a maintenance start time limited to whole hours (G005 e3)
and a
locationregex that rejects "West Europe" (G006 e1). - Long, commented files. Median output is 14,631 tokens per attempt, and the G004 modules run to 624–725 source lines.
Representative excerpt
G004/qwen4-max-e1/secondary.tf lines 7–12
# Notes on global-database semantics:
# * credentials, database name and cluster parameters are inherited from
# the primary - they are intentionally NOT set here
# * a region-local CMK is required for the encrypted secondary storage
# * the cluster can only be created once the primary has an instance
# (hence the explicit depends_on)
G004/qwen4-max-e1/secondary.tf lines 24–32
port = var.port
storage_encrypted = true
kms_key_id = aws_kms_key.secondary.arn
db_subnet_group_name = aws_db_subnet_group.secondary.name
vpc_security_group_ids = [aws_security_group.secondary.id]
iam_database_authentication_enabled = true
The secondary cluster of G004 e1 sets no parameter group, on the strength of a comment saying cluster parameters are inherited from the primary. Without one, rds.force_ssl is not enforced on the cluster that becomes the writer after a failover (G004 H3, a mandatory failure); the judge scored the comment as incorrect documentation.


