Documentation

Moderations

POST /v1/moderations scores content for policy or safety workflows.

Use it when

  • You want to pre-screen user input
  • You need flags and category scores before generation or publishing

Code examples

1curl -X POST https://api.navy/v1/moderations \
2  -H "Authorization: Bearer sk-navy-YOUR_KEY" \
3  -H "Content-Type: application/json" \
4  -d '{
5    "model": "omni-moderation-latest",
6    "input": "Example text to classify."
7  }'

Parameters

  • model (string, optional) — text-moderation-stable, text-moderation-latest, or omni-moderation-latest
  • input (string or array, required) — Text to check for policy violations
Docs Assistant
I’m here to help with NavyAI docs. Ask about endpoints, auth, models, request bodies, or integration details.