Text Filter API
Complete API reference for the content-filter-text-standard text content detection model.
Overview
Content Filter Text checks a text input 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
Result Notes
- If
checkedisfalse, the item was not successfully checked. In that case,scoremay be0andlevelmay be"none", but the item should be treated as a detection failure rather than a no-risk result. flaggedonly describes the detection result after an item has been checked.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.