LocalMod
LocalMod is a self-hosted content moderation API for text and images that is designed to run offline.
What LocalMod is
LocalMod is a self-hosted content moderation API for text and images that is designed to run offline. Its text classifiers check for PII, toxicity, prompt injection, spam, and NSFW text. The PII classifier detects emails, phone numbers, Social Security numbers, and credit card numbers; image moderation detects explicit or adult images. API endpoints support single and batch text analysis, PII redaction, and image analysis from a URL or uploaded file.
The README documents Python use, running an API server, and Docker deployment. It also includes a Discord bot example for real-time text and image moderation, with auto-delete, timeout, and logging. To run offline, the documented setup downloads the models once and then uses the LOCALMOD_OFFLINE=1 setting. That model download is about 3.5 GB and includes the image model. The project recommends a GPU for production workloads and lists CPU and GPU latency estimates by classifier. LocalMod is MIT licensed and runs on Linux as an API or self-hosted deployment. Its plan is free at no cost.
Good
- Checks text for PII, toxicity, and prompt injection
- Detects explicit or adult images
- Supports batch analysis and PII redaction
- Documents Python, API server, and Docker use
Watch out
- Model download is about 3.5 GB
- Project recommends a GPU for production workloads
Who it suits
LocalMod suits users who want to moderate text and images within their own infrastructure. It is particularly relevant to deployments that need offline operation or API-based moderation.
Verdict
LocalMod offers offline text and image moderation with several deployment options. Plan for the documented model download and consider the project's GPU recommendation for production workloads.
Plans and prices
From LocalMod's own pricing page, checked 8 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Free, self-hosted | Free | No price stated · self-hosted content moderation API |
The facts
Each one read from LocalMod's own pages, with the date it was checked.
What it does
- API endpoints
- The API includes endpoints for single and batch text analysis, PII redaction, and image analysis by URL or uploaded file.checked 8 Oct 2026
- Audience
- The project describes itself as a self-hosted content moderation API for users who want moderation within their own infrastructure.checked 8 Oct 2026
- Compute
- The README recommends a GPU for production workloads and lists CPU and GPU latency estimates by classifier.checked 8 Oct 2026
- Discord
- A Discord bot example supports real-time text and image moderation, auto-delete, timeout, and logging.checked 8 Oct 2026
- Image checks
- Its image moderation classifier detects explicit or adult images.checked 8 Oct 2026
- License
- The repository identifies LocalMod as MIT licensed.checked 8 Oct 2026
- Model download
- The documented model download is about 3.5 GB and includes the image model.checked 8 Oct 2026
- Offline setup
- The README says to download the models once, then configure LOCALMOD_OFFLINE=1 to run offline.checked 8 Oct 2026
- PII detection
- The PII classifier detects emails, phone numbers, Social Security numbers, and credit card numbers.checked 8 Oct 2026
- Privacy
- The project says it runs offline and that user data never leaves their infrastructure.checked 8 Oct 2026
- Purpose
- LocalMod is a fully offline, self-hosted content moderation API for text and images.checked 8 Oct 2026
- Text checks
- Its text classifiers cover PII, toxicity, prompt injection, spam, and NSFW text.checked 8 Oct 2026
- Ways to run
- The README documents Python usage, an API server, and Docker deployment.checked 8 Oct 2026
Alternatives to LocalMod
- 1
Google Cloud Vision API
Free planWebAPILinuxmacOS7.9$0.60 usage-based - 2
Sightengine
Free planWebAPISelf-hosted7.5From $29 a month - 3
WebPurify
Free planAndroidiOSWebAPI7.4From $5 a month - 4

Amazon Rekognition Content Moderation
Free planWebAPI7.3From $0.10 a month - 5
Tisane API
Free planWebAPILinuxmacOS7.1From $99 a month - 6
Alibaba Cloud Content Moderation
iOSWebAPI7.0$0.09 usage-based
