# agentx.sale Text Classifier

> agentx.sale Text Classifier is a paid API for AI agents from agentx.sale, paid per call via x402, $1.75/call, status unknown (last checked 2026-10-21).

Classifies supplied text into free-form or caller-defined topic labels with confidence scores and rationale, supporting single-label and multi-label modes

## Facts

- Endpoint: POST https://agentx.sale/x402/classify?utm_source=zero.xyz
- Price: $1.75/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentx-sale-text-classifier-d5c3b9d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NURvJA0f9OQ9EmWoOF3ZE

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 agentx-sale-text-classifier-d5c3b9d1 -d '<json body>'
```

Example prompt: Classify this customer support ticket into one of these categories — billing, technical, shipping, or general — and tell me which label fits best and how confident you are: 'My order arrived damaged and I need a refund but I also can't log into my account.'

## When to prefer this

Choose this endpoint when you need AI-powered topic classification with confidence scores and human-readable rationale, especially when you want to supply your own label taxonomy or need multi-label support. It is ideal for routing, tagging, and content organization pipelines where explainability matters. Prefer it over keyword extraction when you need discrete category assignments rather than ranked terms.

## Known failure modes

- Text exceeds 24,000 character limit — request rejected
- Empty or missing text field — validation error
- Labels array provided but empty — ambiguous behavior
- Payment not received or USDC balance insufficient — 402 Payment Required
- Malformed JSON body — 400 Bad Request
- Model uncertainty on ambiguous text may produce low-confidence or split labels

## How this service works

AI topic classification of supplied text: free-form topics or caller-supplied label set, single or multi-label, confidence + rationale. POST JSON {text, labels?, multiLabel?} (max 24k chars)

## Output

Returns the assigned topic label(s), a confidence score (0–1) for each, and a brief rationale explaining why the text was assigned to those categories. In multi-label mode, multiple labels with individual scores are returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "labels": {
   "type": "array"
  },
  "multiLabel": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "labels": [
   "energy"
  ],
  "confidence": 0.92
 }
}
```

## More

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