GET

/v1/schemas/openai/moderation/moderations

kind inputactivity moderationhash fd21238e…extracted Nov 17, 2026version currentsource upstream spec ↗

Request body

2 properties · 1 required · 2 $defs
propertytypedescriptionconstraints
input*string | string[] | ModerationImageURLInput | ModerationTextInput[]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.
modelstring | enumThe content moderation model you would like to use. Learn more in [the moderation guide](https://developers.openai.com/api/docs/guides/moderation), and learn about available models [here](https://developers.openai.com/api/docs/guides/moderation).

Types

2 $defs

ModerationImageURLInputobject

An object describing an image to classify.

type*constAlways `image_url`."image_url"
image_url*objectContains either an image URL or a data URL for a base64 encoded image.

ModerationTextInputobject

An object describing text to classify.

type*constAlways `text`."text"
text*stringA string of text to classify.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"openai","endpointId":"moderations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}