POST
/v1/moderationsClassify whether text violates content policy
Authentication
Send your virtual key as Authorization: Bearer sk-nemo-…. One key works across every model and modality.
Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
| model | string | optional |
| input | string | required |
Response200
{
"id": "modr-abc123",
"model": "omni-moderation-latest",
"results": [
{
"flagged": false,
"categories": {
"violence": false
},
"category_scores": {
"violence": 0.001
}
}
]
}Errors
| Status | Meaning |
|---|---|
| 400 | 400 — Guardrail blocked the request |
| 402 | 402 — Not enough credits |
| 429 | 429 — one of: rate_limit_exceeded (RPM limit exceeded); tpm_limit_exceeded (TPM limit exceeded) |
| 503 | 503 — Credit system unavailable |