We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

OpenAI: gpt-oss-safeguard-20b

openai/gpt-oss-safeguard-20b
TextInput: textToolsReasoning131KAdded Oct 29, 2025

Try OpenAI: gpt-oss-safeguard-20b now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

OpenAI: gpt-oss-safeguard-20b at a glance

  • Input price is 83% lower than the median of 434 Text models.
  • Context window of 131,072 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • A typical request (1,000 input / 500 output tokens) costs about $0.000788.

About OpenAI: gpt-oss-safeguard-20b

OpenAI gpt-oss-safeguard-20b is a safety reasoning model from OpenAI, built on top of gpt-oss-20b. It is an open-weight model with 21B parameters in a Mixture-of-Experts (MoE) architecture, and OpenAI positions it for safety related work such as content classification, LLM filtering and trust oriented tasks. It was released by the provider on 2025-10-29 and sits in the text category on api14.

The model takes text as input and returns text as output. It has a context window of 131072 tokens and a maximum output of 65536 tokens, which leaves plenty of room for long inputs alongside a substantial generated response. Because it is a reasoning model, it can expose its reasoning behaviour, and the supported parameters include include_reasoning and reasoning for that purpose. It is built on a Mixture-of-Experts design, which OpenAI describes as offering lower latency for safety tasks.

Those characteristics point to a fairly specific set of uses. Content classification is the clearest one: sending text and asking for a category or label. LLM filtering follows from the same idea, where the model judges whether another model's input or output should pass through. Trust and safety workflows, including moderation style checks and policy oriented review, fit the description OpenAI gives. The long context window means you can pass large documents, transcripts or batches of content in a single request rather than chunking them first, and the large output ceiling supports detailed labels, explanations or structured results.

You call the model through api14's OpenAI-compatible API using the model id "openai/gpt-oss-safeguard-20b". Because the interface is OpenAI-compatible, existing OpenAI client libraries and request shapes work with only the base URL and model id changed. The supported request parameters are include_reasoning, max_tokens, reasoning, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools and top_p. In practice that means you can control sampling with temperature and top_p, cap output with max_tokens, use stop sequences, make runs reproducible with seed, request structured or JSON style output through response_format and structured_outputs, and give the model tools with tools and tool_choice. The reasoning and include_reasoning parameters let you decide whether reasoning content is surfaced in the response.

There are no stated limitations in the facts beyond the modality and context bounds, so the main thing to weigh is fit. Input and output are text only, so if you need image or audio handling this model is not the right choice. If your task is general conversation or generation rather than safety oriented classification and filtering, a general purpose model may suit you better. For classification, filtering and trust work where you want reasoning exposed and a long context, this model is a reasonable candidate to test.

How to call the OpenAI: gpt-oss-safeguard-20b API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-oss-safeguard-20b".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "openai/gpt-oss-safeguard-20b",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_tokensreasoningresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p

Specifications

Context length
131,072
Max output
65,536
Input
text
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

OpenAI: gpt-oss-safeguard-20b: frequently asked questions

How much does the OpenAI: gpt-oss-safeguard-20b API cost?
OpenAI: gpt-oss-safeguard-20b costs Input $0.26 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of OpenAI: gpt-oss-safeguard-20b?
OpenAI: gpt-oss-safeguard-20b reads up to 131,072 tokens per request: prompt, history and documents together. It writes up to 65,536 output tokens per response.
What can OpenAI: gpt-oss-safeguard-20b do?
OpenAI: gpt-oss-safeguard-20b accepts text and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call OpenAI: gpt-oss-safeguard-20b from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-oss-safeguard-20b". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: gpt-oss-safeguard-20b?
Comparable Text models at a similar price: Mistral: Mistral Small 4 (batch), ByteDance Seed: Seed 1.6 Flash, OpenAI: GPT-4o-mini (batch). Each runs through the same API key, so switching is one string.

OpenAI: gpt-oss-safeguard-20b community

New topic

This community has no topics yet. Open the first one about OpenAI: gpt-oss-safeguard-20b.