GPT OSS Safeguard 20B
GPT OSS Safeguard 20B is a 20-billion parameter open-source safety model from OpenAI, designed to classify and filter content for harmful or policy-violating material in AI application pipelines.
import { streamText } from 'ai'
const result = streamText({ model: 'openai/gpt-oss-safeguard-20b', prompt: 'Why is the sky blue?'})Playground
Try out GPT OSS Safeguard 20B by OpenAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Ask GPT OSS Safeguard 20B anything to try it out.
Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.
P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.
Direct request success rate on AI Gateway and per-provider. Visit the docs for more info.
More models by OpenAI
| Model |
|---|
About GPT OSS Safeguard 20B
GPT OSS Safeguard 20B was released on October 29, 2025 on AI Gateway as a specialized safety model in OpenAI's open-source initiative. Unlike general-purpose language models, it is designed specifically to classify content for safety and policy compliance.
The model operates as a guardrail layer in AI application pipelines. It evaluates text for categories of harmful content, policy violations, and other safety concerns, returning classification results that downstream logic can use to filter, flag, or modify responses. This dedicated safety evaluation is more reliable than relying solely on the generation model's built-in safety measures.
Open weights enable teams to inspect exactly how the model makes safety determinations and audit its behavior against their own safety requirements. This transparency is particularly valuable in regulated industries where safety measures must be documented and verifiable.
What To Consider When Choosing a Provider
- Configuration: GPT OSS Safeguard 20B is not a general-purpose language model. It's a specialized classifier designed to evaluate content for safety and policy compliance. Deploy it as a filter layer alongside generation models.
- Configuration: Open weights let you inspect the safety criteria and audit the model's behavior.
- Zero Data Retention: AI Gateway supports Zero Data Retention for this model via direct gateway requests (BYOK is not included). To configure this, check the documentation.
- Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.
When to Use GPT OSS Safeguard 20B
Best For
- Content moderation: Classifying user inputs and model outputs for harmful or policy-violating material
- Safety guardrails: Adding a dedicated safety layer to AI application pipelines
- Policy enforcement: Ensuring AI-generated content meets organizational or regulatory standards
- Pre-screening pipelines: Filtering inputs before they reach generation models
Consider Alternatives When
- General-purpose tasks: Any GPT model for chat, generation, or analysis tasks
- Built-in safety: Many GPT models include safety measures natively; use this model when you need an additional dedicated layer
- Proprietary moderation: OpenAI's moderation endpoint for a managed, non-open-source alternative
- Different model scales: Consider whether the 20B parameter scale is sufficient for your moderation needs
Conclusion
GPT OSS Safeguard 20B adds a transparent, customizable safety layer to AI application pipelines. As an open-source safety classifier available through AI Gateway, it enables teams to implement and audit content safety measures with full visibility into the model's behavior.