GET

/v1/schemas/openai/moderation/moderations

kind inputactivity moderationhash f288f0b8…extracted Oct 18, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
d1d2debade3c506a5842099954ed1fbe31619de35f10a7c13b1152bfe5d28313
{
  "fetchedAt": 1792300231,
  "extractorVersion": "1",
  "verifiedAt": null
}

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*enumAlways `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*enumAlways `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", …}]}