Moderations

Create moderation

Changed on

Analyze text for content policy violations using the moderation model and return classification results.

post/v2/router/moderations

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/router/moderations
  • Auth
    HTTP bearer

Request body

modelstring

The content moderation model you would like to use. Defaults to omni-moderation-latest

Example request

{
  "model": "openai/omni-moderation-latest"
}

Response

Returns moderation classification results

idstring required

The unique identifier for the moderation request

modelstring required

The model used to generate the moderation results

Changes

    • info

      the request property became optional

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • breaking

      the request property became required

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status