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

SDKs & Client Libraries

Official SDKs for all major programming languages. Type-safe, well-documented, and designed to get you up and running in minutes.

Get API Key

Choose Your Language

All SDKs are open source, actively maintained, and provide full API coverage with async support where available.

Python

v2.4.0 • Python 3.8+

Async support with aiohttp, type hints, and Pydantic models. Works great with Django, Flask, and FastAPI.

pip install imagemoderation

Node.js

v3.1.0 • Node 16+

Full TypeScript support, Promise-based API, and ESM/CommonJS compatibility. Perfect for Express, Next.js, and Nest.

npm install @imagemod/sdk

PHP

v1.8.0 • PHP 8.0+

PSR-18 compatible, works with Laravel, Symfony, and WordPress. Supports both sync and async with ReactPHP.

composer require imagemod/sdk

Ruby

v1.5.0 • Ruby 3.0+

Idiomatic Ruby API with built-in Rails integration. Background job support with Sidekiq and ActiveJob.

gem install imagemoderation

Go

v0.9.0 • Go 1.20+

Strongly typed, context-aware, and zero dependencies. Perfect for high-performance microservices.

go get github.com/imagemod/go-sdk

Java

v2.0.0 • Java 11+

Fluent builder pattern, CompletableFuture support, and Spring Boot auto-configuration.

implementation 'com.imagemod:sdk:2.0.0'

C# / .NET

v1.6.0 • .NET 6+

Async/await, nullable reference types, and DI-friendly. Works with ASP.NET Core and Azure Functions.

dotnet add package ImageMod.Sdk

Rust

v0.5.0 • Rust 1.70+

Fully async with Tokio, zero-copy deserialization with serde, and comprehensive error types.

cargo add imagemod

Quick Start Example

# Python Quick Start
from imagemoderation import Client

# Initialize with your API key
client = Client(api_key="your_api_key")

# Moderate an image
result = client.moderate(
    image_url="https://example.com/image.jpg",
    models=["nsfw", "violence", "text"]
)

# Check results
if result.nsfw.score > 0.8:
    print("NSFW content detected!")
else:
    print("Image is safe")

# Access detailed categories
print(f"NSFW: {result.nsfw.score:.2f}")
print(f"Violence: {result.violence.score:.2f}")
print(f"Detected text: {result.text.content}")

Start Building Today

Get your free API key and integrate in minutes.

Get API Key