Profanity filtering users can't bypass.
Change the host. Everything else is the request you already send.
Tested with the request as printed, on every run of the snippet checks. How
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.
Sign in and make two keys on the keys page of the dashboard: a test key (up_test_…) for staging and a live key (up_live_…) for production. A test key is free and answers 100 checks a month across the account; a live key needs a plan. Keep your Google key: it is your way back until Google’s service ends on December 31, 2026.
The path, the body and the key parameter are Google’s. A bearer header works too. Keep the host and the key in configuration, so staging (the test key) and production (the live key) differ only in values.
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
}'attributeScores with a summaryScore and spanScores per attribute, languages, detectedLanguages. Errors use Google’s envelope: code, message, status. The numbers below show the shape, not a score to expect.
{
"attributeScores": {
"TOXICITY": {
"spanScores": [{ "begin": 0, "end": 15, "score": { "value": 0.71, "type": "PROBABILITY" } }],
"summaryScore": { "value": 0.71, "type": "PROBABILITY" }
},
"INSULT": { "summaryScore": { "value": 0.78, "type": "PROBABILITY" }, "spanScores": [] }
},
"languages": ["en"],
"detectedLanguages": ["en"]
}Do not carry the old number over: the scores come from a different engine, so 0.8 there is not 0.8 here. The replay tool takes a CSV of recent texts with the scores Perspective gave them and shows, for each old threshold, the threshold here that flags the same share, and how often the two flags agree. A queue of the same size is not proof of the same accuracy: two thresholds can flag the same number of comments and disagree on which ones, and agreement with Perspective repeats its mistakes. Before production, run a sample your moderators have already decided (approved and removed) through staging, and for each candidate threshold count the removed items it catches and the approved items it flags. Read the disagreements, then choose.
Put commentanalyzer.googleapis.com and your Google key back in configuration. This works until Google’s service ends on December 31, 2026.
PERSPECTIVE_HOST=https://commentanalyzer.googleapis.com
PERSPECTIVE_KEY=YOUR_GOOGLE_KEYThis request runs as printed on every run of the snippet checks, with a test key and a live key, and the errors we captured from Google before launch are replayed against the API on every change, each held to Google’s words and status. It passed against the real model on October 13, 2026, and its rollback against Google’s own API on October 13, 2026.