Create Moderation

Go to Product

Classifies if text violates OpenAI's Content Policy

Options

Body

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

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
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

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

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.