How to Use GPT-oss Safeguard 20B in n8n
GPT-oss Safeguard 20B classifies text against safety rules you supply and can explain each decision. Compared with GPT-oss Safeguard 120B, it targets lower latency and specialized moderation tasks.
Prompts to try with GPT-oss Safeguard 20B in n8n
Copy an example into n8n, or ask in your own words.
Each morning, use GPT-oss Safeguard 20B to classify new forum posts. Flag direct threats of violence, allow disagreement, and send the post ID and decision to the review queue.
Each evening, use GPT-oss Safeguard 20B to screen new product reviews. Flag explicit admissions of payment for positive ratings; allow praise without evidence of an incentive. Report flagged review IDs.
Every hour, use GPT-oss Safeguard 20B to review new gaming forum posts. Flag offers to sell cheating software and allow reports of suspected cheating. Keep the decisions for moderator review.
Each day, use GPT-oss Safeguard 20B to check newly generated assistant responses against our current written safety policy. Report response IDs, decisions, and applicable rules.
Each week, use GPT-oss Safeguard 20B to label a sample of recently completed text conversations under our harassment policy. Compare its decisions with moderator labels and report disagreements.
How to set up GPT-oss Safeguard 20B in n8n
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send n8n this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Create a key
Create a key under API keys in the console.
- Add an MCP Client node
In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:
https://api.spiral.ai/mcp
- Pick a tool
The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run GPT-oss Safeguard 20B in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds GPT-oss Safeguard 20B, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run GPT-oss Safeguard 20B
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "openai/gpt-oss-safeguard-20b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: n8n finds GPT-oss Safeguard 20B on Spiral, shows the price and runs it.
GPT-oss Safeguard 20B providers and prices
Spiral runs GPT-oss Safeguard 20B through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.001602 per run at the default inputs. $0.0975 per 1M input tokens, $0.39 per 1M output tokens.
Settings you can ask for
Ask n8n for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 65536 | The most output tokens to generate. | |
| Temperature | 0 to 2 |
Every API field of OpenAI: gpt-oss-safeguard-20b is on its tool page: open its card above.
What can you do with GPT-oss Safeguard 20B in n8n?
Review new text on a schedule under a consistent safety policy. Collect the labels for a moderation queue or a recurring audit.
Community post review
Classify forum posts against written rules for threats, harassment, or prohibited promotion.
Assistant response checks
Review generated responses against your safety policy before deciding whether to show them.
Incoming message screening
Label user requests under your product's safety rules before passing them to another assistant.
Conversation review
Evaluate complete text conversations when a single message does not provide enough context for a policy decision.
Review authenticity screening
Flag product reviews that match your written criteria for suspected fabrication or undisclosed incentives.
Stored content labeling
Apply a defined safety taxonomy to archived text for a Trust and Safety review project.
More on GPT-oss Safeguard 20B and n8n
Overview
GPT-oss Safeguard 20B in other agents
Questions about GPT-oss Safeguard 20B in n8n
Can n8n use GPT-oss Safeguard 20B?
Yes. Add Spiral to n8n as an MCP server, and n8n can find and run GPT-oss Safeguard 20B like any built-in tool.
How much does GPT-oss Safeguard 20B cost in n8n?
Up to $0.001602 per run at the default inputs. $0.0975 per 1M input tokens, $0.39 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.
Do I need an OpenRouter account to use GPT-oss Safeguard 20B in n8n?
You need no OpenRouter account. n8n uses one Spiral API key for every tool, and Spiral runs GPT-oss Safeguard 20B on its own OpenRouter account.
How long does it take to set up GPT-oss Safeguard 20B in n8n?
About two minutes: create a key, then add an MCP Client node, then pick a tool.
Does n8n wait while GPT-oss Safeguard 20B runs?
GPT-oss Safeguard 20B runs in the background. n8n starts the run, checks on it and gives you the text, json when it's ready.
What is GPT-oss Safeguard good at?
It labels text according to safety policies you provide. Use it to review community posts, check assistant responses, or classify conversations under your own rules.
Can GPT-oss Safeguard replace a general chat or coding model?
OpenAI recommends it for safety classification. For general conversation or software development, OpenAI recommends GPT-oss instead.
How should I write a moderation policy?
Separate instructions, definitions, decision criteria, and examples. Define what is allowed as carefully as what violates the rules.
Which reasoning setting should I test?
Test low, medium, and high effort on the same labeled examples. Choose based on classification results and the response time your task allows.
What are its main limitations?
It handles text, so image or audio moderation requires a separate model. A dedicated classifier trained on a large labeled dataset can also outperform it on complex risks.
Start using GPT-oss Safeguard 20B in n8n
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into n8n:
set up https://spiral.ai/SKILL.md


