
ViT Base Patch16 224
Classifies an image into the 1,000 ImageNet categories, such as animals, vehicles, food and everyday objects, with a…
Fine-tunableNSFW_IMAGE_DETECTIONTells whether an image is safe for work or explicit (NSFW), with a confidence score for each.

| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | The image to classify: PNG, JPEG or WebP, at most 50 megapixels and 20 MB. 1–2048 characters · image/png, jpeg, webp |
top_k | integer | No | 5 | How many of the most likely labels to return. 1–10 |
Output. JSON: [{"label": "...", "score": 0.97}, ...], the most likely label first.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=NSFW_IMAGE_DETECTION" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image": "https://example.com/input.png",
"top_k": 5
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"NSFW_IMAGE_DETECTION",
{
"image": "https://example.com/input.png",
"top_k": 5
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune NSFW Image Detection on your own data and run the tuned model through the same API. Dataset: Your images, each with its label: {file, text} items, text being the label (at most 100 characters). PNG, JPEG or WebP, at most 50 megapixels and 20 MB each; at least 4 images and 2 different labels. New labels are fine: the model learns your label set.
The steps are in the docs.
Price per request: 0.0437 credits ($0.000437). The price is shown again before every run; all prices are on the pricing page.

Classifies an image into the 1,000 ImageNet categories, such as animals, vehicles, food and everyday objects, with a…
Fine-tunable
DePlot from Google reads a chart or plot image and returns the data table drawn in it.

Finds the layout of a document page, such as text blocks, titles, section headers, tables, pictures, captions…
Fine-tunable
EasyOCR finds the lines of text in a photo or a scan and reads each one, returning every line with its box and its…
Fine-tunable
IBM Granite Vision 3.3 2B reads documents in pictures: it answers questions about tables, charts, infographics, forms…
Fine-tunable
Finds the things you name in a picture, such as "red car, person with a helmet", and returns a box around each one.
Fine-tunable