/v1/moderations endpoint to check text content for policy violations. The response includes a per-category boolean flag indicating whether each policy category was triggered, along with confidence scores for each category — giving you fine-grained control over how you apply moderation thresholds in your application.
Request
POSThttps://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
The moderation model to use. Example:
text-moderation-latest.string
required
The text content you want to check for policy violations.
Example Request
- cURL
- Python
Categories
The moderation model evaluates your input across the following 13 categories:The top-level
flagged field is true if any of the 13 categories is triggered, providing a convenient single signal for content filtering. Use the individual categories and category_scores fields for more granular control.Response
Response Fields
string
A unique identifier for this moderation request.
string
The moderation model that processed the request.
array
An array of moderation result objects, one per input.