Unprofane

The drop-in Perspective API alternative that catches more abuse

Change one URL and keep your client: the same request, the same JSON, the same errors.

Get your API key

On 1 January your forum keeps running. Its moderation stops.

Coral and Discourse’s plugin publish what Perspective cannot score, and say nothing. Watch a thread arrive after midnight, then change one URL.

Fri 1 Jan

v4.2 is out: new charts, faster builds

6 comments 3 abusive, with no one told

  1. Can someone explain the second chart?

    unscored

  2. I will find you and kill you.

    unscored

  3. This is fucking awesome, shipping it today!

    unscored

  4. stfu n00b, kys

    unscored

  5. Thanks, that fixed my build.

    unscored

  6. shut up you stupid c*nt

    unscored

Coral reads “could not determine comment toxicity” and publishes the comment unscored: no error, no alert. Coral’s toxic comment phase

All 6 comments published, 3 of them abuse. The moderation queue is empty.

What changes

Configure, Moderation, Toxic comment filter
Toxic comment filter: OnRemove: API key:              YOUR_GOOGLE_KEYAdd: API key:              up_test_YOUR_KEYRemove: Custom endpoint:      (empty)Add: Custom endpoint:      https://api.unprofane.com/v1alpha1Toxicity model:       TOXICITY (or empty)

2 lines change. Set Coral’s Custom endpoint to https://api.unprofane.com/v1alpha1 and its API key to an Unprofane key. Coral adds comments:analyze and comments:suggestscore itself.

Tested with Coral 9.11.8 itself, run on October 13, 2026. The Coral Talk guide

lib/discourse_perspective.rb, in your fork
Remove: GOOGLE_API_DOMAIN = "https://commentanalyzer.googleapis.com"Add: GOOGLE_API_DOMAIN = "https://api.unprofane.com"
Site settings
perspective_enabled:        trueRemove: perspective_google_api_key: YOUR_GOOGLE_KEYAdd: perspective_google_api_key: up_test_YOUR_KEYperspective_toxicity_model: standard

2 lines change. The discourse-perspective-api plugin hardcodes Google’s host and has no endpoint setting. Fork it, change one line, rebuild, and put an Unprofane key in perspective_google_api_key. A Discourse you cannot add plugins to cannot run the fork.

Tested with Discourse 2026.10.0-latest itself, run on October 13, 2026. The Discourse guide

