Moderations

Create moderation

Changed on

Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.

post/moderations

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/moderations
  • Auth
    HTTP bearer

Request body

Example request

{
  "input": "...text to classify goes here..."
}

Response

OK

idstring required

The unique identifier for the moderation request.

modelstring required

The model used to generate the moderation results.

Changes

    • breaking

      removed subschema #1 subschema #2 subschema #3 from the request property oneOf list

    • info

      added subschema #1 subschema #2 subschema #3 to the request property oneOf list

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status