跳转到主要内容
POST
/
v1
/
moderations
curl --request POST \
  --url 'https://api.elkapi.com/v1/moderations' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "今天天气真好,适合出去散步。",
  "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": "今天天气真好,适合出去散步。",
  "model": "gpt-5.5"
}'
{
  "id": "id",
  "model": "gpt-5.5",
  "results": [
    {
      "flagged": false,
      "categories": {},
      "category_scores": {}
    }
  ]
}

Authorizations

Authorization
string
必填
所有接口均需要使用 Bearer Token 进行认证。在请求头中添加:
Authorization: Bearer YOUR_API_KEY

Body

input
string or array<string>
必填
model
string
默认值:"gpt-5.5"
示例:gpt-5.5

Response

id
string
model
string
默认值:"gpt-5.5"
示例:gpt-5.5
results
array<object>
results.flagged
boolean
results.categories
object
results.category_scores
object