Binary NSFW classification for up to 10 image URLs or data URLs per request
| Parameter | Type | Required | Description |
|---|---|---|---|
image_urls | string | string[] | No | Primary input field. One URL or an array of URLs. |
imageUrls | string | string[] | No | Alias for image_urls. |
imageUrl | string | No | Alias for a single image URL. |
imageDataUrl | string | No | Base64 data URL for a single image. |
imageDataUrls | string[] | No | Base64 data URLs for multiple images. |
model | string | No | Only supported value is nsfw-classifier (default). |
model: The classifier model used.requestId: Request ID (if available; helpful for support).inputCount: Number of images processed (max 10).cost: Final charged amount (after discounts and currency conversion).currency: USD or XNO depending on payment source.truncated: true if more than 10 images were provided.has_nsfw_concepts: List of booleans (one per image, in input order).is_nsfw: true if any image was flagged.NSFW image classification request
NSFW image classification request payload
Primary input field. One URL or an array of URLs (only the first 10 are processed).
"https://example.com/image.jpg"
Alias for image_urls. One URL or an array of URLs (only the first 10 are processed).
"https://example.com/image.jpg"
Alias for a single image URL
"https://example.com/image.jpg"
Base64 data URL for a single image (format: data:image/[type];base64,[data])
"data:image/jpeg;base64,/9j/4AAQ..."
Base64 data URLs for multiple images (only the first 10 are processed)
1Only supported value is nsfw-classifier
NSFW classification response
The classifier model used
"nsfw-classifier"
Request ID (if available; helpful for support)
Number of images processed (max 10)
2
Final charged amount (after discounts and currency conversion)
0.003
Currency of the charge
"USD"
True if more than 10 images were provided
false
Per-image NSFW flags in input order
[false, true]True if any image was flagged
true