Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Moderations

Given text and/or image inputs, classifies if those inputs are potentially harmful.

Create moderation
ModerationCreateResponse moderations().create(ModerationCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/moderations
ModelsExpand Collapse
class Moderation:
class ModerationImageUrlInput:

An object describing an image to classify.

enum ModerationModel:
class ModerationMultiModalInput: A class that can be one of several variants.union

An object describing an image to classify.

class ModerationTextInput:

An object describing text to classify.