# x402 Zero-Shot Text Classifier (Llama 3.2 3B)

> x402 Zero-Shot Text Classifier (Llama 3.2 3B) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-20).

Classifies a text string into the single best label from a caller-supplied set using Llama 3.2 3B, for routing, tagging, intent detection, or sentiment in one cheap API call.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/ai/classify?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-zero-shot-text-classifier-llama-3-2-3b-d35c1282
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q-lawwmfytqo2WqEZqLyE

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-zero-shot-text-classifier-llama-3-2-3b-d35c1282
```

Example prompt: Classify this support message — 'My invoice is wrong and I was charged twice' — into one of these categories: billing, bug, feature_request, other. Give me just the best matching label.

## When to prefer this

Choose this endpoint when you need a single-label zero-shot classification decision in one cheap call ($0.003 USDC) without needing confidence scores or multi-label output. It is ideal for fast, high-volume text routing (intent detection, spam filtering, topic tagging, sentiment bucketing) where you supply your own label vocabulary and don't want to maintain your own model infrastructure. Prefer alternatives if you need multi-label output, confidence scores, embeddings, or classification of text longer than 1000 characters.

## Known failure modes

- Fewer than 2 or more than 10 labels provided — likely returns an error or unexpected result
- Text exceeds 1000 characters — may be truncated or rejected
- Labels not comma-separated or malformed — may cause parsing failure
- Ambiguous text with no clear best label — model picks one but confidence may be low with no confidence score returned
- Rate limiting or payment failure (x402) — 402 Payment Required response if payment not attached

## How this service works

Zero-shot text classification (Llama 3.2 3B): ?text=<up to 1000 chars>&labels=<comma-separated labels, 2-10> returns the single best label. Use when an agent needs to route or tag text (intent, sentiment, topic, spam) in one cheap call.

## Output

A JSON object with a 'label' field containing the single best-matching label from the supplied list, plus a 'labels' array echoing back all the candidate labels that were evaluated.

## 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",
     "required": [
      "text",
      "labels"
     ],
     "properties": {
      "text": {
       "type": "string"
      },
      "labels": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "label",
      "labels"
     ],
     "properties": {
      "label": {
       "type": "string"
      },
      "labels": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "label": "billing",
  "labels": [
   "billing",
   "bug",
   "feature_request",
   "other"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-zero-shot-text-classifier-llama-3-2-3b-d35c1282/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
