# fastapi.online Spam Detection

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

Classifies a given text as spam or not spam using a self-hosted AI model

## Facts

- Endpoint: POST https://api.fastapi.online/spam-detect
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-spam-detection-debc4079
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wLkHqQKhMi3wHqRE5bykN

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-spam-detection-debc4079 -d '<json body>'
```

Example prompt: Can you check if this message is spam: 'Congratulations! You've been selected for a free iPhone — click here now to claim your prize before it expires!'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call spam classifier with no signup required, especially for one-off checks or low-volume workflows. At $0.001 per call it is cost-effective for moderate volumes. Prefer it over heavier NLP pipelines when you just need a binary spam/not-spam classification on short text up to 8000 characters.

## Known failure modes

- Empty or missing text field returns validation error
- Text exceeding 8000 character limit is rejected
- Network timeout if the self-hosted model is under load
- Payment failure if insufficient USDC balance for the $0.001 per call fee
- Ambiguous or borderline content may produce low-confidence results

## 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 classification indicating whether the submitted text is spam or not spam, likely including a confidence score or probability value indicating the model's certainty in the prediction.

## 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-spam-detection-debc4079/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)
