Moderate video content and detect profanity
This endpoint analyzes existing media for potentially unsafe or inappropriate content, including profanity. The results contain detected moderation categories and confidence scores to help automate content review and policy enforcement.
What it detects
- Video: Sexual content, violence, graphic violence, self-harm, harassment, hate, and illicit content.
- Audio: Harassment, hate, threats, sexual content, self-harm, violence, and profanity.
How it works
- Send a
POSTrequest to this endpoint, replacing<mediaId>with the ID of the media for which you want to generate moderation. - The response confirms that the request was successful and returns the ID of the media. The job starts immediately after a successful request.
- You can use the video.media.ai.moderation.ready webhook event to track and notify the status.
- After the webhook event is received, you can use the Get video moderation results endpoint to retrieve the generated moderation.
Use case: Use this feature to analyze media that has already been uploaded for unsafe content and profanity, without requiring the user to upload it again.
Related guide: Content moderation and profanity detection
Authentication
AuthorizationBasic
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
- Username: Access Token ID
- Password: Secret Key
Activate your FastPix account to generate your API credentials. See the guide here
Path parameters
mediaId
The unique identifier assigned to the media when it is created. The value must be a valid UUID.
Response
Successfully triggered video moderation generation.
success
Shows the request status. Returns true for success and false for failure.
data