---
last_updated: 2026-11-27
source_url: https://opper.ai/openai/gpt-oss-20b
title: "GPT OSS 20b by OpenAI"
description: "GPT-OSS 20B by OpenAI: open-weight Apache 2.0 model, 21B params (3.6B active), near o3-mini, for efficient and on-device reasoning."
---

# GPT OSS 20b

By [OpenAI](https://opper.ai/openai).

Released 5 Aug 2025, 56 days after [O3 Pro](https://opper.ai/openai/o3-pro) · [Announcement](https://deploymentsafety.openai.com/gpt-oss) · [All OpenAI releases](https://opper.ai/model-releases/openai)

GPT-OSS 20B is an open-weight Mixture-of-Experts language model released by OpenAI in August 2025 under the Apache 2.0 license, alongside the larger 120B variant. It has 20.9B total parameters with 3.6B active per token across 24 layers, and can run on devices with around 16GB of memory.

The model matches or exceeds OpenAI o3-mini on common benchmarks while staying highly efficient. It supports reasoning, tool use with function calling, and structured outputs, fitting cost-conscious agentic workflows and local inference.

Its MoE design selects the top 4 of 32 experts per token, with a 128k context window, giving developers a compact open-weight option that keeps strong reasoning capability.

## Available routes

GPT OSS 20b runs on 7 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by AWS Bedrock, FlexAI, Greenference and 2 more. [See every OpenAI model hosted in the EU](https://opper.ai/models/eu/openai). One route also sells flex and priority processing: the same model at another price, picked per request with service_tier. [How service tiers work](https://docs.opper.ai/build/gateway/service-tiers). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=gpt-oss-20b.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [AWS Bedrock](https://opper.ai/provider/aws-bedrock) | `aws/gpt-oss-20b-eu` | EU | Yes | No | $0.07 | $0.30 | Input price |
| [AWS Bedrock](https://opper.ai/provider/aws-bedrock), Flex | `aws:eu:flex/gpt-oss-20b` | EU | Yes | No | $0.04 | $0.15 | $0.04 |
| [AWS Bedrock](https://opper.ai/provider/aws-bedrock), Priority | `aws:eu:priority/gpt-oss-20b` | EU | Yes | No | $0.12 | $0.53 | $0.12 |
| [AWS Bedrock](https://opper.ai/provider/aws-bedrock) | `aws:gb/gpt-oss-20b` | United Kingdom | Yes | No | $0.11 | $0.47 | Input price |
| [FlexAI](https://opper.ai/provider/flexai) | `flexai:eu/gpt-oss-20b` | EU | Yes | No | $0.02 | $0.10 | $0.0030 |
| [Greenference](https://opper.ai/provider/greenference) | `greenference/gpt-oss-20b` | EU | Yes | No | $0.0090 | $0.04 | $0.0045 |
| [Groq](https://opper.ai/provider/groq) | `groq/gpt-oss-20b` | US (United States) | Yes | No | $0.07 | $0.30 | $0.04 |
| [OVHcloud](https://opper.ai/provider/ovhcloud) | `ovhcloud/gpt-oss-20b` | EU (France) | Yes | No | $0.04 | $0.16 | Input price |
| [Regolo](https://opper.ai/provider/regolo) | `regolo/gpt-oss-20b` | EU (Italy) | Yes | No | $0.11 | $0.46 | Input price |

## Key info

- Model id: `gpt-oss-20b` (routes across AWS Bedrock, FlexAI, Groq, OVHcloud, Regolo)
- Input: Text
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 128K
- Max output: n/a
- Input price: $0.11 per 1M tokens
- Output price: $0.47 per 1M tokens
- Released: 5 Aug 2025
- EU residency available on AWS Bedrock, FlexAI, Greenference, OVHcloud and Regolo
- US residency available on Groq
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

Each route hosting GPT OSS 20b has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### AWS Bedrock — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: Always on, keeps nothing
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-14.

### AWS Bedrock — United Kingdom

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GB; unknown.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: Always on, keeps nothing
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: unknown

Verified by Opper on 2026-11-23.

### FlexAI — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-11-10.

### Greenference — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Subprocessor access: Subprocessors may read content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-21.

### Groq — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### OVHcloud — France

Zero data retention: nothing is logged or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged or used for training.
- Training: No training on customer data.
- Logging: None
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-11-18.

### Regolo — Italy

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Subprocessor access: No subprocessor reads content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-07-30.

## Best for

Where GPT OSS 20b ranks among the models on Opper with a score for each use case (0 to 100).

- [Multilingual](https://opper.ai/models?use=multilingual): 75.2 (Tasks across languages)
- [Agents](https://opper.ai/models?use=agents): 0.1 (Terminal-Bench 4.0 and AutomationBench)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/gpt-oss-20b)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #276 of 523 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Efficient
- Output speed: 128 tok/s
- Intelligence Index (previous version): 10.0

### Coding

- Terminal-Bench 4.0: 0%
- SciCode: 39%
- LiveCodeBench: 78%

### Agentic & knowledge work

- AutomationBench: 0%
- GDPval: 0%
- GDP.pdf: 2%
- Briefcase (Elo): 0
- Terminal-Bench Hard: 11%
- τ²-Bench Telecom: 60%

### Science & reasoning

- HLE Diamond: 5%
- Humanity's Last Exam: 11%
- GPQA Diamond: 69%
- Long-context reasoning: 35%

### Knowledge

- MMLU-Pro: 75%

### Math & instruction following

- AIME 2025: 89%
- IFBench: 65%

## Get started

Call GPT OSS 20b through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

GPT OSS 20b is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call GPT OSS 20b
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "gpt-oss-20b",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "gpt-oss-20b",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "gpt-oss-20b",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-oss-20b",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use GPT OSS 20b in your apps

Pick your tool to see how to run it on GPT OSS 20b through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gpt-oss-20b)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gpt-oss-20b)
- [Codex](https://opper.ai/apps/codex/gpt-oss-20b)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gpt-oss-20b)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gpt-oss-20b)
- [Aider](https://opper.ai/apps/aider/gpt-oss-20b)
- [Goose](https://opper.ai/apps/goose/gpt-oss-20b)
- [Droid](https://opper.ai/apps/droid/gpt-oss-20b)
- [OpenCode](https://opper.ai/apps/opencode/gpt-oss-20b)
- [Pi](https://opper.ai/apps/pi/gpt-oss-20b)
- [OpenClaw](https://opper.ai/apps/openclaw/gpt-oss-20b)
- [Hermes](https://opper.ai/apps/hermes/gpt-oss-20b)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gpt-oss-20b)
- [OmniRoute](https://opper.ai/apps/omniroute/gpt-oss-20b)
- [Cursor](https://opper.ai/apps/cursor/gpt-oss-20b)
- [Cline](https://opper.ai/apps/cline/gpt-oss-20b)
- [Continue](https://opper.ai/apps/continue/gpt-oss-20b)
- [Kilo Code](https://opper.ai/apps/kilo-code/gpt-oss-20b)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gpt-oss-20b)
- [Zed](https://opper.ai/apps/zed/gpt-oss-20b)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gpt-oss-20b)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gpt-oss-20b)
- [n8n](https://opper.ai/apps/n8n/gpt-oss-20b)
- [LibreChat](https://opper.ai/apps/librechat/gpt-oss-20b)
- [Open WebUI](https://opper.ai/apps/open-webui/gpt-oss-20b)
- [See all apps](https://opper.ai/apps)

## Other models from OpenAI

- [GPT-6.2 Astra](https://opper.ai/openai/gpt-6-2-astra)
- [GPT-6 Astra](https://opper.ai/openai/gpt-6-astra)
- [GPT-6.2 Sol](https://opper.ai/openai/gpt-6-2-sol)
- [GPT-6.1 Sol](https://opper.ai/openai/gpt-6-1-sol)
- [GPT-6.1 Terra](https://opper.ai/openai/gpt-6-1-terra)
- [GPT-6 Luna](https://opper.ai/openai/gpt-6-luna)
