# Quartermaster Zero-Shot Text Classifier

> Quartermaster Zero-Shot Text Classifier is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Classifies input text into one of caller-supplied labels using zero-shot AI, returning a validated label from the provided set for deterministic downstream routing.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/classify
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-zero-shot-text-classifier-a6125841
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_myHMRkmEANBYRKgF9222T

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 quartermaster-zero-shot-text-classifier-a6125841
```

Example prompt: Classify this support message — 'my order never arrived and I want a refund' — into one of these labels: billing, shipping, returns, technical-issue, general-inquiry. Give me back only the matching label so I can route it automatically.

## When to prefer this

Choose this endpoint when you need zero-shot text classification without training data, especially when you want a label guaranteed to come from your exact set (no hallucinated categories). Ideal for routing pipelines where deterministic label output is critical. Prefer over generic LLM prompting when you need validated, constrained output rather than free-form model responses.

## Known failure modes

- Fewer than 2 or more than 20 labels provided — request rejected
- Text exceeds 8000 character limit — request rejected
- Ambiguous text that fits multiple labels equally — model picks one but confidence may be low
- Labels are semantically identical or overlapping — classification may be inconsistent
- Payment not settled — 402 response blocking access

## How this service works

Zero-shot text classification into caller-supplied labels; the result is validated back into your label set so agents can route on it deterministically.

## Output

Returns a single validated label from the caller-supplied label set that best fits the input text, guaranteed to be one of the provided candidates so agents can branch deterministically without additional parsing or validation.

## 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",
       "maxLength": 8000,
       "description": "Text to classify"
      },
      "labels": {
       "type": "string",
       "description": "Comma-separated candidate labels (2-20)"
      }
     }
    }
   },
   "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/quartermaster-zero-shot-text-classifier-a6125841/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
