Interface CreateModerationRequest

Request body for a Create Moderation request, which classifies if text violates OpenAI's Content Policy.

Endpoint: POST https://api.openai.com/v1/moderations

Hierarchy

  • CreateModerationRequest

Properties

Properties

apiKey: string

Your OpenAI API key.

input: string

The text to classify.

Generated using TypeDoc