Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用公开安全检测模型识别图片是否包含不适宜内容。
/v1/moderations
curl https://apiany.ai/v1/moderations \ -H "Authorization: Bearer $APIANY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nsfw-image-detection", "image_url": "https://example.com/image.png" }'
{ "object": "moderation", "model": "nsfw-image-detection", "results": [ { "flagged": false, "label": "normal", "score": 0.02 } ] }
flagged
label
score