AI Gateway

gpt-oss-safeguard-20b

openai/gpt-oss-safeguard-20b

OpenAI's first open weight reasoning model specifically trained for safety classification tasks. Fine-tuned from GPT-OSS, this model helps classify text content based on customizable policies, enabling bring-your-own-policy Trust & Safety AI where your own taxonomy, definitions, and thresholds guide classification decisions.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/gpt-oss-safeguard-20b',
prompt: 'Why is the sky blue?'
})