Moderations
curl --request POST \
--url https://api.gravitex.ai/v1/moderations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {},
"model": "<string>"
}
'Safety & audio
Moderations
Check whether text violates usage policies
POST
/
v1
/
moderations
Moderations
curl --request POST \
--url https://api.gravitex.ai/v1/moderations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {},
"model": "<string>"
}
'Documentation Index
Fetch the complete documentation index at: https://docs.gravitex.ai/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Moderate text for policy violations, compatible with the OpenAI Moderations API. This endpoint is one compliance tool among others; it does not replace your own safety governance or upstream policies. Public-facing services should also have abuse reporting, auditing, and enforcement.Authentication
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxRequest parameters
Text to moderate (string or array)
Moderation model, e.g.
text-moderation-latestRequest example
curl -X POST "https://api.gravitex.ai/v1/moderations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "text-moderation-latest",
"input": "Text to check"
}'
Common parameters
- input: One or more strings to check
- model: Moderation model ID
results with flagged and per-category scores. See OpenAI Moderations.⌘I