# DexL Agents Text Classifier

> DexL Agents Text Classifier is a paid API for AI agents from agents.dexl.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Classifies a piece of text into one of a set of caller-defined labels using zero-shot or few-shot AI classification

## Facts

- Endpoint: POST https://agents.dexl.io/v1/tools/classify-text
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dexl-agents-text-classifier-142f7c5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GjLDpwNj7MML_9wQYsHCV

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 dexl-agents-text-classifier-142f7c5c -d '<json body>'
```

Example prompt: Classify this support message — 'My order never arrived and no one is responding to me' — into one of these categories: billing, shipping, refund, technical-issue, or general-inquiry.

## When to prefer this

Choose this endpoint when you need zero-shot text classification into caller-defined categories without setting up your own model or API keys — ideal for routing, tagging, or labeling tasks where the label set is known at call time. It is pay-per-call with no account required, making it suitable for agents that classify infrequently or need to vary the label set per request. Prefer it over general chat completions when you want a structured single-label output rather than a free-form answer.

## Known failure modes

- Fewer than 2 labels provided — returns validation error
- More than 30 labels provided — exceeds schema limit
- Text exceeds 8000 character limit — request rejected
- Ambiguous text that fits multiple labels equally well — model picks one but may be unreliable
- Payment not included or insufficient — x402 payment required error
- Network timeout if underlying model is slow to respond

## How this service works

Assign text to one of the labels you supply - support tickets, intents, topics, spam or not, anything. The returned label is checked against your list, so the model cannot invent a category: an answer outside your labels is rejected rather than passed through. Comes back with a confidence and a one-line reason. Fixed price per call.

## Output

Returns a JSON object with the chosen label from the provided list, plus metadata including the number of units consumed and whether the result was cached. The output object contains the classification decision keyed to the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8000
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 30,
   "minItems": 2,
   "description": "The only categories allowed in the answer."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": 1,
  "cached": false,
  "output": {}
 }
}
```

## More

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