The Perspective API’s job in your moderation pipeline
For most publishers, the Perspective API does exactly one job: it receives the text of a comment before it reaches an online conversation, and then returns back a toxicity score.
Toxicity scoring is the only step that communities need to replace.
On January 1, 2027 your calls to the Perspective API will just stop getting scores. If you do nothing, what will happen to your community?
The harder question is what model to replace it with, who is going to run that model for you, and where are your readers' comments being sent geographically to be scored?
This is the second post in our Perspective series. If you missed the first one, Perspective API is shutting down: What happens on January 1 walks through the timeline and what will happen when it shuts down.
There is no official migration path
The official notice on perspectiveapi.com says that Google stopped taking new api key and quota-increase requests in February 2026. The service will be up until December 31, 2026, and no official migration support will be offered.
In practice, that leaves publishers with:
- No recommended successor service from Google.
- Nothing to export or hand off. On January 1, 2027, your integration just stops getting scores back.
- A migration decision & implementation project no matter which replacement you select
According to Jigsaw , Perspective had more than 1,000 partners working in 18 languages. All of them are making this same decision before the end of the year, and many of them will be doing it in December, which can be a difficult time for teams to take on changing production infrastructure.
You can keep your moderation stack
The good news is that you can most likely keep your existing moderation pipeline and commenting tools the same. Most integrations, including Coral's "Comment toxicity filter," send a comment to the comments:analyze endpoint and act on the score that comes back.
If you just replace that endpoint, your moderation queue and your rules can stay right where they are. In this case your moderation pipeline keeps working, because something gives it a score.
How to compare Perspective API replacements
Here's some questions to ask about any Perspective API alternative option before trusting it:
- Does the comment text leave your network? If so, where is it sent, and what happens to it after, will it be kept or retained after it's been scored?
- Does the replacement accept the same
comments:analyzerequest and return the same response as Perspective? (If yes, your moderation tool just needs a new URL and API key.) - Which languages are you moderating, and does it support them?
- What does it cost based on your comment volume, taking into account hosting as well as network ingress/egress?
- Who keeps it running, and who gets paged if it breaks down the line?
How you answer these questions will depend a lot on what you already host yourself. A newsroom with strict data sovereignty rules and a team of engineers will have different requirements than a small publisher who just wants the filter to keep working.
Option 1: Self-host an open-source model
You can run a small open-source toxicity classifier model on your own infrastructure, right next to the comments system you already host. Comment text never leaves your network.
CoastWeb needed this for our own Coral installs, so we built a solution and open-sourced it: perspective-replacement (MIT licensed).
Here's how it works
- Uses
@tensorflow-models/toxicityversion 1.2.2 (Apache-2.0), with the model weights already baked into the container image - Accepts and returns the same request and response shape as Perspective API
- Supports scores for: TOXICITY, SEVERE_TOXICITY, INSULT, PROFANITY, THREAT, IDENTITY_ATTACK, and SEXUALLY_EXPLICIT
- Nothing is stored, the comment text is never written to disk, a database, or logs
- It works with English-only in version 0, but it can be extended to other languages
How it scales
In load testing , one Google Cloud Run container with 1 vCPU and 1 GiB of memory handled up to 20 concurrent users with a p99 response time under 800 ms.
Most site based online communities don’t have anywhere near 20 users submitting comments simultaneously. Even when you have hundreds of websites submitting comments, which cumulatively generate hundreds of thousands of comments per month, the comment per second rate is usually less than 1. For these communities, costs for running a single container can start as low as around $25 a month.
For communities that do have more “bursty” comment traffic, such as those based around live sporting events or streaming platforms, scaling additional containers and or increasing CPU is possible to increase past the 20 concurrent user limit. Scaling can be tuned to your desired p99 latency.
Faster response times & reduced network bandwidth
Hosting your toxicity model in the same network as Coral or your CMS software can reduce the round-trip-total request time (RTT) for every comment created on your platform.
Since comment text no longer has to leave your network, go all the way to Perspective and then come back, the amount of time users wait for a “nudge” can be significantly reduced.
Keeping the comment inside your network also reduces the amount of network egress and ingress bandwidth your comments platform consumes.
Option 2: Get help from CoastWeb
If you don't have the time or the people to set this up before NYE, CoastWeb can help.
Implementation support
We’re already helping newsrooms and organizations keep control of their comment data by setting up an open-source scorer on their own infrastructure.
We can help you figure out how much an open-source model will cost for you to run, and help you get it up and going so that your engineers can stay focused on their year-end road map.
Hosted replacement endpoints available in US & EU data centers
CoastWeb can also provide a dedicated replacement endpoint hosted in your specific geographic region. API endpoints will only be offered on a limited basis to organizations that are subject to stricter data sovereignty regulations. Contact us directly to learn more.
CoastWeb’s Experience
CoastWeb founder Jessie Rushing used to be part of the Coral team at Vox Media, and has worked with Coral's Perspective integration since 2018. We have the integration and migration experience to help you navigate this transition.
Option 3: Replace your whole pipeline
Some of you were already thinking about replacing your entire moderation pipeline before the Perspective API shut down announcement. If that's you, there may be newer options out there to consider.
Everything we’ve talked about so far just swaps out the scorer and leaves the rest of your moderation setup alone. New tools like Tightrope allow your team to build custom moderation rulesets and decision graphs (or start from presets) and deploy them in minutes. Its analysis runs on custom natural language processing (NLP) models that Tightrope trains itself and are not the same as large language models.
Moving to something like Tightrope is a bigger change than just swapping out your toxicity scorer. It's a great option if you were already headed that way, but not necessary if your only concern is the Perspective API shutdown.
Questions to ask third-party endpoint providers
If you aren’t interested in self-hosting, the other option is of course to pay someone else to host a replacement endpoint for you. The Perspective API was generously offered to users for FREE for almost a decade, but as its shutdown approaches companies are springing up to try to capitalize on the opportunity to charge for a replacement.
When you point your Perspective API client at a replacement that someone else runs, that means you will be shipping every comment your readers post to someone else's servers, the same as it goes to Google today.
Before you send them any comments data, ask:
- Are you training your own proprietary models with our user’s comment data? and are your proprietary AI models used in law enforcement or surveillance applications?
- How is our comment data stored after a toxicity score has been provided? and for how long is it retained?
- Who at your company (or at your subprocessors) has access to view our users' comments?
- Where (which country, and whose data centers) is our data sent & processed?
- Is it encrypted at rest and/or in transit?
- Do your logs store or capture our users' comment text?
- Do you share or sell the data, or use it for anything besides scoring our comments?
Self-hosting your own open-source replacement avoids all of the issues surrounding the question: “where am I sending my comment data and how are they profiting from it?”
Next steps for publishers
Join our free Dec 10th Webinar
In this free 45-minute live webinar, CoastWeb’s founder Jessie Rushing will cover what happens if you do nothing, what replacement options are available, how running your own open-source model can cost very little, and how its results compare with Perspective's. Plus a live Q&A.
A simple decision path
- If you want comment text to stay on your network → self-host or get help self-hosting.
- If self-hosting is really not an option → start vetting a third-party replacement host with the questions above.
- If you were already planning to replace your whole moderation stack → look at options such as Tightrope, and keep your current pipeline scoring in the meantime.
- If you still have questions → come to the webinar or book a call .
CoastWeb is here to help newsrooms and major media organizations figure out and setup self hosting, so that they can avoid paying for the privilege of supplying incredibly valuable AI training data. Our commitment to maintaining open-source solutions for publishers who need them is prompting us to ask the question…who profits from this valuable API shutting down?
CoastWeb is an independent engineering & web development agency. We have no affiliation with Google or Jigsaw.
No comments yet