AI 模型接口审查(Moderations)
原生OpenAI格式
检查文本内容是否违反使用政策
认证
BearerAuth AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
请求体
application/json
TypeScript 类型定义
在 TypeScript 中使用 request body 类型。
响应体
application/json
curl -X POST "https://example.com/v1/moderations" \ -H "Content-Type: application/json" \ -d '{ "input": "string" }'{ "id": "string", "model": "string", "results": [ { "flagged": true, "categories": {}, "category_scores": {} } ]}