# Zero-Shot Text Classifier (Mistral-powered, Multi-Label)

> Zero-Shot Text Classifier (Mistral-powered, Multi-Label) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Classifies arbitrary text into caller-supplied categories using zero-shot classification with calibrated confidence scores and reasoning, powered by Mistral.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/classify-text
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Success rate: 0% of calls made through Zero
- Rating: 4.3 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d3ffb1bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cQxc6oLdLvO5ehhYww3nt

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-deployer-x402-deployer-workers-dev-d3ffb1bf -d '<json body>'
```

Example prompt: Classify this customer support message — 'My order arrived damaged and I want a refund immediately' — into these categories: billing, shipping, product-quality, returns, account-issue. Use multi-label mode and give me confidence scores and reasoning for each label.

## When to prefer this

Choose this endpoint when you need zero-shot classification without any model training, especially when your category labels are dynamic or custom per request. Ideal when you need both multi-label support and human-readable reasoning alongside confidence scores. Prefer over embedding-based classifiers when interpretability matters.

## Known failure modes

- Fewer than 2 or more than 25 labels supplied — validation error
- Empty or missing text input — 400 bad request
- Labels are ambiguous or overlapping — lower confidence scores with uncertain reasoning
- Text is too long — possible truncation or error
- Payment not included or insufficient — 402 payment required
- Mistral backend unavailable — 503 service error

## How this service works

Text classifier / zero-shot classifier / category sorter. Caller supplies labels (2-25). Multi-label mode. Calibrated confidences + reasoning. Mistral powered.

## Output

Returns each supplied label with a calibrated confidence score (0-1) indicating how well the text matches that category, plus a reasoning explanation for the classification decisions. In multi-label mode, multiple labels can be assigned simultaneously.

## Example request

```json
{
 "input": {
  "body": {
   "text": "This product is amazing and arrived quickly. I love the quality and would definitely recommend it to others.",
   "labels": [
    "positive",
    "negative",
    "neutral",
    "complaint",
    "praise"
   ],
   "multi_label": true,
   "label_descriptions": {
    "praise": "Explicitly commends or compliments",
    "neutral": "Neither positive nor negative",
    "negative": "Expresses dissatisfaction or criticism",
    "positive": "Expresses satisfaction or approval",
    "complaint": "Indicates a problem or issue"
   }
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 },
 "output": {
  "type": "json"
 }
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text",
      "labels"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to classify. Max 15k chars."
      },
      "labels": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Candidate labels to choose from. 2-25 items, each a non-empty string ≤80 chars."
      },
      "multi_label": {
       "type": "boolean",
       "description": "If true, returns every label that applies instead of just the best match. Optional; defaults to false."
      },
      "label_descriptions": {
       "type": "object",
       "description": "Optional map of label name to a short description, used to guide the model."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "label": {
          "type": "string"
         },
         "confidence": {
          "type": "number"
         }
        }
       }
      },
      "top_label": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d3ffb1bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
