Skip to main content
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

Authorization
string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Request parameters

input
string | array
required
Text to moderate (string or array)
model
string
Moderation model, e.g. text-moderation-latest

Request 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
Responses include results with flagged and per-category scores. See OpenAI Moderations.