---
last_updated: 2026-11-27
source_url: https://opper.ai/openai/gpt-oss-safeguard-20b
title: "GPT OSS Safeguard 20b by OpenAI"
description: "GPT OSS Safeguard 20B by OpenAI: open-weight reasoning model that classifies content against developer-defined policies at inference time."
---

# GPT OSS Safeguard 20b

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

Released 29 Oct 2025, 23 days after [GPT Image 1 Mini](https://opper.ai/openai/gpt-image-1-mini) · [Announcement](https://developers.openai.com/api/docs/changelog) · [All OpenAI releases](https://opper.ai/model-releases/openai)

GPT OSS Safeguard 20B is an open-weight reasoning model released by OpenAI as a research preview under the Apache 2.0 license, fine-tuned from GPT-OSS 20B for safety classification. It interprets developer-provided policies at inference time, classifying user messages, model completions, and full conversations against custom definitions.

The model uses chain-of-thought reasoning, which developers can inspect, to generalize across diverse policy scenarios with minimal retraining. It supports configurable reasoning effort (low, medium, high) and structured outputs for programmatic integration, covering input and output filtering, online content labeling, and offline batch review.

Because it lets teams bring their own taxonomy, definitions, and thresholds, GPT OSS Safeguard 20B suits trust and safety workflows that need adaptable, transparent moderation rather than fixed classifiers.

## Available routes

GPT OSS Safeguard 20b runs on 1 route through the Opper gateway. Prices are per 1M tokens. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=groq%2Fgpt-oss-safeguard-20b.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Groq](https://opper.ai/provider/groq) | `groq/gpt-oss-safeguard-20b` | US (United States) | Yes | No | $0.07 | $0.30 | $0.04 |

## Key info

- Model id: `groq/gpt-oss-safeguard-20b`
- Input: Text
- Output: Text
- Features: Structured output
- Context window: 128K
- Max output: 33K
- Input price: $0.07 per 1M tokens ($0.04 cache read)
- Output price: $0.30 per 1M tokens
- Released: 29 Oct 2025
- US residency available
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

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

### 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.

## Get started

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

GPT OSS Safeguard 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 Safeguard 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: "groq/gpt-oss-safeguard-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: "groq/gpt-oss-safeguard-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: "groq/gpt-oss-safeguard-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": "groq/gpt-oss-safeguard-20b",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use GPT OSS Safeguard 20b in your apps

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

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