메인 콘텐츠로 건너뛰기
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.