curl -X POST https://www.geeknow.top/v1/moderations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "omni-moderation-latest", "input": "这是一段需要进行安全审核的用户输入。" }'
{ "id": "modr_abc123", "model": "omni-moderation-latest", "results": [ { "flagged": false, "categories": { "hate": false, "harassment": false, "self-harm": false, "sexual": false, "violence": false }, "category_scores": { "hate": 0.0001, "harassment": 0.0002, "self-harm": 0.0001, "sexual": 0.0001, "violence": 0.0003 } } ] }
使用 OpenAI Moderations 兼容格式检测输入内容风险。
Documentation IndexFetch the complete documentation index at: https://docs.geeknow.top/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.geeknow.top/llms.txt
Use this file to discover all available pages before exploring further.