Content moderation
Text or an image against YOUR policy → allow, review, or block, with the categories and excerpts that drove the call.
POST/v1/moderate
The example in the published schema
charged 00 credits
- auth (bearer key)
- per-key throttle
- validate body
- balance precheck
- run the capability
- charge credits ON SUCCESS ONLY
- JSON
The request body/v1/moderate
{ "text": "This supplement cures anxiety in 3 days, guaranteed — DM me for a discount code.", "policy": "No medical claims. No off-platform solicitation." }
The responsepublished example
// sending the call
// 0 credits charged so farcurl https://api.thecompound.tech/v1/moderate \
-H "Authorization: Bearer $COMPOUND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"This supplement cures anxiety in 3 days, guaranteed — DM me for a discount code.","policy":"No medical claims. No off-platform solicitation."}'Scored
6 of 6 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score
The Content & moderation guide has this endpoint with its example response. The reference has every parameter.
More from Content & moderation
PII redaction $0.03/callDetect and strip names, emails, phones, SSNs, cards, and PHI from text before you store or log it.Brand-voice rewrite $0.03/callAny copy → your brand voice. Describe the voice or paste a sample; get the rewrite and what changed.Product copy $0.05/productSpecs and an audience → listing-ready titles, bullets, a description, and SEO keywords, per channel.Image description $0.03/imageAn image → accessible alt text, a caption, tags, and any text found inside it. Accessibility and catalogs in one call.