Skip to main content
The /v1/moderations endpoint also accepts images for NSFW and content policy classification. Pass an image URL or a base64-encoded data URI in your request to receive per-category confidence scores and a top-level flagged boolean — giving you everything you need to gate image uploads or flag content for review.

Request

POST https://kiosapi.com/v1/moderations

Headers

string
required
Must be application/json.
string
required
Your API key in the format Bearer sk-xxx.

Request Body

string
required
Must be gi-image-moderation for image classification.
array
required
An array of image objects to moderate. Each object describes one image.

Example Request

Response Categories

The image moderation model scores each image across five categories:
Scores across categories are independent confidence values — they do not sum to 1. Evaluate each category score against your own threshold to suit your application’s moderation policy.

Response

Response Fields

string
A unique identifier for this moderation request.
string
The classifier model that processed the image.
array
An array of moderation result objects, one per image submitted.