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/chat/completionsRequest parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | Required | Model identifier to invoke. Use this model's ID. |
prompt | string | Required | Text prompt describing what you want to generate. |
image_url | string | Optional | Publicly reachable image URL to classify. |
Request example
curl "https://apiany.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nsfw-image-detection",
"prompt": "A concise cinematic shot of a modern API operations dashboard, smooth camera move, clean white studio lighting",
"image_url": ""
}'Response example
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "nsfw-image-detection",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 18,
"total_tokens": 30
}
}