imagemoderationapi
Home
Industries
E-commerce Social Media Dating Gaming Healthcare
Use Cases
User Generated Content Profile Verification Marketplace Listings Kids Apps Live Streaming
Detection
NSFW Detection Violence Detection Deepfake Detection Face Detection AI Image Detection
Threats
CSAM Nudity Violence Deepfakes Harassment
SDKs
Python Node.js JavaScript PHP Go
Platforms
WordPress Shopify Discord AWS S3 Firebase
Resources
Pricing Login Compliance Glossary Regions
Try Image Moderation
AWS S3
Lambda
Triggers
Protected
AWS S3 Integration

Image Moderation for AWS S3

Screen uploads automatically. Trigger image moderation on S3 object creation with Lambda functions for seamless content screening.

0
B+ Objects Screened
0
% Accuracy
0
ms Latency
0
% Uptime

AWS S3 Features

Native AWS integration for cloud storage

Lambda Triggers

Automatic moderation on S3 PUT events.

EventBridge

Route events based on moderation results.

Object Tagging

Tag objects with moderation results.

Bucket Policies

Move flagged content to quarantine buckets.

SNS Notifications

Alert on violations via SNS topics.

CloudWatch Metrics

Monitor moderation in CloudWatch.

Lambda Function

Sample S3 trigger for image moderation

Lambda Handler (Python)
import boto3 import requests s3 = boto3.client('s3') API_KEY = 'YOUR_API_KEY' def handler(event, context): bucket = event['Records'][0]['s3']['bucket']['name'] key = event['Records'][0]['s3']['object']['key'] # Generate presigned URL url = s3.generate_presigned_url('get_object', Params={'Bucket': bucket, 'Key': key}, ExpiresIn=300) # Call moderation API result = requests.post('https://api.imagemoderationapi.com/v1/moderate', headers={'Authorization': f'Bearer {API_KEY}'}, json={'image_url': url}).json() # Tag object with result s3.put_object_tagging(Bucket=bucket, Key=key, Tagging={'TagSet': [{'Key': 'moderation', 'Value': 'safe' if result['safe'] else 'flagged'}]})

Protect Your S3 Buckets

Add image moderation with Lambda

Get Started