Image Filter API
Complete API reference for the content-filter-image-standard image content detection model.
Overview
Content Filter Image checks one or more image URLs for supported content safety categories and returns a synchronous
detection result. The current detection type is nsfw.
Endpoint
http
Authentication
http
Request Parameters
Required
Not Supported
Example Request
javascript
Response Format
json
Response Data
Detection Result
Each item in data.detail.images uses this structure:
Result Notes
- If
checkedisfalse, the image was not successfully checked. In that case,scoremay be0andlevelmay be"none", but the image should be treated as a detection failure rather than a no-risk result. flaggedonly describes the detection result after an image has been checked.data.flaggedistruewhen at least one successfully checked image is flagged.levelis the display-friendly risk level derived from the detection score.
Error Handling
If the request fails, the API returns a non-zero code or a non-2xx HTTP status. Check the message field for details.