Write a custom probe
Where: Guardrails → Content Guardrails → Add Guardrail → Create custom probe- Choose Create probe with policy (You can define your own LLM policy) and click Next.
- Fill in Add Custom GuardRail using the table below, then click Save. If required fields are empty you see Please fill in all required fields.
- On Guard Rail details fill in the second table and click Finish. The probe is then available in every profile.
Use a standalone guardrail endpoint
Open the profile and click Use Guardrail. It shows ready-made curl, Python and JavaScript snippets with Copy. Call/v1/moderations with the profile name as model and the text as input, and your API key in the Authorization header: