Skip to main content
POST
Moderations

Introduction

Moderate text for policy violations, compatible with the OpenAI Moderations API. This endpoint is one compliance tool among others; it does not replace your own safety governance or upstream policies. Public-facing services should also have abuse reporting, auditing, and enforcement.

Authentication

string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Request parameters

string | array
required
Text to moderate (string or array)
string
Moderation model, e.g. text-moderation-latest

Request example

Common parameters

  • input: One or more strings to check
  • model: Moderation model ID
Responses include results with flagged and per-category scores. See OpenAI Moderations.