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
client.Moderations.New(ctx, body) (*ModerationNewResponse, error)
POST/moderations
ModelsExpand Collapse
type Moderation struct{…}
type ModerationImageURLInput struct{…}

An object describing an image to classify.

type ModerationModel string
type ModerationMultiModalInputUnion interface{…}

An object describing an image to classify.

type ModerationTextInput struct{…}

An object describing text to classify.