Image content moderation
Detect potentially sensitive visual content and receive category labels and confidence scores for your moderation workflow.
/moderationmultipart/form-dataRequest
Send an image in the image multipart form-data field. Choose review actions in your application based on the returned categories.
| Form field | Type | Required |
|---|---|---|
image | Image file | Yes |
Set RAPIDAPI_KEY and RAPIDAPI_HOST to the values from this API’s listing. The following example uses a POSIX shell. Replace the local filenames with your images.
curl --request POST \
--url "https://$RAPIDAPI_HOST/moderation" \
--header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
--header "X-RapidAPI-Host: $RAPIDAPI_HOST" \
--form 'image=@./image.jpg'Response example
{
"flagged": false,
"categories": []
}Core response fields
This guide focuses on the fields used in application workflows. Responses may include additional metadata; consult the API listing for the full schema.
| Field | Type | Meaning |
|---|---|---|
flagged | boolean | Whether the image is flagged by the API. |
categories[].name | string | Detected moderation category. |
categories[].parent | string | Parent category in the moderation hierarchy. |
categories[].confidence | number | Confidence associated with the category, from 0 to 100. |
Map category labels and confidence scores to your content policy: allow uploads, hold them for review, or block matching categories. A flagged value of false means the analysis returned no flagged categories; evaluate results alongside your application’s review rules.
Limits and integration notes
- The published image upload limit is 20 MB. Resize files that exceed the limit before sending them.
- Keep keys server-side and use the correct host for the API. See authentication.
- Handle bad inputs and temporary failures using the error guide.
- Vision input images are processed in-request without storage by Tigrate. See data handling.
Based on the published RapidAPI reference, checked September 2026. Consult the listing for the latest full schema, optional parameters, and plan limits.