# fastapi.online PII Detect

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

Detects personally identifiable information (PII) in a block of text using a self-hosted AI model

## Facts

- Endpoint: POST https://api.fastapi.online/pii-detect
- Price: $0.0015/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-pii-detect-1ea2dd43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xKdoODNKMNZZ-c6TU2mms

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-pii-detect-1ea2dd43 -d '<json body>'
```

Example prompt: Scan this text for any personally identifiable information like names, phone numbers, emails, or SSNs: 'Please contact John Smith at john.smith@example.com or call 555-867-5309, his SSN is 123-45-6789.'

## When to prefer this

Choose this endpoint when you need a low-cost, no-signup, pay-per-call PII detection service with no data retention commitments implied by enterprise SaaS. Ideal for automated pipelines that need to screen arbitrary text for personal data before storage or transmission, especially when crypto micropayments via x402 are already integrated. Prefer it over cloud provider PII APIs (AWS Comprehend, GCP DLP) when avoiding account setup friction or when cost-per-call pricing at $0.0015 USDC is advantageous for low-volume or bursty workloads.

## Known failure modes

- Text exceeds 8000 character limit — 422 validation error
- Empty or missing text field — 422 validation error
- Payment not provided or insufficient — 402 Payment Required
- Model inference timeout on very dense or complex text
- False negatives on obfuscated or non-standard PII formats
- False positives on random strings that resemble PII patterns

## 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 structured list of detected PII entities found in the input text, including entity type (e.g. NAME, EMAIL, PHONE, SSN, ADDRESS, CREDIT_CARD) and the specific text spans or values identified, along with confidence scores where available.

## 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-pii-detect-1ea2dd43/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)
