The AI arena is free today

Open Superagent

GPT-5.1 Codex vs Qwen3.5-397B-A17B

GPT-5.1 Codex and Qwen3.5-397B-A17B are closely matched at 29.6 and 38.8 on the LLM Stats Score. Qwen3.5-397B-A17B is 3.2x cheaper per token.

OpenAI · Alibaba Cloud / Qwen Team · Updated for 2026

Which is better?

GPT-5.1 Codex and Qwen3.5-397B-A17B are closely matched on the overall LLM Stats Score at 29.6 and 38.8.

The models split the 2 individual benchmarks reported for both models evenly.

On price, Qwen3.5-397B-A17B is roughly 3.2x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

GPT-5.1 Codex also accepts a larger context window (400,000 input tokens), making it the stronger choice for long documents and large codebases.

Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose GPT-5.1 Codex

  • you process long inputs — it offers a 400,000 token context window

Choose Qwen3.5-397B-A17B

  • cost matters — it's about 3.2x cheaper per token
  • you want the most recent training data — it shipped Feb 2026
  • you need open weights you can self-host or fine-tune

At a glance

The differences that matter most.

Core performance indexes
29.6
#126
38.8
#61
29.8
#118
38.6
#59
21.0
#91
23.0
#75
10.5
#114
20.2
#59
Cost, coverage & limits
Benchmark wins
1 of 2
1 of 2
Input price
$1.25 / M
$0.45 / M
Output price
$10.00 / M
$3.00 / M
Context window
400,000
262,144

Individual benchmarks

3 reported for GPT-5.1 Codex · 38 for Qwen3.5-397B-A17B

2 shared

GPT-5.1 Codex outperforms in 1 benchmarks (Terminal-Bench 2.0), while Qwen3.5-397B-A17B is better at 1 benchmark (SWE-Bench Verified).

Both models are evenly matched across the benchmarks.

Wed Sep 09 2026 • llm-stats.com

Human preference

Blind head-to-head votes and playground preference scores

Pricing Analysis

Price comparison per million tokens

Qwen3.5-397B-A17B costs less

For input processing, GPT-5.1 Codex ($1.25/1M tokens) is 2.8x more expensive than Qwen3.5-397B-A17B ($0.45/1M tokens).

For output processing, GPT-5.1 Codex ($10.00/1M tokens) is 3.3x more expensive than Qwen3.5-397B-A17B ($3.00/1M tokens).

In conclusion, GPT-5.1 Codex is more expensive than Qwen3.5-397B-A17B.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Wed Sep 09 2026 • llm-stats.com
OpenAI
GPT-5.1 Codex
Input tokens$1.25
Output tokens$10.00
Best providerOpenAI
Alibaba Cloud / Qwen Team
Qwen3.5-397B-A17B
Input tokens$0.45
Output tokens$3.00
Best providerDeepinfra
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-5.1 Codex accepts 400,000 input tokens compared to Qwen3.5-397B-A17B's 262,144 tokens. Qwen3.5-397B-A17B can generate longer responses up to 262,144 tokens, while GPT-5.1 Codex is limited to 128,000 tokens.

OpenAI
GPT-5.1 Codex
Input400,000 tokens
Output128,000 tokens
Alibaba Cloud / Qwen Team
Qwen3.5-397B-A17B
Input262,144 tokens
Output262,144 tokens
Wed Sep 09 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

Both GPT-5.1 Codex and Qwen3.5-397B-A17B support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

GPT-5.1 Codex

Text
Images
Audio
Video

Qwen3.5-397B-A17B

Text
Images
Audio
Video

License

Usage and distribution terms

GPT-5.1 Codex is licensed under a proprietary license, while Qwen3.5-397B-A17B uses Apache 2.0.

License differences may affect how you can use these models in commercial or open-source projects.

GPT-5.1 Codex

Proprietary

Closed source

Qwen3.5-397B-A17B

Apache 2.0

Open weights

Release Timeline

When each model was launched

GPT-5.1 Codex was released on 2025-11-19, while Qwen3.5-397B-A17B was released on 2026-02-16.

Qwen3.5-397B-A17B is 3 months newer than GPT-5.1 Codex.

GPT-5.1 Codex

Nov 19, 2025

9 months ago

Qwen3.5-397B-A17B

Feb 16, 2026

6 months ago

2mo newer

Knowledge Cutoff

When training data ends

GPT-5.1 Codex has a documented knowledge cutoff of 2024-09-30, while Qwen3.5-397B-A17B's cutoff date is not specified.

We can confirm GPT-5.1 Codex's training data extends to 2024-09-30, but cannot make a direct comparison without Qwen3.5-397B-A17B's cutoff date.

GPT-5.1 Codex

Sep 2024

Qwen3.5-397B-A17B

Provider Availability

GPT-5.1 Codex is available from OpenAI. Qwen3.5-397B-A17B is available from DeepInfra, Novita.

GPT-5.1 Codex

openai logo
OpenAI
Input Price:Input: $1.25/1MOutput Price:Output: $10.00/1M

Qwen3.5-397B-A17B

deepinfra logo
Deepinfra
Input Price:Input: $0.45/1MOutput Price:Output: $3.00/1M
novita logo
Novita
Input Price:Input: $0.60/1MOutput Price:Output: $3.60/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against GPT-5.1 Codex and Qwen3.5-397B-A17B side-by-side, then vote on the output you prefer.

GPT-5.1 Codex
✓ Preferred
Qwen3.5-397B-A17B
Open in Playground

FAQ

Common questions about GPT-5.1 Codex vs Qwen3.5-397B-A17B.

Which is better, GPT-5.1 Codex or Qwen3.5-397B-A17B?

GPT-5.1 Codex and Qwen3.5-397B-A17B are closely matched on the LLM Stats Score at 29.6 and 38.8. GPT-5.1 Codex is made by OpenAI and Qwen3.5-397B-A17B is made by Alibaba Cloud / Qwen Team. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does GPT-5.1 Codex compare to Qwen3.5-397B-A17B in benchmarks?

GPT-5.1 Codex scores SWE-Bench Verified: 73.7%, SWE-Lancer: 66.3%, Terminal-Bench 2.0: 52.8%. Qwen3.5-397B-A17B scores MMLU-Redux: 94.9%, HMMT 2025: 94.8%, C-Eval: 93.0%, HMMT25: 92.7%, IFEval: 92.6%.

Is GPT-5.1 Codex cheaper than Qwen3.5-397B-A17B?

Qwen3.5-397B-A17B is 2.8x cheaper for input tokens. GPT-5.1 Codex costs $1.25/M input and $10.00/M output via openai. Qwen3.5-397B-A17B costs $0.45/M input and $3.00/M output via deepinfra.

What are the context window sizes for GPT-5.1 Codex and Qwen3.5-397B-A17B?

GPT-5.1 Codex supports 400K tokens and Qwen3.5-397B-A17B supports 262K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between GPT-5.1 Codex and Qwen3.5-397B-A17B?

Key differences include LLM Stats Score (29.6 vs 38.8), context window (400K vs 262K), input pricing ($1.25 vs $0.45/M), licensing (Proprietary vs Apache 2.0). See the full comparison above for benchmark-by-benchmark results.

Who makes GPT-5.1 Codex and Qwen3.5-397B-A17B?

GPT-5.1 Codex is developed by OpenAI and Qwen3.5-397B-A17B is developed by Alibaba Cloud / Qwen Team.