v1

latestOpenAPI 3.0.02026-07-262088144.5 KB
Moderations

Create chat moderation

Classifies messages in a conversation for harmful content. Accepts chat messages and supports a scope parameter to control which messages are evaluated.

Not compatible with the OpenAI SDK. Use /v1/moderations for SDK compatibility.

post/v1/chat/moderations

Request body

modelstring

The moderation model to use.

Response

A successful response.

idstring

Unique identifier for the moderation request.

modelstring

The model used for classification.