ZvenoAI
API Reference

Moderations

POST
/v1/moderations

Модерация контента

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "http://localhost:8080/v1/moderations" \  -H "Content-Type: application/json" \  -d '{    "input": null,    "model": "string"  }'
{
  "id": "string",
  "model": "string",
  "results": [
    {
      "categories": {
        "property1": true,
        "property2": true
      },
      "category_applied_input_types": {
        "property1": [
          "string"
        ],
        "property2": [
          "string"
        ]
      },
      "category_scores": {
        "property1": 0.1,
        "property2": 0.1
      },
      "flagged": true
    }
  ]
}