
Model:
Publicly reachable image URL to classify.
USD estimate $0.0003-$0.0005: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.

History
Saved locally in this browser
0 running · 0 completed
Billing Rules
Authentication
Every request needs a Bearer token in the Authorization header. Create an API key in the console.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/moderationsRequest parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | Required | Model identifier to invoke. Use this model's ID. |
image_url | string | Optional | Publicly reachable image URL to classify. |
Request example
curl "https://apiany.ai/v1/moderations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nsfw-image-detection",
"image_url": ""
}'Response example
{
"created": 1735689600,
"data": [
{
"url": "https://cdn.apiany.ai/images/abc123.png"
}
]
}