Perspective API alternative:
a drop-in replacement before the 2026 sunset.

Moderation API is a drop-in alternative to Google's Perspective API: the same toxicity, severe-toxicity, insult, threat, and identity-attack scores, returned from a single REST endpoint in 120+ languages.

Free tier · No credit card · Migrate in < 1 hour

Protecting 1000+ product teams

Disney logo
Zapier logo
HubSpot logo
Nextdoor logo
Skillshare logo
Gaia logo
SVT logo
Pleo logo
PostHog logo
OLX logo
Newegg logo
BandLab logo
Feature parity

Everything Perspective scored, plus a lot more.

The five Perspective attributes most teams use map one-to-one to Moderation API categories. Beyond that, you get coverage Perspective never offered.

CapabilityPerspective APIModeration API
Toxicity
Severe toxicity
Insult
Threat
Identity attack
Profanity
Sexually explicit
HarassmentLimited
Hate speech (granular)
Self-harm and suicide
Violence and weapons
Spam and scams
Conversational awareness (multi-message context)
PII redaction (emails, phone numbers, addresses)
Custom models trained on your data
Image, audio and video moderation
Languages supported~20120+
Review queue + dashboard
Webhooks and rules engine
Batch endpoints
EU data residency, GDPR, DPAUS-only
Commercial SLAs and support
Migration support from vendorNot offeredHands-on migration help
PricingFree (sunsetting)Free tier + paid plans
Status as of 2026Ends after 2026Generally available

Perspective API capabilities reflect the public service maintained by Google Jigsaw prior to its 2026 sunset announcement. Last updated .

Migration

Migrate in under an hour.

From Perspectiveperspective.ts
import { google } from 'googleapis';

const client = await google.discoverAPI(
  'https://commentanalyzer.googleapis.com/$discovery/rest?version=v1alpha1',
);

const { data } = await client.comments.analyze({
  key: process.env.PERSPECTIVE_API_KEY,
  resource: {
    comment: { text: 'You are an idiot' },
    requestedAttributes: {
      TOXICITY: {},
      SEVERE_TOXICITY: {},
      INSULT: {},
      THREAT: {},
      IDENTITY_ATTACK: {},
    },
  },
});

const toxicity =
  data.attributeScores.TOXICITY.summaryScore.value;
To Moderation APImoderation-api.ts
import ModerationAPI from '@moderation-api/sdk';

const moderationApi = new ModerationAPI();

const result = await moderationApi.content.submit({
  content: { type: 'text', text: 'You are an idiot' },
});

// Simple boolean check
if (result.evaluation.flagged) {
  // Block, review, or use result.recommendation.action
}
Installnpm install @moderation-api/sdk

Field mapping reference: API reference · Get hands-on migration help

Why migrate to us

More than a perspective api replacement.

Most teams migrating off Perspective end up consolidating other tools at the same time.

Conversational awareness

Pass the last few messages along with the new one. The classifier reads the thread, not just the line, so sarcasm and slow escalations stop slipping through. Perspective scores strings in isolation, which is why they often do. More on contextual analysis.

More categories, out of the box

A single call returns hate speech with granular subtypes, self-harm and suicide signals, violence, spam and scams, sexual content, and PII. Perspective gives you the first two of those.

Review queue, dashboard, rules engine

A score on its own does not solve the problem. Borderline content lands in a moderation queue for human review. The rules engine handles the obvious cases. Webhooks pipe everything back into the system you already run.

EU hosting, GDPR, signed DPA

Run inference in the EU only, sign a data processing agreement, and moderate across 120+ languages. Perspective never offered any of this for regulated European workloads.

Testimonials

What the best product teams says about Moderation API

It’s a big improvement from OpenAI. Brilliant platform for moderating across all our media types - text, audio, and images!

Andrew Whisker
Andrew Whisker
Founder
Ridlme

We're using Moderation API and super happy with it. So much so that we're doubling our quota. It's become a core part of how we keep our platform safe as we scale.

Elliot Brock
Elliot Brock
CTO
Starla Digital

We needed a moderation solution that could handle 50+ languages and scale with our global market. Moderation API delivered on both.

Paul Dariye
Paul Dariye
VP of Product
Meridian

Moderation API has been a huge help with helping to keep corporate information within our secure environment. Moderation API has made being aware of sensitive conversations within our Slack application easy.

Jason Riley
Jason Riley
VP of Technology
Gaia

The moderation API plugin has been game-changing for my company. We no longer have to spend hours a week moderating comments on our articles. Chris has been a pleasure to work with and he’s helped us every step of the way. 100% recommend!

Matthew Ustby
Matthew Ustby
Digital Marketing Manager
FiveZero Media

As a CPAAS platform, we deal with messages at massive scale. Moderation API handles our peak traffic without breaking a sweat, and the custom models let us fine-tune for specific context.

William Craig
William Craig
Founder
Signal House
How it works

Three steps to migrate

Skip the long evaluation cycle. Validate parity on your own historical data, then flip the switch.

1

Sign up and get an API key

Free account, no card. Generate a key from the dashboard and save it as MODERATION_API_KEY.

2

Swap the endpoint

Replace the Perspective analyze call with a POST to /v1/moderate/text. The request body is just { value }.

3

Map the response fields

Read flagged and labels[] from the response. Reuse your existing thresholds — both APIs return 0 to 1 scores.

Limited migration offer · Book by

Get free migration support.

Book a migration call before May 31, 2026. A senior engineer from our team will port your integration, validate scores against your historical data, and stay on call through cutover.

FAQ

Frequently asked questions

Everything we get asked about migrating off Perspective. If something is missing, talk to us.

When does Perspective API shut down?

Why is Perspective API being shut down?

Is Google offering migration support?

Is Moderation API a true drop-in replacement?

Does Moderation API understand conversational context?

How do I map Perspective attributes to Moderation API categories?

Do you support the same languages as Perspective?

How long does a typical migration take?

Is there a free tier I can use to test the migration?

Where is data stored, and is it GDPR-compliant?

What do I get beyond what Perspective offered?

Ready to migrate off Perspective?

Sign up free and have your first moderation call running in minutes.