Skip to main content
POST
/
v1
/
moderations
curl --request POST \
  --url 'https://api.elkapi.com/v1/moderations' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "The weather is great today, perfect for a walk.",
  "model": "gpt-5.5"
}'
{
  "id": "id",
  "model": "gpt-5.5",
  "results": [
    {
      "flagged": false,
      "categories": {},
      "category_scores": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt

Use this file to discover all available pages before exploring further.

curl --request POST \
  --url 'https://api.elkapi.com/v1/moderations' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "The weather is great today, perfect for a walk.",
  "model": "gpt-5.5"
}'
{
  "id": "id",
  "model": "gpt-5.5",
  "results": [
    {
      "flagged": false,
      "categories": {},
      "category_scores": {}
    }
  ]
}

Authorizations

Authorization
string
required
All endpoints require Bearer Token authentication.Add it to the request headers:
Authorization: Bearer YOUR_API_KEY

Body

input
string or array<string>
required
model
string
default:"gpt-5.5"
Example: gpt-5.5

Response

id
string
model
string
default:"gpt-5.5"
Example: gpt-5.5
results
array<object>
results.flagged
boolean
results.categories
object
results.category_scores
object