跳轉到主要內容
POST
Create Moderation

授權

Authorization
string
header
必填

Gateway-issued API key, formatted as sk-gateway-xxxxxxxx. Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).

主體

application/json
input
預設值:""
必填

Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.

範例:

"I want to kill them."

model
預設值:omni-moderation-latest

The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.

範例:

"omni-moderation-2024-09-26"

回應

OK

Represents if a given text input is potentially harmful.

id
string
必填

The unique identifier for the moderation request.

model
string
必填

The model used to generate the moderation results.

results
object[]
必填

A list of moderation objects.