CONTENT MODERATION API

Policy in.
Verdict out.

Send text, images, or multimodal payloads to one unified moderation endpoint. Selkay evaluates against your custom workspace policies and returns clean, actionable verdicts in milliseconds.

Server-side requests keep your API key out of browser code.
POST/v1/moderate
200 OK
REQUESTapplication/json
{
  "text": "Send the agreement to riley@example.com"
}
RESPONSEcategory: pii
{
  "verdict": "Redact",
  "category": "pii",
  "confidence": 0.96,
  "actions": ["Redact"],
  "cleaned_text": "Send the agreement to ****",
  "modality": "text",
  "request_units": 1
}

One endpoint for text, images, and mixed content.

60languages, detected automatically
01moderation endpoint

HOW IT WORKS

Configure in Selkay.
Enforce in your backend.

01

Set your policy

Set actions for safety categories, then add product-specific words and regex rules.

02

Send content

Call the moderation API from your backend with text, an image, or both.

03

Handle the decision

Handle Pass, Warn, Redact, and Block in your own backend.

POLICY CONTROLS

Choose how each
category is handled.

Tune category sensitivity, then choose the action your product should take. Custom word lists and regex rules cover product-specific terms.

01Pass

Allow the content and return a Pass verdict.

02Warn

Hold for review or prompt for edits. Your app supplies the warning copy.

03Redact

Mask sensitive text and return a cleaned version.

04Block

Return a Block verdict for your app to enforce.

Available actions depend on your Selkay plan.

MODERATION CATEGORIES10 TOTAL
  • 01Harassment
  • 02Hate speech
  • 03Sexual content
  • 04Violence
  • 05Self-harm
  • 06Spam
  • 07Personal information
  • 08Profanity
  • 09Prompt injection
  • 10AI-generated media (images)

SERVER-SIDE BY DESIGN

One request.
A clear decision.

Send a server-side POST with your API key and content. The response returns a verdict and category; your backend applies the result.

Browser-origin requests are rejected to protect API keys.

AGENT SKILL

Install the skill for your agent:npx skills add Selkay-dev/selkay-skill

MAKE A REQUEST
CURL
curl -X POST \
  https://api.selkay.com/v1/moderate \
  -H "Authorization: Bearer $SELKAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Send the details to riley@example.com"}'
EXAMPLE RESPONSE
verdictRedact
categorypii
cleaned_textSend the details to ****
DATA HANDLING01 / 02

DATA HANDLING

Retention follows
your plan.

Free does not retain event logs. Spark keeps recent flagged events in an ephemeral window; Growth archives non-Pass events for 90 days; Scale retains all decision events for 365 days. Raw-text debugging is off by default and plan-gated.

RAW TEXT

Debug storage is disabled by default. Free and Spark never store raw text.

PLAN CONTROL

Growth and Scale can store raw text for eligible events when debug mode is enabled.

PRICING

Choose a plan
by monthly volume.

Prices are USD per month. Choose by monthly traffic and team size; all plans use the same endpoint, while available actions and policy limits scale by tier. Text Redact starts on Growth.

01
1 seat

Free

$0/ month

$0 / year

2,000 request units / month

Hard stop at monthly allowance

  • API rate limit100 RPM per key · 100 RPM workspace-wide
  • Pass and Block actions
  • 1 active policy · 100 custom words · 0 rules
  • 1 active API key · 25 sandbox tests / day
  • 30-day auto-erasure if inactive
02
3 seats

Spark

$19/ month

$209 / yr (save $19 · 1 month free)

30,000 request units / month

Optional overage: $0.001 / unit

  • API rate limit300 RPM per key · 500 RPM workspace-wide
  • Adds the Warn action
  • 1 active policy · 100 words · 5 rules
  • 2 active API keys · 100 sandbox tests / day
  • 30-day event history · Permanent retention
04
25 seats

Scale

$199/ month

$2,189 / yr (save $199 · 1 month free)

500,000 request units / month

Optional overage: $0.0005 / unit

  • API rate limit4,000 RPM per key · 8,000 RPM workspace-wide
  • All actions (Pass, Warn, Redact, Block)
  • 20 active policies · 1,000 words · 20 rules
  • 20 active API keys · 1,500 sandbox tests / day
  • 365-day history and exports · Permanent retention
Metered by 2,500-char request units · Automatic spend protection · Transparent 30-day auto-erasure for inactive free accounts.Compare plans & full specifications →

ALREADY USING SELKAY?

Open your
workspace.

Manage policies, API keys, team access, and usage.

Sign in to Selkay