GPT OSS Safeguard 20B
import { streamText } from 'ai'
const result = streamText({ model: 'openai/gpt-oss-safeguard-20b', prompt: 'Why is the sky blue?'})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.