Check content
Check texts and images for harmful content before you post them.
Send up to 20 texts and 4 images in one request. Each one gets its own answer. Your agent sees whether it was flagged and what kind of harm was found, like harassment or violence. A score from 0 to 1 shows how sure the check is. Use it on comments and reviews before they go live. A check costs 1 credit.
Paste this into your AI agent
Set up Chab for me: fetch https://www.chab.ai/agent-setup.md?v=497c0f and follow it. Then use Chab to check these two comments for anything harmful before I post them: "Great recipe, thanks for sharing!" and "Delete this or I will find out where you live."
Your agent connects Chab and then runs it. Price: 1 credit per request. The free credits cover a first try. How it works in each app
- Returns
- JSON result
- REST endpoint
POST /v1/moderation/check- Over MCP
- Call
chab_operation_startwith"moderation.check"
What you get
Example request
{ "text": "Thanks for the quick reply, the new version works great.", "images": [ { "type": "url", "url": "https://upload.wikimedia.org/wikipedia/commons/4/45/A_small_cup_of_coffee.JPG" } ]}Example result
{ "data": { "result": { "flagged": false, "flagged_categories": [], "text_count": 1, "image_count": 1, "items": [ { "type": "text", "index": 0, "characters": 56, "flagged": false, "flagged_categories": [], "categories": { "harassment": { "flagged": false, "score": 0.000015, "input_types": ["text"] }, "harassment_threatening": { "flagged": false, "score": 0.000002, "input_types": ["text"] }, "hate": { "flagged": false, "score": 0.000004, "input_types": ["text"] }, "illicit": { "flagged": false, "score": 0.000022, "input_types": ["text"] }, "sexual": { "flagged": false, "score": 0.000063, "input_types": ["text"] }, "violence": { "flagged": false, "score": 0.000016, "input_types": ["text"] } } }, { "type": "image", "index": 0, "source": { "type": "url", "url": "https://upload.wikimedia.org/wikipedia/commons/4/45/A_small_cup_of_coffee.JPG", "filename": "A_small_cup_of_coffee.JPG", "format": "jpeg", "byte_size": 401623 }, "flagged": false, "flagged_categories": [], "categories": { "harassment": { "flagged": false, "score": 0, "input_types": [] }, "self_harm": { "flagged": false, "score": 0.000009, "input_types": ["image"] }, "sexual": { "flagged": false, "score": 0.000012, "input_types": ["image"] }, "violence": { "flagged": false, "score": 0.00002, "input_types": ["image"] } } } ] }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T19:48:51+00:00" }, "meta": { "request_id": "req_123" }}You can also run this tool on a schedule as a monitor. Chab then keeps every result and emails you when it changes. Monitors need bought credits or a monthly plan. How monitors work
Inputs
| Field | Type | Details |
|---|---|---|
text | object | One text, or a list of up to 20 texts that each get their own verdict. Each up to 32,000 characters, 100,000 together. |
images | array of object | Up to 4 images that each get their own verdict. PNG, JPEG, WebP or HEIC. |
How to call it
AI apps use it through hosted MCP. Coding agents can also use the CLI, and your own code can call the API. Each call starts a job, and your agent picks up the result when it is ready.
curl -X POST https://www.chab.ai/v1/moderation/check \ -H "Authorization: Bearer CHAB_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: moderation-check-001" \ -d '{"text":"Thanks for the quick reply, the new version works great.","images":[{"type":"url","url":"https://upload.wikimedia.org/wikipedia/commons/4/45/A_small_cup_of_coffee.JPG"}]}'Check content result
{ "data": { "result": { "flagged": false, "flagged_categories": [], "text_count": 1, "image_count": 1, "items": [ { "type": "text", "index": 0, "characters": 56, "flagged": false, "flagged_categories": [], "categories": { "harassment": { "flagged": false, "score": 0.000015, "input_types": ["text"] }, "harassment_threatening": { "flagged": false, "score": 0.000002, "input_types": ["text"] }, "hate": { "flagged": false, "score": 0.000004, "input_types": ["text"] }, "illicit": { "flagged": false, "score": 0.000022, "input_types": ["text"] }, "sexual": { "flagged": false, "score": 0.000063, "input_types": ["text"] }, "violence": { "flagged": false, "score": 0.000016, "input_types": ["text"] } } }, { "type": "image", "index": 0, "source": { "type": "url", "url": "https://upload.wikimedia.org/wikipedia/commons/4/45/A_small_cup_of_coffee.JPG", "filename": "A_small_cup_of_coffee.JPG", "format": "jpeg", "byte_size": 401623 }, "flagged": false, "flagged_categories": [], "categories": { "harassment": { "flagged": false, "score": 0, "input_types": [] }, "self_harm": { "flagged": false, "score": 0.000009, "input_types": ["image"] }, "sexual": { "flagged": false, "score": 0.000012, "input_types": ["image"] }, "violence": { "flagged": false, "score": 0.00002, "input_types": ["image"] } } } ] }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T19:48:51+00:00" }, "meta": { "request_id": "req_123" }}Price: 1 credit per request. See all prices
Want to try Chab with your agent?
Copy the prompt and paste it into your AI. Your agent starts with free credits and doesn't need an account.