Google Jigsaw's Perspective API stops working on December 31, 2026. Jigsaw's notice says it will not provide direct migration support or accept new usage and quota-increase requests after February 2026.
If you score comments, chat messages or reviews with Perspective, you have a bit under two months to pick something else. This post is a working guide to that decision. It covers what Perspective actually did for you, what Google's own notice says, the two families of replacement (machine-learning classifiers and word lists), which API.market listings fall into each, complete code for a combined pipeline, what the options cost at real volumes, and a cutover plan that does not leave your moderation failing open on January 1.
What Google's own notice says
The official Perspective notice, checked November 17, 2026, sets December 31, 2026 as the final service date. It rules out an extension and direct migration support, and says new usage and quota-increase requests are no longer accepted after February 2026.
Build your migration plan around that date. Keep time for evaluating replacement outputs, updating the integration and testing error handling before the old service ends.
What Perspective actually did
Perspective is a machine-learning service. You send a piece of text and ask for attributes such as TOXICITY, INSULT or THREAT. The official model cards describe scores between 0 and 1 as the estimated likelihood a reader would perceive the requested attribute. A high toxicity score is not a measurement of how severe a comment is. Choose thresholds from your own labeled examples and moderation policy, and evaluate mistakes before hiding content automatically. Attribute and language support differ.
That design has three properties worth naming, because every replacement either matches them or does not.
- It returns a graded score, not a yes or no. You choose the cutoff, and you can choose different cutoffs for different surfaces (strict for a kids' channel, loose for an adult forum).
- It is a learned classifier. It can use patterns beyond an exact word list, but it can still misread context. Evaluate threats, quoted abuse, identity mentions and benign uses of profanity in your own language mix; do not assume those cases will always be classified correctly.
- It is one call. No pipeline, no second service.
Compare replacement tools against the behavior your integration actually needs: score or label shape, language support, latency, policy fit and error handling. A label from another model is not a calibrated substitute for the same numerical Perspective threshold. The examples below follow listing documentation and were not executed against providers in this November 17 review.
First decision: ML classifier or word list
Word-list filters work the other way round from Perspective. They match words, phrases and often disguised spellings (sh1t, @ss) and tell you what matched and where. They are fast, cheap, predictable and easy to explain to a user ("your message contained a blocked word"). They will not catch a threat written in polite language, and they have nothing to say about tone.
A classifier model reads the whole message and returns a label. It can flag a nasty sentence that contains no swear word at all. It also costs more per call, takes longer, and can be wrong in ways that are harder to explain.
Pick based on what you actually need:
- Hiding obvious profanity in usernames, chat and reviews: a word list is usually enough, and it is the right tool for this job even if you also run a model.
- Judging harassment, threats or hateful content: you need a model, or a human review queue behind the filter.
- Moderating what goes into and comes out of an LLM: a safety classifier built for prompts and replies fits better than a toxicity scorer.
- Most real products: use both. A cheap word filter first, a model on what is left.
The rest of this post assumes the last bullet, because it is where most teams end up.
The options at a glance
| Option | Type | Output | Pricing model |
|---|---|---|---|
| Profanity Filter API (tidydata) | Word list | isProfane, matches with positions, censored text |
PAYG $0.0005 per call, Pro $4.99 for 25,000, Ultra $14.99 for 150,000 |
| AI Content Moderation API, Qwen3Guard-Gen-4B (magicapi) | ML safety model | safety_label, categories, refusal |
PAYG $0.0022 per unit |
| Content Safety Classifier, Llama Guard 4 12B (magicapi) | ML safety model, text and images | Free-text verdict you shape with your own instructions | PAYG $0.0025 per unit (10,000 tokens) |
| Content Safety Classifier, Llama Guard 3 8B (magicapi) | ML safety model | Safe or unsafe verdict for a message or AI reply | PAYG, see listing |
| Content Safety Classifier, Llama Guard 2 8B (magicapi) | ML safety model | Safe or unsafe verdict for a message or AI reply | PAYG, see listing |
| OpenAI Moderation | ML | 13 categories, text and images | Free per OpenAI's docs |
| Azure AI Content Safety | ML | Severity levels per harm category | Billed through Azure |
The first five rows are on API.market, and the prices come from the listings. The last two are outside the catalog and are included because most Perspective users will at least evaluate them. OpenAI's moderation model (omni-moderation-latest) takes text and images, covers 13 categories including harassment, harassment/threatening, hate, illicit, self-harm, sexual and violence, and has no dedicated profanity category. Azure AI Content Safety uses neural classifiers with severity levels (a 0 to 7 scale for text, or a trimmed 0, 2, 4, 6 scale), needs an Azure resource, and is billed there.
A lot of other vendors now sell Perspective replacements, and some offer a response format compatible with Perspective's so you can swap with less code. Most comparisons online are written by the vendors themselves. Whatever you shortlist, run your own sample through it before you commit.
Option 1: Word list, Profanity Filter API
The listing is Profanity Filter API from the seller tidydata. From its documentation:
- One path,
/v1/profanity, with two methods. GET takes the text as a query parameter and suits short strings like usernames. POST takes atext/plainbody for longer content. - The response gives
isProfane, acount, each match with its zero-based characterindex, acensoredcopy of the text, and the languages checked. - More than 25 languages, combinable with a comma-separated
langlist such asen,es. leet=trueturns on leetspeak detection, sosh1tand@ssare caught.addblocks extra words of your own, andallowlists words that must never be flagged.- Multi-word phrases are matched and censored as a whole.
- The seller states matching is whole-word with accent folding, so innocent words that merely contain a bad word inside them are not flagged. That is the seller's claim.
- Word lists come from Shutterstock's List of Dirty, Naughty, Obscene, and Otherwise Bad Words (CC BY 4.0), and the response carries an
attributionstring. - Every plan allows 10 requests per second.
The examples below follow each listing's documented request format. A GET call, straight from the listing:
curl -X GET "https://prod.api.market/api/v1/tidydata/profanity-filter/v1/profanity?text=What%20the%20f***%20is%20this%20sh1t&lang=en&fill=*&leet=true" \
-H "x-api-market-key: YOUR_API_KEY"
The listing shows this response:
{
"isProfane": true,
"count": 1,
"matches": [{ "word": "sh1t", "index": 22 }],
"censored": "What the f*** is this ****",
"languages": ["en"],
"attribution": "Word lists: List of Dirty, Naughty, Obscene, and Otherwise Bad Words (Shutterstock), CC BY 4.0"
}
Look closely at that example, because it shows the limit of any word list. The text contains f***, which a human reads as a swear word, but the API only matched sh1t. Creative masking can slip through. This is why add exists, and why you should replay real flagged messages from your own community before trusting any list.
For longer content, use POST:
curl -X POST "https://prod.api.market/api/v1/tidydata/profanity-filter/v1/profanity?lang=en&fill=*&leet=true" \
-H "x-api-market-key: YOUR_API_KEY" \
-H "Content-Type: text/plain" \
-d 'You are a stupid piece of sh1t'
In the listing's example, the phrase piece of sh1t comes back as one match at index 17, and the censored text is You are a stupid ***** ** ****.
What it is not: a toxicity model. It will not score "you people are all useless" the way Perspective would. Treat it as the first, cheap layer.
Python helper
import os
import requests
BASE = "https://prod.api.market/api/v1/tidydata/profanity-filter/v1/profanity"
HEADERS = {"x-api-market-key": os.environ["API_MARKET_KEY"]}
def check_profanity(text, langs="en", allow=None, add=None):
params = {"lang": langs, "leet": "true", "fill": "*"}
if allow:
params["allow"] = ",".join(allow)
if add:
params["add"] = ",".join(add)
resp = requests.post(
BASE,
headers={**HEADERS, "Content-Type": "text/plain"},
params=params,
data=text.encode("utf-8"),
timeout=10,
)
resp.raise_for_status()
return resp.json()
result = check_profanity("You are a stupid piece of sh1t")
print(result["isProfane"], result["censored"])
Using POST for everything is a sensible default. It avoids URL-encoding mistakes and has no length problem with long comments.
Option 2: ML safety model, Qwen3Guard-Gen-4B
AI Content Moderation API (Qwen3Guard-Gen-4B) wraps a 4-billion-parameter safety model. You send the user's message in prompt. To moderate an assistant reply instead, add it in response. The output has three fields:
safety_label:Safe,UnsafeorControversialcategories: the kind of risk, for exampleNon-violent Illegal Actsrefusal:YesorNo, meaningful when you moderate a reply, and it can benull
The developer states the model supports 119 languages. That is the model developer's claim as relayed by the listing.
This is the closest of the API.market options to what Perspective gave you, with one important difference: it returns a label, not a probability. There is no 0.83 to threshold. The middle ground is the Controversial label, which the listing describes as neither clearly safe nor clearly unsafe, and which you route to review or allow depending on your policy.
The API is asynchronous. You POST to /predictions, get a prediction id back with a 201 Created, then poll GET /predictions/{id} until status is succeeded, failed or canceled. The listing suggests a one second polling interval and a ten minute overall timeout, and says the example took well under a second. Polling GETs are free but count toward the 10 requests per second limit.
import os
import time
import requests
BASE = (
"https://prod.api.market/api/v1/magicapi/"
"ai-content-moderation-api-ditto-ai-qwen3guard-gen-4b"
)
HEADERS = {"x-api-market-key": os.environ["API_MARKET_KEY"]}
VERSION = "bba1ac7a30b3b7adbc867b0d67b4cae23f700ebe28e6de409af3f6a894bc323a"
def moderate(prompt, response=None, timeout=30):
body = {"version": VERSION, "input": {"prompt": prompt, "max_new_tokens": 128}}
if response:
body["input"]["response"] = response
created = requests.post(
f"{BASE}/predictions", headers=HEADERS, json=body, timeout=15
)
if created.status_code != 201:
raise RuntimeError(f"create failed: {created.status_code} {created.text}")
pid = created.json()["id"]
deadline = time.time() + timeout
while time.time() < deadline:
r = requests.get(f"{BASE}/predictions/{pid}", headers=HEADERS, timeout=15)
r.raise_for_status()
data = r.json()
if data["status"] == "succeeded":
return data["output"]
if data["status"] in ("failed", "canceled"):
raise RuntimeError(f"prediction {data['status']}: {data.get('error')}")
time.sleep(1)
raise TimeoutError("moderation timed out")
verdict = moderate("How can I get into my neighbor's house while they are away?")
print(verdict["safety_label"], verdict["categories"])
Note the version value. The listing says to send the value shown in the example request, and that value is a long hash. Copy it exactly.
Cost: $0.0022 per API unit, where one unit is one request with up to two seconds of processing. A request that takes longer uses one unit per started two-second block, so five seconds of processing uses three units ($0.0066). Failed or cancelled predictions are not billed. There is no monthly fee.
Option 3: Llama Guard, with your own policy
Meta's Llama Guard models are safety classifiers you instruct in plain language. API.market lists three generations, and the newest, Llama Guard 4 12B, also accepts images. Both prompt (the content to check) and system_prompt (your classification instructions) are required. The answer comes back as a list of text chunks. You join them in order and trim the whitespace. In the listing's example, the chunks were "\n\n" and "safe", which join to safe.
That "write your own policy" design is the part that makes it feel different from Perspective. You are not choosing from a fixed set of attributes. You say what to classify and how to answer:
import os
import time
import requests
BASE = (
"https://prod.api.market/api/v1/magicapi/"
"content-safety-classifier-meta-llama-guard-4-12b"
)
HEADERS = {"x-api-market-key": os.environ["API_MARKET_KEY"]}
POLICY = (
"You are a content safety classifier for a community forum. "
"Classify the user message as safe or unsafe. If unsafe, name the violated "
"category: harassment, threat, hate, sexual content, or self-harm. "
"Answer with the single word safe or unsafe, then the category if any."
)
def guard(text, timeout=30):
body = {
"version": "meta/llama-guard-4-12b",
"input": {
"prompt": text,
"system_prompt": POLICY,
"temperature": 0,
"max_completion_tokens": 64,
},
}
created = requests.post(f"{BASE}/predictions", headers=HEADERS, json=body, timeout=15)
if created.status_code != 201:
raise RuntimeError(f"create failed: {created.status_code} {created.text}")
pid = created.json()["id"]
deadline = time.time() + timeout
while time.time() < deadline:
r = requests.get(f"{BASE}/predictions/{pid}", headers=HEADERS, timeout=15)
r.raise_for_status()
data = r.json()
if data["status"] == "succeeded":
return "".join(data["output"]).strip()
if data["status"] in ("failed", "canceled"):
raise RuntimeError(f"prediction {data['status']}: {data.get('error')}")
time.sleep(1)
raise TimeoutError("guard timed out")
print(guard("How do I bake a chocolate cake?"))
Two practical notes from the listing. First, a low temperature such as 0 gives the most consistent verdicts, and the default of 1 does not. For moderation you want repeatable answers, so set it to 0. Second, because the answer is free text that you shaped, parse it defensively. Treat anything that does not start with the word safe as needing review, instead of treating only an exact unsafe as a problem. That way a formatting surprise fails toward human review, not toward publishing.
Cost: $0.0025 per API unit, where one unit is 10,000 weighted tokens (input and output tokens each count 1). A typical check stays well under 10,000 tokens, and every request rounds up to at least one unit. The listing's own example used 238 input tokens and 3 output tokens, 241 weighted tokens, and cost one unit, $0.0025. A very long message with a long policy prompt can cross into two units, but most comments will not.
The older Llama Guard 3 8B and Llama Guard 2 8B listings do the simpler job of checking whether a user message or an AI reply is safe. They are worth testing if you want a cheaper or smaller model, but check each listing for current pricing before you plan around them.
Putting it together: a two-stage pipeline

The pattern most teams settle on has three outcomes: publish, hold for review, block. A cheap filter makes the first cut. The model sees only what the filter did not already decide.
from dataclasses import dataclass
@dataclass
class Decision:
action: str # "publish", "review", "block"
reason: str
text: str # text to show if published (possibly censored)
def moderate_comment(text):
# Stage 1: word list. Cheap and fast.
try:
prof = check_profanity(text, langs="en", allow=["scunthorpe"])
except Exception as exc:
# Fail toward review, never toward publish.
return Decision("review", f"profanity check failed: {exc}", text)
if prof["isProfane"] and prof["count"] >= 3:
return Decision("block", "heavy profanity", text)
shown = prof["censored"] if prof["isProfane"] else text
# Stage 2: classifier on what is left.
try:
verdict = moderate(text)
except Exception as exc:
return Decision("review", f"classifier failed: {exc}", shown)
label = verdict["safety_label"]
if label == "Unsafe":
return Decision("block", verdict.get("categories") or "unsafe", shown)
if label == "Controversial":
return Decision("review", "controversial", shown)
return Decision("publish", "ok", shown)
The design choices matter more than the code:
- Every error path returns
review. This is the single most important line in the pipeline. Many moderation setups fail open, meaning a timeout or a 429 results in the comment being published. When Perspective goes away, any code that treated a failed call as "score 0" will quietly stop moderating. Decide what a failure means, write it down, and test it. - The threshold lives in your code. With a score you tuned a number. With labels, you tune the mapping from label to action.
Controversialgoing to review is a sensible start for most communities. - The word list can short-circuit. Messages with heavy profanity never reach the model, which saves cost.
- Log both signals. Store the stage-one result and the model label next to the moderation decision. When someone appeals, you will want to know why.
Skipping the model when you can
Not every message needs a model. Skip stage two for very short messages from long-standing accounts, for text in an already-approved set (a reaction, an emoji), or in channels where the risk is low. A trust tier on the account is a better saving than any pricing plan.
Turning scores into labels
The hardest part of leaving Perspective is not the code. It is that your old thresholds stop meaning anything. A 0.8 TOXICITY score was a number you tuned over months, and no replacement returns that number. Labels from a safety model are a different kind of signal, so you have to rebuild the mapping from evidence.
The method that works is to bucket your history. Take a few hundred logged messages and sort them by the old Perspective score: under 0.5, 0.5 to 0.7, 0.7 to 0.9, and above 0.9. Run each bucket through the candidate and count the labels it returns. In a healthy migration the top bucket comes back mostly Unsafe, the bottom bucket mostly Safe, and the middle buckets split. That split tells you what to do with Controversial. If the 0.7 to 0.9 bucket is mostly Controversial, sending that label to human review reproduces what your old middle band did.
Then look at the odd cells. Messages your moderators hid that the candidate calls Safe are the ones that cost you. Read every one. Often they share a pattern (a dog whistle, a local insult, sarcasm), and a short add list on the word filter or a sentence in the Llama Guard policy fixes the pattern more cheaply than switching vendors would.
Expect the new setup to be stricter in some places and looser in others. That is normal. You are not trying to reproduce Perspective's numbers. You are trying to reproduce your moderators' decisions.
Pricing math for real volumes
The prices below come from the listings. The calls-per-month figures are examples, so replace them with yours. Costs assume one unit per check for the two model listings, which holds for short messages.
| Messages per month | Profanity Filter | Qwen3Guard | Llama Guard 4 | Two-stage (filter on all, model on 20%) |
|---|---|---|---|---|
| 10,000 | $4.99 (Pro) | $22 | $25 | about $9.40 |
| 100,000 | $14.99 (Ultra, 150,000 included) | $220 | $250 | about $59 |
| 1,000,000 | about $500 on PAYG | $2,200 | $2,500 | about $940 |
How the last column is built: filter on every message, model on 20 percent of them. At 100,000 messages, that is Ultra at $14.99 plus 20,000 model checks at $0.0022, which is $44, for about $59. At 10,000 messages it is Pro at $4.99 plus 2,000 checks at $0.0022, about $4.40, for about $9.40. At 1,000,000 messages it is $500 of PAYG filter calls plus 200,000 model checks at $0.0022, which is $440, for $940. The 20 percent figure is an assumption. If your filter stage blocks a lot or your trust tiers skip many messages, the model share will be lower.
Two things to check in your own numbers. First, the 1,000,000 row for the filter alone ($500 on PAYG at $0.0005 per call) is worth comparing with buying multiple Ultra plans, since Ultra includes 150,000 calls for $14.99 and works out to about $0.0001 per call. Second, the model listings bill by processing time or tokens, so a long message costs more than a short one. Measure your median and 95th percentile message length before you extrapolate.
For comparison, OpenAI's moderation model is described in its docs as free to use, which makes it a strong candidate for a first-stage model if you are comfortable sending text to OpenAI. Azure AI Content Safety bills through Azure. Whichever you pick, an honest cost comparison needs your own volumes, not a table.
A worked example: a forum with 60,000 comments a month
Take a community forum that gets about 60,000 comments a month and wants to replace Perspective with the two-stage pipeline above.
- Filter every comment. 60,000 calls is over the Pro plan's 25,000 and inside Ultra's 150,000. That is $14.99 a month.
- Block the obvious. Suppose 3 percent of comments carry heavy profanity and are blocked at stage one. That removes 1,800 comments before the model sees them, leaving 58,200.
- Skip by trust. Suppose comments of fewer than five words from accounts older than 90 days, plus approved reactions, make up 40 percent of what is left and skip the model. That leaves about 34,900 comments for stage two.
- Run the model. At $0.0022 per Qwen3Guard unit, 34,900 checks cost about $77. With Llama Guard 4 at $0.0025 it would be about $87, assuming one unit each.
- Total. About $92 a month for the two-stage setup. Running the model on all 60,000 comments instead would cost about $132 for the model alone, plus the filter if you still wanted it.
The savings are about $40 a month here, and they grow with volume. The more important effect is on latency. Four in ten comments get an answer from a single fast call and never wait for a prediction to be created and polled.
Testing before you cut over
A moderation change is a product change, so test it like one.
- Collect a labelled sample. Pull a few hundred real messages from your Perspective logs: some that you hid, some that you published, and a sample from the review queue. If you do not have logs, pull recent reports from users.
- Run them through each candidate. Record, for every message, what Perspective said and what the candidate says.
- Count the disagreements. Two numbers matter: things Perspective hid that the candidate would publish (misses), and things Perspective published that the candidate would hide (false alarms). Read all of the misses. Skim the false alarms.
- Try the awkward cases. Reclaimed slurs, quoted abuse in a report ("he called me X"), non-English text, long messages, messages in all caps, emoji-only messages, and text with accidental trigger words. Word lists struggle with the first two. Models handle quotes better but can still over-flag.
- Tune the mapping, not the vendor. Most of the improvement will come from the rule that maps outputs to actions (what goes to review, what gets blocked) and from your
allowandaddlists. - Keep a regression file. Save the messages that surprised you, and rerun them whenever you change a model, a prompt or a list.
Handling failure
Moderation services time out, rate limit and have bad days. Plan for it:
- Timeouts. Set an explicit timeout on both the create and the poll steps for the asynchronous listings. Ten seconds for a short message is generous. Do not let a comment wait for the full ten-minute polling ceiling the listing mentions.
- 429. All three listings state 10 requests per second. Add a small queue or a limiter in front of your moderation worker, and honor
Retry-Afterwhen present. - 5xx. Retry with exponential backoff a couple of times, then fall through to
review. - Poll cost. Polling is free but counts toward the rate limit. One poll per second per in-flight message adds up fast at high concurrency, so poll at one to five second intervals as the listings recommend.
- Quota exhaustion. On the Profanity Filter's fixed plans, running out of quota produces 429 responses until the next billing period. Alert on usage before you hit the ceiling.
- Silent drift. Models change. If a listing's model version changes, your labels may shift. Keep the regression file and rerun it on a schedule.
Moving off Perspective: a checklist
- Log what you actually use. Most teams only read TOXICITY. If so, write down the threshold you used and what happened above it (hide, queue, block).
- Replay a sample of real flagged comments through the candidate, as described above.
- Map the response. Perspective gives a 0 to 1 score. Word-list tools give a boolean and matches. Safety models give labels. Your moderation code needs an explicit rule for each.
- Decide the fallback for gaps. Anything the filter cannot judge should go to a review queue, not straight through.
- Cut over early. Run the new pipeline alongside Perspective for a week if you can, and compare. Leave yourself time before the end of December.
- Test what your code does when Perspective starts failing. Lots of moderation code fails open without telling anyone. Simulate the failure now and watch what gets published.
- Remove the old dependency. Once cut over, delete the Perspective key and client library, so a forgotten code path does not wait on a dead service.
- Write down your policy. The model prompts, the allow list, the label mapping and the thresholds are your moderation policy. Put them in a file under version control.
Frequently asked questions
Is there a drop-in replacement with the same response format? Not on API.market. Some outside vendors advertise a Perspective-compatible response. The listings here return their own shapes, so plan for a small adapter function between the API and your moderation code.
Can the Profanity Filter replace Perspective by itself? Only if you were using Perspective just to catch swearing. It does not judge threats, harassment or tone. Pair it with a model if you need those.
What does Controversial mean in the Qwen3Guard output? The listing describes it as neither clearly safe nor clearly unsafe. Your application decides whether to allow it, block it or send it for review. Review is a sensible default.
Which languages are covered? The Profanity Filter lists 25 or more, combinable with lang=en,es. The Qwen3Guard developer states 119 languages. Llama Guard language support is not stated on the listing, so test your languages yourself.
Does Llama Guard 4 check images? Yes. Put image URLs in image_input and the related text in prompt. For image-only moderation there are separate NSFW image and video filter listings in the security category.
How do I stop a legitimate word being flagged? On the Profanity Filter, add it to allow as a comma-separated list. Use add to block extra words that are not in the built-in lists.
Do failed calls cost money? For the two model listings, failed or cancelled predictions are not billed, according to the listings. The Profanity Filter's PAYG plan bills per successful call.
Is the Profanity Filter free? No. There is no free plan. PAYG has no monthly fee and charges $0.0005 per successful call.
What about the OpenAI moderation endpoint? Per OpenAI's docs it is free and covers 13 categories, including harassment and hate, but not profanity as such. It is a legitimate option if sending text to OpenAI is acceptable for your data.
Will Google extend the deadline? The Perspective site says no. Its answer to the extension question is a plain "Unfortunately, no."
How do I get an API key? Sign in at api.market, subscribe to the listing, and use the key in the x-api-market-key header. All the examples in this post use that header.
Where to start
If you need something working this week, start with the Profanity Filter API as your first layer, since it is a single synchronous call with no polling. Add a model for the cases a word list cannot judge: Qwen3Guard-Gen-4B if you want fixed labels and categories, or Llama Guard 4 if you want to write your own policy. Run your real flagged comments through both, fix the fail-open paths, and cut over well before December 31.

