gpt-oss-20b vs Qwen4-Max

gpt-oss-20b (OpenAI, August 2025) and Qwen4-Max (Alibaba, November 2026), compared on price, context window, access and specs. gpt-oss-20b is the cheaper API at $0.018 in and $0.09 out per million tokens, about 59× less than Qwen4-Max on a typical 3:1 input-to-output mix. Qwen4-Max reads more at once: a 1M-token context window against 131K. gpt-oss-20b has open weights, so you can also run it on your own hardware.

Updated 5 December 2026 · read each row across; the best value in a row is marked

At a glance

Released
5 August 2025
16 November 2026
Access
Open weights (unrestricted)
API access
Country
United States of America
China

Price and API

Input, per 1M tokens
$0.018on Hugging FaceLowest
$1.41on DeepInfra
Output, per 1M tokens
$0.09on Hugging FaceLowest
$4.24on DeepInfra
Official API id
Not listed
alibaba/qwen4-max
Context window
131K tokens
1M tokensLargest
Max output
131K tokens
262K tokensLargest
Takes
Text
Text, Image, Video, PDF
Returns
Text
Text
Knowledge cutoff
June 2024
Not listed
Supports
ReasoningTool callingStructured outputOpen weights
ReasoningTool callingStructured outputFile input

Scale and training

Parameters
21B20,910,000,000
Not listed
Training compute
5.5 × 10²³ FLOP
Not listed
Training hardware
NVIDIA H100 SXM5 80GB
Not listed
Confidence
Confident
Confident

Notes

Parameters
Total parameters: 20.91B
Not listed
Training compute
"The training run for gpt-oss-120b required 2.1 million H100-hours to complete, with gpt-oss-20b needing almost 10x fewer" assuming "almost 10x fewer" means ~9x fewer: 4.94e24/9 = 5.49e23
Not listed
Dataset size
(pretraining FLOPs)/(6*3.6B active parameters)
Not listed

Which should you pick?

High-volume or budget workloads
gpt-oss-20b · Lowest list price: $0.018 in and $0.09 out per million tokens via Hugging Face.
Long documents, codebases or transcripts
Qwen4-Max · 1M tokens of context, 7.6× more than gpt-oss-20b.
Long answers in one response
Qwen4-Max · Up to 262K output tokens per response.
Self-hosting or fine-tuning
gpt-oss-20b · Open weights: you can download them and run them on your own GPUs.
Reading images and screenshots
Qwen4-Max · Accepts image input through the API.

Questions people ask

Is gpt-oss-20b better than Qwen4-Max?

It depends on the job. For high-volume or budget workloads, gpt-oss-20b has the edge: lowest list price: $0.018 in and $0.09 out per million tokens via Hugging Face. For long documents, codebases or transcripts, Qwen4-Max has the edge: 1M tokens of context, 7.6× more than gpt-oss-20b. For long answers in one response, Qwen4-Max has the edge: up to 262K output tokens per response. Try them on your own prompts in the AIPortalX playground before you commit.

Which is cheaper: gpt-oss-20b or Qwen4-Max?

gpt-oss-20b: $0.018 in and $0.09 out per million tokens at Hugging Face. Qwen4-Max starts at $1.41 in and $4.24 out per million tokens. These are list prices from the cheapest provider we track, and they change often.

Which has the bigger context window?

Qwen4-Max, with 1M tokens; gpt-oss-20b takes 131K. A larger window lets one request hold longer documents or conversations.

Where can I use gpt-oss-20b and Qwen4-Max through one API?

DeepInfra and OpenRouter serve all of them, so you can switch models without opening another account.

When were they released?

gpt-oss-20b in August 2025 and Qwen4-Max in November 2026.

Other comparisons