Content Moderation
Check inputs and outputs against safety and content moderation models.
Content Moderation
POST/v1/moderations
Inference Key (Bearer zrv_...)
Screen text inputs against safety policies using moderation endpoints.
Inference Key TesterInteractive
Paste your Zorveus key to dynamically update all code snippets below.
Code Example
from openai import OpenAI
client = OpenAI(
base_url="https://api.zorveus.com/v1",
api_key="zrv_your_inference_key",
)
response = client.moderations.create(
model="openai/text-moderation-latest",
input="Sample text content for automated compliance screening.",
)
result = response.results[0]
print(f"Flagged: {result.flagged}")
print(f"Categories: {result.categories}")Was this page helpful?
Edit this page on GitHub