Help Center/ Content Moderation/ SDK Reference/ Introduction to Moderation SDK
Updated on 2023-07-17 GMT+08:00

Introduction to Moderation SDK

Overview of Content Moderation

Content Moderation adopts image, text, audio, and video detection technologies that detect pornography. This reduces potential business risks.

Content Moderation provides services through open application programming interfaces (APIs). You can obtain the inference results by accessing and calling APIs in real time. It helps you collect key data automatically and build an intelligent service system, thereby improving service efficiency.

SDK Overview

Content Moderation Software Development Kit (Moderation SDK for short) encapsulates the RESTful APIs provided by Content Moderation to simplify application development. You can add dependencies or download SDKs to call APIs to use Content Moderation.

Mappings Between Services and APIs

Table 1 lists the mappings between the Content Moderation sub-services and APIs.

Table 1 Mappings between services and APIs

Service

API

Text Moderation

POST /v2/{project_id}/moderation/text

Image Moderation

POST /v2/{project_id}/moderation/image

Image Moderation (Batch)

POST /v2/{project_id}/moderation/image/batch

Image Moderation (Asynchronous Batch) - Submitting a Task

POST /v2/{project_id}/moderation/image/batch/jobs

Image Moderation (Asynchronous Batch) - Querying the Result

GET /v2/{project_id}/moderation/image/batch

Image Moderation (Asynchronous Batch) - Querying the Task List

GET /v2/{project_id}/moderation/image/batch/jobs

Creating a Video Moderation Job

POST /v3/{project_id}/moderation/video/jobs

Querying a Video Moderation Job

GET /v3/{project_id}/moderation/video/jobs/{job_id}