OpenAI APIs · Schema

CreateModerationRequest

Artificial IntelligenceEmbeddingsImage GenerationLanguage ModelsSpeech

Properties

Name Type Description
input object The input text to classify for moderation
model string The content moderation model to use (text-moderation-latest, text-moderation-stable, omni-moderation-latest)
View JSON Schema on GitHub

JSON Schema

openai-apis-createmoderationrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateModerationRequest",
  "title": "CreateModerationRequest",
  "type": "object",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "The input text to classify for moderation"
    },
    "model": {
      "type": "string",
      "description": "The content moderation model to use (text-moderation-latest, text-moderation-stable, omni-moderation-latest)",
      "default": "omni-moderation-latest",
      "examples": [
        "omni-moderation-latest"
      ]
    }
  }
}