GET
/v1/schemas/llmgateway/moderation/v1/moderations
Accept:
kind inputactivity moderationhash adebbffa…extracted Nov 20, 2026version currentsource upstream spec ↗
Request body
4 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| input* | string | string[] | object[] | Plain text, an array of text strings, or an array of multimodal input items. | |
| safety_identifier | string | Opaque end-user identifier stored in log params.safety_identifier. Never forwarded upstream and never replaces LLM Gateway's provider-facing identifier. | length ≤ 128 |
| user | string | Legacy end-user identifier, recorded as params.safety_identifier when safety_identifier is absent and it is at most 128 characters. Never forwarded upstream. | |
| model | string | OpenAI moderation model. Defaults to omni-moderation-latest. | default: "omni-moderation-latest" |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"llmgateway","endpointId":"v1/moderations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}