Skip to content
gpt-oss-20b logo

gpt-oss-20b

Verified

OpenAI's gpt-oss-20b handles long-context text tasks with precision.

OpenAILanguage ModelsClosed
Model page
Updated 2026-06-15

About gpt-oss-20b

gpt-oss-20b uses a transformer architecture optimized for extended sequences. OpenAI keeps the weights proprietary while providing API access. The 131072-token context enables coherent processing of lengthy documents and multi-turn dialogues.

Developers integrate the model into applications that require detailed text analysis or generation. Its text-only design suits tasks such as summarization, translation, and content creation. Organizations value the controlled deployment for consistent performance.

Capabilities

Long-context text reasoning
Code generation and debugging
Instruction following
Multi-turn dialogue
General knowledge retrieval
Summarization and analysis

How gpt-oss-20b compares

gpt-oss-20b (striped bar) vs other language models on intelligence, speed and price.

Price

USD per 1M output tokens · Lower is better · gpt-oss-20b ranks #8 of 98

$0.10
Qwen3 235B A22B Thinking 2507
$0.10
Qwen3 235B A22B Instruct 2507
$0.10
Granite 4.1 8B
$0.11
Granite 4.0 Micro
$0.12
LFM2-24B-A2B
$0.12
Gemma 3n 4B
$0.14
gpt-oss-20b
$0.15
Trinity Mini
$0.15
Rnj 1 Instruct
$0.18
DeepSeek V4 Flash
$0.18
gpt-oss-120b
$0.19
Qwen3 30B A3B Instruct 2507
$0.20
Nemotron 3 Nano 30B A3B

Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).

Best for

Long document analysis

The 131072 token context enables processing of full-length reports, books, or legal contracts within one session for summarization and extraction.

Extended conversation threads

Large context supports maintaining coherence across multi-turn dialogues that reference earlier details without truncation.

Large codebase review

The model can ingest entire repositories or multiple source files at once to identify patterns, dependencies, or issues.

Strengths & limitations

Strengths

  • +Efficient inference for a 20B model
  • +Strong long-context handling
  • +Flexible text-only deployment
  • +Good instruction adherence

Limitations

  • Smaller scale limits depth on hard reasoning
  • Text modality only
  • May lag behind larger frontier models

Cost calculator

Estimate what gpt-oss-20b would cost for your usage.

$0.00010
per request
$1
estimated / month

Based on gpt-oss-20b's $0.03/1M input · $0.14/1M output. Estimate only — actual cost varies by provider and caching.

Quick start

OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. Only the model slug changes between models.

JavaScript · openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "openai/gpt-oss-20b",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);

Model slug: openai/gpt-oss-20b

Editor's verdict

Our take on gpt-oss-20b

gpt-oss-20b is OpenAI's proprietary language models with a 131K-token context window.

At $0.14 per 1M output tokens, it is very cost-efficient for its class.

It is available through OpenAI's API and aggregators like OpenRouter.

Best suited to efficient inference for a 20b model and strong long-context handling.

Did you find this helpful?

Frequently asked questions

The model supports a context length of 131072 tokens.

User reviews

Real, verified reviews from the community shape this model's rating.

Loading reviews…

Sign in to review

Other gpt-oss models

Sibling versions in the gpt-oss family from OpenAI.

Promote gpt-oss-20b

Add this badge to your website, or share the tool.

DFeatured on Dhanasvigpt-oss-20b 1