google-api-python-client
client = discovery.build("commentanalyzer","v1alpha1",developerKey=os.environ["UNPROFANE_KEY"],  # up_test_YOUR_KEY on staging, up_live_YOUR_KEY in productionRemove: discoveryServiceUrl="https://commentanalyzer.googleapis.com/$discovery/rest?version=v1alpha1",Add: discoveryServiceUrl="https://api.unprofane.com/$discovery/rest?version=v1alpha1",static_discovery=False,)response = client.comments().analyze(body={"comment": {"text": "you are a clown"},"requestedAttributes": {"TOXICITY": {}},"languages": ["en"],"doNotStore": True,}).execute()

1 line changes. Give discovery.build a discoveryServiceUrl on the Unprofane host and keep every call the same.

Tested with google-api-python-client 2.201.0, on every run of the snippet checks. The Python guide

googleapis
const client = await google.discoverAPI(Remove: 'https://commentanalyzer.googleapis.com/$discovery/rest?version=v1alpha1',Add: 'https://api.unprofane.com/$discovery/rest?version=v1alpha1',);const res = await client.comments.analyze({key: process.env.UNPROFANE_KEY, // up_test_YOUR_KEY on staging, up_live_YOUR_KEY in productionresource: {comment: { text: 'you are a clown' },requestedAttributes: { TOXICITY: {} },languages: ['en'],doNotStore: true,},});

1 line changes. Build the client with google.discoverAPI from the Unprofane discovery URL and keep the calls.

Tested with googleapis 185.0.0, on every run of the snippet checks. The Node.js guide

Any HTTP client
Remove: curl -X POST "https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze?key=YOUR_GOOGLE_KEY" \Add: curl -X POST "https://api.unprofane.com/v1alpha1/comments:analyze?key=up_test_YOUR_KEY" \-H "Content-Type: application/json" \-d '{"comment": {"text": "you are a clown"},"requestedAttributes": {"TOXICITY": {}, "INSULT": {}},"languages": ["en"],"doNotStore": true}'

1 line changes. The same POST body and the same response on the Unprofane host, with the key as ?key= or a bearer header.

Tested with the request as printed, on every run of the snippet checks. The cURL guide

  • Unchanged
  • The path
  • The request body
  • The response
  • The errors
  • The ?key= parameter

The scores are Unprofane’s engine’s, worked out when this page was built, as the compatible endpoint answers before the model reads. What each plugin does without an answer is in its own code, linked above.

Switching catches more abuse

The same private test set, both services flagging the same share of clean text.

Unprofane89.0%of toxic text caught

11.0% let through

Perspective API58.4%of toxic text caught

41.6% let through

Unprofane Perspective API

Toxic usernames caught
Unprofane76.5%Perspective API32.5%
Disguised spellings caught
Unprofane86.0%Perspective API51.7%

Both flag 7.0% of clean text: Perspective is read at 0.479, where it flags as much as Unprofane does.

Head to head, read once on 2026-09-28. How it was measured

Send your request to the new host

The body your code sends today, answered as it will be after the move. No key needed.

POST /v1alpha1/comments:analyze Perspective API request
43 / 20,480 bytes
requestedAttributes
No key needed here. Ctrl or ⌘ Enter sends.
Request body
{
  "comment": {
    "text": "You are an idiot and nobody wants you here."
  },
  "requestedAttributes": {
    "TOXICITY": {},
    "INSULT": {},
    "PROFANITY": {},
    "THREAT": {}
  },
  "doNotStore": true
}
Response

Send the request to see the response.

The scores land here as bars, and the JSON as the endpoint sends it: attributeScores, languages, detectedLanguages.

The tester on its own page

Send us your old comments. See your old thresholds mapped to ours.

Perspective was free, and your thresholds took months to tune. Sign in, free, and the replay checks your own comments here and shows, for each old threshold, the one that flags the same share, and how often the two agree. The old scores never leave your browser.

  1. 1Export recent texts with Perspective’s scores
  2. 2Run the replay in this tab
  3. 3Check the new threshold against your moderators’ calls

A queue of the same size is not proof of the same accuracy. The replay tool, explained

A text column and your old score column (what to upload). The file is read in this tab; nothing is sent until you press Run.

A guide for your client

Most change one URL. Coral takes an endpoint ending in /v1alpha1; Discourse, a one-line fork of its plugin.

Get your API key

Before you switch

What should I use instead of the Perspective API?
Unprofane, a drop-in alternative to Google's Perspective API: it answers the same request, so your integration keeps working after December 31, 2026. It takes Perspective's request at the same path and returns the same JSON and the same errors: you change the host and the key. Another moderation API means a new request, new categories and new thresholds to map.
When does the Perspective API shut down?
After December 31, 2026. Google's notice says the service stays active until that day, that access cannot be extended past it, and that Google will not offer direct migration support. Unprofane answers the same request at the same path before that day and after it.
Do I have to rewrite my integration?
No: Unprofane answers with Google's own request, response and errors, so the code that builds the request and reads attributeScores stays as it is. The host changes, and the key: a discovery URL for Google's Python and Node clients, the Custom endpoint in Coral, one line in a fork of the Discourse plugin. Map your thresholds with the replay tool before you carry them over.
How does Unprofane compare with the Perspective API?
On the same held-back judged texts, read once on 2026-09-28, at the same share of clean text flagged (7.0%), Unprofane caught 89.0% of 2,672 toxic texts and the Perspective API 58.4%. The comparison is Unprofane vs the Perspective API, and every system row by row is the head-to-head.
What is different from Google's Perspective API?
Unprofane takes Google's request, response and error envelope as they are, and still accepts the key as ?key=. Every response also carries the Unprofane-Engine and Unprofane-Route headers, and the request counts as one check against the plan. Until the Civil Comments calibration ships, the scores are the engine's own scale rather than a fit to Perspective's; the replay tool says which is in force. Perspective API compatibility has the full list, field by field.
Can I switch back?
Yes: until December 31, 2026, you can move from Unprofane back to Google's Perspective API by putting Google's host and your Google key back. Every client guide ends with its rollback, and each rollback was run against Google's own API on October 13, 2026.
What does Unprofane cost after Perspective?
Unprofane's Growth plan, 1,000,000 checks a month for $249, starts with 14 days free and a live key, so you can run it on your own traffic before the first charge; a card is needed and nothing is charged if you cancel in time. Test keys are free and need no card; a live key needs a plan, from $9 a month. The pricing page has every plan and what an extra check costs.
Is there a free plan for research, as Perspective had?
Yes: Unprofane's Research plan is free, as the Perspective API was for research. It is for studying text rather than running a product, with engine pinning included so a paper's numbers stay reproducible and a larger allowance for a one-off dataset on request, by application from the dashboard.