Skip to content

Moderations

POST /v1/moderations passes your input to OpenAI’s moderation models and returns OpenAI’s answer unchanged. It is free: nothing is reserved or charged, and the request does not appear in your usage. It still needs an API key.

Terminal window
curl https://api.indorouter.ai/v1/moderations \
-H "Authorization: Bearer $INDOROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "omni-moderation-latest",
"input": "hello"}'
Field Notes
input Required. A string, or a list of strings or content parts (text and images), as in OpenAI’s API.
model The moderation model as OpenAI names it, without a vendor prefix. Leave it out to use omni-moderation-latest.

Only input and model are forwarded. The body may be up to 20 MB. The response, including an error OpenAI returns, is OpenAI’s own. See Error codes for errors returned by indoRouter.