Saltar para o conteúdo principal
POST
Create Moderation

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
input
padrão:""
obrigatório

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.

Exemplo:

"I want to kill them."

model
padrão:omni-moderation-latest

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

Exemplo:

"omni-moderation-2024-09-26"

Resposta

OK

Represents if a given text input is potentially harmful.

id
string
obrigatório

The unique identifier for the moderation request.

model
string
obrigatório

The model used to generate the moderation results.

results
object[]
obrigatório

A list of moderation objects.