provider Moderations POST /moderations
@utdk/openai /moderations
Classifies if text and/or image inputs are potentially harmful. Learn more in the [moderation guide](/docs/guides/moderation).

Try it

Authentication
Configure credentials for OpenAI API
createmoderation
POST/moderations

Input

required

Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.

The content moderation model you would like to use. Learn more in [the moderation guide](/docs/guides/moderation), and learn about available models [here](/docs/models#moderation).

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import openai from '@utdk/openai';

await openai.createmoderation({
  "model": "omni-moderation-latest"
})