# fastapi.online Toxicity Score

> fastapi.online Toxicity Score is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Analyzes a text string and returns a toxicity score indicating how harmful, offensive, or abusive the content is.

## Facts

- Endpoint: POST https://api.fastapi.online/toxicity-score
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-toxicity-score-73509276
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4epFtM54wsskhpj6RBgn_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-toxicity-score-73509276 -d '<json body>'
```

Example prompt: Can you check this comment for toxicity and give me a score? The text is: 'You're an absolute idiot and nobody likes you.'

## When to prefer this

Choose this endpoint when you need a fast, cheap, per-call toxicity classification with no signup overhead, especially in agentic pipelines that pay with crypto. Ideal for lightweight content moderation where you want a simple numeric score rather than a full moderation suite. Prefer alternatives like Google Perspective API if you need enterprise SLAs, richer category labels (threat, insult, profanity broken out), or bulk batch processing.

## Known failure modes

- Text too short (below minLength of 1) returns validation error
- Text exceeds 8000 character limit returns 400 error
- Payment not provided or insufficient USDC results in 402 Payment Required
- Model inference failure returns 500 error
- Non-string or malformed JSON body returns 422 Unprocessable Entity

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a numeric toxicity score (typically 0.0 to 1.0) indicating the degree of toxicity in the input text, where higher values indicate more toxic content. May include confidence and category breakdowns depending on the model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-toxicity-score-73509276/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
