GPT OSS Safeguard 20B · edenai
gpt-oss-safeguard-20b is a safety reasoning model from OpenAI built upon gpt-oss-20b. This open-weight, 21B-parameter Mixture-of-Experts (MoE) model offers lower latency for safety tasks like content classification, LLM filtering, and trust...
Input, $/1M $0.075
Output, $/1M $0.30
Cache read $0.0375
Cache write —
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://api.edenai.run/v3/moderations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "groq/openai/gpt-oss-safeguard-20b", "input": "text to check"}'Python
import requests
r = requests.post(
"https://api.edenai.run/v3/moderations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "groq/openai/gpt-oss-safeguard-20b",
"input": "text to check"
},
)
print(r.json())JavaScript
const r = await fetch("https://api.edenai.run/v3/moderations", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "groq/openai/gpt-oss-safeguard-20b",
"input": "text to check"
}),
});
console.log(await r.json());Request (JSON)
{
"model": "groq/openai/gpt-oss-safeguard-20b",
"input": "text to check"
}Response (JSON)
{
"id": "modr-...",
"model": "groq/openai/gpt-oss-safeguard-20b",
"results": [
{
"flagged": false,
"categories": {
"harassment": false,
"violence": false
},
"category_scores": {
"harassment": 0.0001,
"violence": 0.0002
}
}
]
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Aedenai%7Cgroq/openai/gpt-oss-safeguard-20b, prices checked 2026-11-04; seller's page: https://edenai.co
Technical details
ID: offer:edenai|groq/openai/gpt-oss-safeguard-20b