Skip to main content
FuseFuse
IntegrationsOpenaiActions

Create OpenAI moderation

Classify text with the OpenAI Moderations API.

Agent markdown

moderations.create · OpenAI · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

None

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
inputstringYesminLength 1; maxLength 32768
modelstringNominLength 1; maxLength 200

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
idstringNominLength 1; maxLength 200
modelstringNominLength 1; maxLength 200
resultsarray<object>YesmaxItems 32
results[]objectYesadditionalProperties false
results[].flaggedbooleanYes
results[].flagged_categoriesarray<string>YesmaxItems 64
results[].flagged_categories[]stringYesminLength 1; maxLength 100

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "input": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32768
    },
    "model": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "input"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "model": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "flagged": {
            "type": "boolean"
          },
          "flagged_categories": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "maxItems": 64
          }
        },
        "required": [
          "flagged",
          "flagged_categories"
        ]
      },
      "maxItems": 32
    }
  },
  "required": [
    "results"
  ]
}