Share 2 Free Foreign Image Recognition (Porn Detection) APIs
Currently, most domestic IDC providers, such as Alibaba Cloud and Tencent Cloud, offer image processing APIs (porn detection). If the server is located in China, using the IDC provider's own image processing service naturally yields the best results. However, when the business is hosted overseas, calling domestic provider APIs is extremely slow, necessitating the use of foreign APIs as alternatives.

Motivation
The goal of finding free APIs is to provide image moderation for ImgURL. Xiaoz searched several options and ultimately found the following two to be quite good; developers in need can refer to them.
Moderate Content
Moderate Content is currently the image moderation solution used by ImgURL. It offers unlimited calls and supports third-party plugins and APIs. Moderate Content is not limited to image moderation but also provides other functions, as detailed below:
- Detect inappropriate content - Adult, Teen, Everyone, Hateful
- Detect faces
- Detect gender
- Detect age
- Safe deposit box - A place to submit misclassified images
- Animated GIF support
- Image types: .jpg, .png, .bmp, .gif, .webp
- Maximum image size: 10 MB
- Protocol: HTTP | HTTPS
- Request types: GET | POST | POST multipart/form-data | POST application/json
Moderate Content Official Website: https://www.moderatecontent.com/
sightengine
sightengine offers a free version, limited to 2,000 calls per month and no more than 500 per day. If the number of images is not large, this is completely sufficient. The image recognition functions of sightengine are as follows.

sightengine also provides API statistics in the backend, where every request is recorded very clearly, as shown in the screenshot below.

sightengine Official Website: https://sightengine.com/
Others
If you have collected other good image recognition APIs, feel free to leave a comment and recommend them.