LLM Reference
AWS Bedrock

GPT OSS Safeguard 20B on AWS Bedrock

GPT-OSS · OpenAI

ServerlessOpen Source

Last refreshed 2026-05-19. Next refresh: weekly.

Why use GPT OSS Safeguard 20B on AWS Bedrock?

AWS Bedrock offers GPT OSS Safeguard 20B with pay-as-you-go pricing at $0.07/1M input tokens. AWS Bedrock is Amazon's fully managed foundation-model service, providing unified API access to top models from Anthropic, Meta, Mistral, and other leading AI labs with built-in tools for RAG, fine-tuning, and AI agent development.

Compare GPT OSS Safeguard 20B across 4 providers to find the best fit for your use case
Input / 1M
$0.070
Output / 1M
$0.20
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install boto3
Auth
export AWS_ACCESS_KEY_ID=...
Call
import boto3
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
    modelId="gpt-oss-safeguard-20b",
Model ID
gpt-oss-safeguard-20b

Request example

import boto3

# Reads AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION from env
client = boto3.client("bedrock-runtime", region_name="us-east-1")
response = client.converse(
    modelId="gpt-oss-safeguard-20b",
    messages=[{
        "role": "user",
        "content": [{"text": "Hello"}]
    }]
)
print(response["output"]["message"]["content"][0]["text"])

Gotchas

  • Use Amazon Bedrock model IDs, e.g. "anthropic.claude-3-opus-20240229-v1:0" for on-demand, or cross-region inference profile IDs like "us.anthropic.claude-opus-4-7-20251101-v1:0". These differ from the public model slug.
  • The endpoint template includes a region segment; set the same region in your SDK/client configuration.
  • The examples expect AWS_ACCESS_KEY_ID; rename it only if your application config maps the new variable.

Compare GPT OSS Safeguard 20B Across Providers

ProviderInput (per 1M)Output (per 1M)
GroqCloud$0.07$0.30
AWS Bedrock$0.07$0.20
OpenRouter$0.07$0.30
Vercel AI Gateway$0.07$0.30

Pricing

TypePrice (per 1M)
Input tokens$0.07
Output tokens$0.20

Capabilities

Function CallingTool UseStructured Outputs

About GPT OSS Safeguard 20B

GPT OSS Safeguard 20B is OpenAI's GPT-OSS model focused on content moderation and safety classification. It offers a 128K-token context window with weights openly available for self-hosting.

FAQ

What does GPT OSS Safeguard 20B cost on AWS Bedrock?

On AWS Bedrock, GPT OSS Safeguard 20B costs $0.07 per 1M input tokens and $0.20 per 1M output tokens.

What is the context window for GPT OSS Safeguard 20B on AWS Bedrock?

GPT OSS Safeguard 20B supports a 131,072 token context window on AWS Bedrock.

How does AWS Bedrock compare to other GPT OSS Safeguard 20B providers?

GPT OSS Safeguard 20B is available from 4 providers. The cheapest input pricing is $0.07/1M tokens from AWS Bedrock.

Who created GPT OSS Safeguard 20B?

GPT OSS Safeguard 20B was created by OpenAI as part of the GPT-OSS model family.

Is GPT OSS Safeguard 20B open source?

GPT OSS Safeguard 20B is open source according to the seed data.

Get Started

Model Specs

Released2025-08-05
Parameters20B
Context131K
ArchitectureDecoder Only
Knowledge cutoff2025-08

Related Models on AWS Bedrock