# x402.shizu.me Text Classifier

> x402.shizu.me Text Classifier is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.01/call, status healthy (last checked 2026-10-24, last successful call 2026-09-25).

Classifies a given text into exactly one of your provided labels in a single API call

## Facts

- Endpoint: POST https://x402.shizu.me/classify?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-24
- Last successful call: 2026-09-25
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-text-classifier-27c9ad40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9FTyqM1zWiagh-WMBuK4e

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 x402-shizu-me-text-classifier-27c9ad40 -d '<json body>'
```

Example prompt: Classify this customer message into exactly one of these labels — 'billing', 'technical_support', 'sales', or 'general_inquiry': 'Hi, I was charged twice for my subscription this month and need a refund.'

## When to prefer this

Choose this endpoint when you need deterministic, single-label classification with zero prompt engineering — ideal for loops, moderation queues, routing pipelines, and triage workflows where you control the label taxonomy and need a consistent one-of-N answer at a flat per-call price. Prefer it over general-purpose LLM calls when you want classification without babysitting output format.

## Known failure modes

- Text exceeds 4000 UTF-8 bytes — request rejected
- Fewer than 2 or more than 20 labels provided — validation error
- Empty text or empty labels array — malformed request
- Payment failure or insufficient USDC balance — 402 Payment Required
- Network timeout on the classification model — 5xx error

## How this service works

Classify text into YOUR labels in one call. Body: {text (<=4000 utf-8 bytes), labels (2-20 strings)}. Returns {label} — always exactly one of your labels. Flat price, no prompt engineering needed. Use in loops for routing, moderation queues, lead triage, sentiment buckets, intent detection.

## Output

Returns a JSON object with a single 'label' field containing exactly one of the strings you provided as candidate labels — no confidence score, no explanation, just the label.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {},
  "labels": {}
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "label": "bug_report",
  "labels": [
   "bug_report",
   "feature_request",
   "billing",
   "praise"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-text-classifier-27c9ad40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
