Create Moderation

Go to Product

Classifies if text violates OpenAI's Content Policy



Request body which must comply to the following JSON Schema:

  "required" : [ "input" ],
  "type" : "object",
  "properties" : {
    "input" : {
      "description" : "The input text to classify",
      "oneOf" : [ {
        "type" : "string",
        "example" : "I want to kill them.",
        "default" : ""
      }, {
        "type" : "array",
        "items" : {
          "type" : "string",
          "example" : "I want to kill them.",
          "default" : ""
      } ]
    "model" : {
      "description" : "Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.\n\nThe default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.\n",
      "nullable" : false,
      "example" : "text-moderation-stable",
      "anyOf" : [ {
        "type" : "string"
      }, {
        "type" : "string",
        "enum" : [ "text-moderation-latest", "text-moderation-stable" ]
      } ],
      "default" : "text-moderation-latest",
      "x-oaiTypeLabel" : "string"
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Configuration data.

Output Ports

Result of the request depending on the selected Result Format.
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found


This node has no views


  • No workflows found



You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.