Content Safety

SeaCloud provides powerful content moderation APIs for image and video safety detection. Using advanced AI technology, it can detect both explicit and implicit violations with 99% accuracy and 50ms response time.

How to Use Content Safety API

1

Get your API Key

Obtain your API key from your account settings.

2

Prepare the image or video URL

Provide the URL of the image or video you want scanned.

3

Send POST request

Send a POST request to the content safety endpoint with your API key and the media URI.

4

Receive scan results

The API returns violation categories and confidence scores indicating whether the content is safe.

Example: Image Content Moderation

Here is an example of scanning an image using Content Safety API:

cURL (image)
curl --location --max-time 5 'https://openresty-gateway.api.seaart.ai/model/v1/image/scan' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "uri": "https://example.com/image.jpg",
    "is_video": 0
  }'

Example: Video Content Moderation

To scan a video, set the is_video parameter to 1:

Detection Capabilities: SeaCloud Content Safety API can detect not only explicit violations (such as pornography and violence), but also implicit violations (such as suggestive content and borderline content) through advanced AI algorithms, providing comprehensive content safety protection for your platform.

API Response

The API will return scan results containing:

  • Categories: Detected violation types

  • Confidence: Confidence score for each category

  • Is Safe: Whether the content passed moderation

Last updated