GET
/v1/schemas/openai/moderation/moderations
Accept:
kind inputactivity moderationhash f288f0b8…extracted Oct 18, 2026version currentsource upstream spec ↗
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traced1d2debade3c506a5842099954ed1fbe31619de35f10a7c13b1152bfe5d28313{
"fetchedAt": 1792300231,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
2 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| 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. | |
| model | string | enum | The 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 $defsModerationImageURLInputobject
An object describing an image to classify.
| type* | enum | Always `image_url`. | image_url |
| image_url* | object | Contains either an image URL or a data URL for a base64 encoded image. |
ModerationTextInputobject
An object describing text to classify.
| type* | enum | Always `text`. | text |
| text* | string | A string of text to classify. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"moderations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}