All
Text Processing

Text Moderation API

Detect harassment, hate, violence, sexual content and self-harm in user-generated text before it is published or sent to an LLM. Call 10 moderation models from OpenAI, Google, Microsoft and OVHcloud with one API key, including free and EU-hosted options.

Text Moderation API

Trusted by 500+ Companies, from Startups to Industry Leaders

TUTORIAL

How to moderate text with Eden AI?

Text Moderation API

What is a Content Moderation API?

A content moderation API scans user-generated text, such as comments, chat messages, reviews or prompts sent to an LLM, and flags categories like harassment, hate, violence, sexual content and self-harm. Each category comes with a score, so your application can publish, hide, block or send a message to human review automatically, based on thresholds you set.

Try now

Moderate in One Call

The same output format for every provider.

curl https://api.edenai.run/v3/universal-ai \
  -H "Authorization: Bearer $EDENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "text/moderation/openai", "input": {"text": "I will find you and hurt you."}}'
# → violence: 0.94, harassment: 0.25 (cost $0)
See documentation

10 Moderation Models

OpenAI and Qwen3Guard models are free, Google costs $5 per 1M characters and Microsoft $1 per 1,000 requests. Microsoft and Qwen3Guard also run on the EU endpoint, and POST /v3/moderations is OpenAI-compatible.

value

Value delivered

/ 1 /
save time

Save time

Integrate once and access hundreds of models without managing multiple APIs.

Model updates, provider changes, and new releases are handled transparently.

/ 2 /
Control costs

Reduce costs

Use the most efficient model for each need. Avoid vendor lock-in and adapt quickly to pricing or performance changes.

/ 3 /
Reduce risk

Reduce risk

Built-in fallback mechanisms protect applications from model outages. Routing flexibility allows rapid adaptation to evolving technologies and providers.

They are using Text Moderation API

No items found.
Solution

Got specific needs? We're here to help

AI API Gateway

5.5% platform fee

Access to hundreds of models with our unified API
Compare AI models accuracy, latency and price
Create multiple API keys for different projects
Cost and performance monitoring tools
Chat support (48h - working days)
Unlimited seats

Advanced AI Platform

Custom price

All the previous features +
High rate limits and bulk discounts
Private deployments / specific compliance needs
Custom latency / cost optimization
Dedicated support & SLA / Professional Services
Custom billing and invoicing structures

Other features

Decision API
Decision API
All
Text Processing

Ask typed questions about a text, such as which team, how urgent, or yes or no, and get a choice, a score or a probability back instead of prose. One request answers many questions at once, and only input tokens are billed. This endpoint is in alpha.

Rerank API
Rerank API
All
Text Processing

Reorder retrieved documents by relevance to a query before they reach your LLM. The Eden AI Rerank API follows the Cohere v2 format and gives you 16 reranker models from 9 providers behind one API key.

Data Anonymization API
Data Anonymization API
All
Text Processing

Unlock the power of data privacy with our Data Anonymization API. Effortlessly protect sensitive information while maintaining data integrity for your applications.

let’s start

Start building with Eden AI

A single interface to integrate the best AI technologies into your products.