Perspective
NLP API to return probability that if text is toxic, obscene, insulting or threatening
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Machine Learning
- Documentation / URL
- https://perspectiveapi.com
Overview
Perspective provides toxicity probability scoring — key-based (requests need a real GCP project; a bogus one returns 404, verified).
Quick Start
Requires a valid GCP API key:
curl -X POST "https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze?key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"comment":{"text":"hello"},"requestedAttributes":{"TOXICITY":{}}}'
Authentication
- Register at perspectiveapi.com → GCP API key.
- Bogus key/project → 404 (verified).
Rate Limits & Notes
- Free tier with limits (check the docs).
- Toxicity/obscenity/insult/threat scores.
FAQ
Is Perspective free? Free tier with limits; more is paid.
Why 404? A bogus key returns 404 (verified) — use a real GCP key.
What’s the auth style? GCP API key query parameter.
More in Machine Learning
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| AI Economics Tools Token cost, LLM energy, agent-hour and Proof-Adjusted Autonomy calculators by Michał Piszczek | No auth | Yes | Yes | ↗ |
| AI For Thai Free Various Thai AI API | API Key | Yes | Yes | ↗ |
| BRAINIALL PT-BR and Spanish audio transcription with diarization and SRT/VTT | API Key | Yes | Yes | ↗ |
| Clarifai Computer Vision | OAuth | Yes | Unknown | ↗ |
| Cloudmersive Image captioning, face recognition, NSFW classification | API Key | Yes | Yes | ↗ |