Saltar al contenido principal
POST
Create Moderation

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
input
predeterminado:""
requerido

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.

Ejemplo:

"I want to kill them."

model
predeterminado:omni-moderation-latest

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

Ejemplo:

"omni-moderation-2024-09-26"

Respuesta

OK

Represents if a given text input is potentially harmful.

id
string
requerido

The unique identifier for the moderation request.

model
string
requerido

The model used to generate the moderation results.

results
object[]
requerido

A list of moderation objects.