API 参考内容审核
创建审核
分类文本和/或图像输入是否可能有害。
分类文本和/或图像输入是否可能有害。
Authorization
BearerAuth AuthorizationBearer <token>
在 Authorization 请求头中使用 API Key 作为 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": {}
}
]
}