# NoJunk AI Text – Classify

> NoJunk AI Text – Classify is a paid API for AI agents from nojunk-ai-text.mick8511.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-16).

Classifies text into one of your provided labels using LLM inference, with optional multi-label output and confidence scoring.

## Facts

- Endpoint: POST https://nojunk-ai-text.mick8511.workers.dev/classify?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-ai-text-classify-e927e09f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-PMCVWa1Z63dYji1hwqcI

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 nojunk-ai-text-classify-e927e09f -d '<json body>'
```

Example prompt: Classify this customer support message as one of these labels — 'billing', 'technical', 'shipping', or 'general' — and tell me whether multiple labels apply: 'My order arrived damaged and I was charged twice for it.'

## When to prefer this

Choose this endpoint when you need cheap, reliable, pay-per-result text classification into your own custom label set without any subscription or setup. Ideal for agents that need to route, tag, or categorize arbitrary text on-demand at $0.002/call. Prefer it over general-purpose LLM APIs when you want strict label adherence (the model will always return one of your labels), built-in confidence scoring, and zero charge on failed calls.

## Known failure modes

- Payment not received or insufficient USDC — returns 402 Payment Required with no charge
- Text exceeds 24,000 characters — request rejected
- Labels array has fewer than 2 or more than 20 items — validation error
- Empty or missing text field — returns an error with no charge
- Model inference timeout — transient 5xx error, safe to retry
- Label not in provided list — impossible by design; model is constrained to provided labels

## How this service works

NoJunk AI Text classify: Classify text into one (or several) of your own labels; the answer is always one of the labels you gave.

## Output

Returns a JSON object with a 'label' field (or 'labels' array in multi mode) matching one of your provided labels, a 'confidence' string ('high', 'medium', or 'low'), the model name used, prompt and completion token counts, and an ISO 8601 timestamp. Nothing is invented — if the text doesn't fit any label, the model still picks the closest provided option.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to classify (1 to 24000 characters)"
  },
  "multi": {
   "type": "boolean",
   "description": "Optional: true to allow several labels (returns labels[]), default false"
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Allowed labels, 2-20 strings; the result is always one of them"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "label": "earnings",
  "model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
  "usage": {
   "prompt_tokens": 170,
   "completion_tokens": 12
  },
  "confidence": "high",
  "generated_at": "2026-10-15T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-ai-text-classify-e927e09f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-ai-text.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-ai-text.mick8511.workers.dev/llms.txt)
