# x402-farm Text Classifier

> x402-farm Text Classifier is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Assigns one label (with confidence score) from a user-supplied list to each of up to 20 short messages in a single call

## Facts

- Endpoint: GET https://api.x-402.online/v1/classify?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-farm-text-classifier-320f67b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W1F4OUnW7lC5WcKViV-wa

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-farm-text-classifier-320f67b7
```

Example prompt: Classify these 5 support messages into one of these labels — billing, technical, account, or general — and give me a confidence score for each: 'I can't log in', 'My invoice is wrong', 'How do I reset my password?', 'The app keeps crashing', 'I want to cancel my subscription'.

## When to prefer this

Choose this endpoint when you need fast, bounded classification of short texts against a fixed, user-defined label set — especially in agentic pipelines where you want guaranteed label fidelity (no hallucinated categories) and a confidence score for downstream routing logic. It is ideal for support ticket routing, chatbot intent detection, and feedback triage where the label vocabulary is known in advance. Prefer alternatives if you need open-ended classification, long-document analysis, or entity extraction.

## Known failure modes

- Fewer than 2 or more than 12 labels supplied — likely returns an error or ignores excess labels
- More than 20 messages submitted in one call — may reject or truncate input
- Messages too long for 'short message' constraint — reduced accuracy or rejection
- Ambiguous messages where confidence is low — still returns a label but with low confidence score
- Network or payment failure (402) if USDC balance is insufficient

## How this service works

Assign one of 2 to 12 supplied labels to each of up to 20 short messages, with a confidence; labels outside the supplied list are never returned Route short messages to labels you supply: up to 20 messages and 2 to 12 labels per call, one label pe…

## Output

For each input message, the endpoint returns the single best-matching label from the supplied list and a numeric confidence score. Labels outside the provided list are never returned, ensuring clean, bounded classification output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-farm-text-classifier-320f67b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
