gpt-oss-20b vs Qwen 3.8 27B

gpt-oss-20b (OpenAI, August 2025) and Qwen 3.8 27B (Alibaba, August 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 10× less than Qwen 3.8 27B on a typical 3:1 input-to-output mix. Qwen 3.8 27B reads more at once: a 1M-token context window against 131K.

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

At a glance

Released
5 August 2025
14 August 2026
Access
Open weights (unrestricted)
Open weights (unrestricted)
Country
United States of America
China

Price and API

Input, per 1M tokens
$0.018on Hugging FaceLowest
$0.04on Hugging Face
Output, per 1M tokens
$0.09on Hugging FaceLowest
$1.35on Hugging Face
Context window
131K tokens
1M tokensLargest
Max output
131K tokens
131K tokens
Takes
Text
Text, Image
Returns
Text
Text
Knowledge cutoff
June 2024
Not listed
Supports
ReasoningTool callingStructured outputOpen weights
ReasoningTool callingStructured outputFile inputOpen weights

Scale and training

Parameters
21B20,910,000,000
27B27,000,000,000Largest
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
27B dense
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

In their own words

Abstract
Not listed
We promised open weights for Qwen3.8. Now, time to meet them! 🎉 ⚡ Qwen3.8-27B: - A native multimodal dense model. With just 27B parameters, it outperforms Qwen3.7-Plus overall and shines in real-world coding & office workflows. - 262K native context, easily extendable to 1M tokens via YaRN. - Built for builders. Highly efficient, high-quality, and licensed under Apache 2.0. 🚀 The open weights for Qwen3.8-2.4T-A95B (Max-level) have also been released recently. Whether you're shipping lightweight applications with Qwen3.8-27B locally or building agents with Qwen3.8-2.4T-A95B, they're yours now! Read all

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
Qwen 3.8 27B · 1M tokens of context, 7.6× more than gpt-oss-20b.
Reading images and screenshots
Qwen 3.8 27B · Accepts image input through the API.

Questions people ask

Is gpt-oss-20b better than Qwen 3.8 27B?

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, Qwen 3.8 27B has the edge: 1M tokens of context, 7.6× more than gpt-oss-20b. For reading images and screenshots, Qwen 3.8 27B has the edge: accepts image input through the API. Try them on your own prompts in the AIPortalX playground before you commit.

Which is cheaper: gpt-oss-20b or Qwen 3.8 27B?

gpt-oss-20b: $0.018 in and $0.09 out per million tokens at Hugging Face. Qwen 3.8 27B starts at $0.04 in and $1.35 out per million tokens. These are list prices from the cheapest provider we track, and they change often.

Which has the bigger context window?

Qwen 3.8 27B, 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 Qwen 3.8 27B through one API?

Hugging Face, DeepInfra, Groq 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 Qwen 3.8 27B in August 2026.

Other comparisons