Codzen

Create moderation

Classifies if text and/or image inputs are potentially harmful.

Classifies if text and/or image inputs are potentially harmful.

POST
/v1/moderations

Authorization

BearerAuth
AuthorizationBearer <token>

API key as bearer token in Authorization header

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://llm-gateway.codzen.ai/v1/moderations" \  -H "Content-Type: application/json" \  -d '{    "input": "string"  }'
{
  "id": "string",
  "model": "string",
  "results": [
    {
      "flagged": true,
      "categories": {},
      "category_scores": {}
    }
  ]
}