# MolCloud AI Text Classifier & PII Redactor

> MolCloud AI Text Classifier & PII Redactor is a paid API for AI agents from api.molcloud.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Classifies text sentiment, redacts PII, and detects prompt injection attacks in a single pay-per-request call

## Facts

- Endpoint: POST https://api.molcloud.net/api/ai/classify?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/molcloud-ai-text-classifier-pii-redactor-74f38827
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7RSb8d0WMRyqDYIwXhzGk

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 molcloud-ai-text-classifier-pii-redactor-74f38827 -d '<json body>'
```

Example prompt: Can you classify the sentiment of this message and redact any personal info from it — 'Hi, I loved your product! Reach me at john.doe@example.com for a follow-up' — and also tell me if it looks like a prompt injection attempt?

## When to prefer this

Choose this endpoint when you need a combined, single-call solution for sentiment classification, PII redaction, and prompt injection detection — especially inside autonomous agent pipelines that require pay-per-use micropayment pricing via x402 on Base. It is ideal when you want to sanitize and evaluate user input before routing it further in your workflow, without stitching together multiple specialized APIs.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Very long inputs may hit token or payload size limits
- Ambiguous or multilingual text may produce lower-confidence sentiment labels
- Payment failure via x402 (insufficient USDC balance) returns HTTP 402 and no result
- Rate limiting if too many concurrent requests are made without sufficient payment settlement

## How this service works

40 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.

## Output

Returns a JSON object with a sentiment label (e.g. POSITIVE, NEGATIVE, NEUTRAL), a redacted version of the input text with PII replaced by [REDACTED_*] placeholders, and a boolean flag indicating whether a prompt injection was detected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input text or user prompt to classify and scan for PII/jailbreaks"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "sentiment": "POSITIVE",
   "redactedText": "Great service! Contact me at [REDACTED_EMAIL].",
   "promptInjectionDetected": false
  },
  "status": "success",
  "endpoint": "/api/ai/classify"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/molcloud-ai-text-classifier-pii-redactor-74f38827/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.molcloud.net](https://www.zero.xyz/host/api.molcloud.net/llms.txt)
