Codzen
APIリファレンスモデレーション

モデレーションを作成

テキストや画像の入力が潜在的に有害かどうかを分類します。

テキストや画像の入力が潜在的に有害かどうかを分類します。

POST
/v1/moderations

Authorization

BearerAuth
AuthorizationBearer <token>

Authorization ヘッダーに API キーを Bearer トークンとして指定します

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://llm-gateway.codzen.ai/v1/moderations" \  -H "Content-Type: application/json" \  -d '{    "input": "string"  }'
{
  "id": "string",
  "model": "string",
  "results": [
    {
      "flagged": true,
      "categories": {},
      "category_scores": {}
    }
  ]
}