v14

latestOpenAPI 3.0.3raw.githubusercontent.com2023-06-27173980.4 KB

Moderates text content.

post/api/ai/moderation

Request body

text_contentstring required

Response

OK

idstring

The unique identifier for the moderation request.

statusstring

The status of the moderation process.

timestampinteger

The timestamp when the moderation request was processed.

Example response

{
  "id": "78f34ff3-08d5-4000-93f2-237ab46a3013",
  "status": "success",
  "timestamp": 1687729008633,
  "content": {
    "sexual": "5.2880e-7",
    "hate": "0.0000031912",
    "violence": "0.097897",
    "self-harm": "0.070380",
    "sexual/minors": "4.9098e-7",
    "hate/threatening": "2.4003e-8",
    "violence/graphic": "0.0000020674"
  }
}