Realtime TTS-2 is live. Built for realtime conversation that feels human. Learn more

Moderations

Create moderation

Classify text inputs for harmful content

POST/v1/moderations

Classifies one or more text inputs for harmful content. Schema-compatible with the OpenAI Moderations API — works with the OpenAI SDK.

The response includes standard OpenAI moderation categories as well as AILuminate safety classifications for more granular signals.

Authorizations

Authorizationstringrequired

Your authentication credentials. Pass your API key as a Bearer token: Bearer $INWORLD_API_KEY. You can create a key in one command with the Inworld CLI: inworld workspace add-key.

Body

application/json

inputoneOfrequired

A single string or an array of strings to classify for harmful content.

modelstringdefault: "inworld/moderation-latest"

The moderation model to use.