# Animica Zero-Shot Text Classifier

> Animica Zero-Shot Text Classifier is a paid API for AI agents from animica.dev, paid per call via x402, $0.005859/call, status down (last checked 2026-10-12, last successful call 2026-08-24).

Classifies arbitrary text into one or more user-supplied candidate labels with a confidence score and rationale

## Facts

- Endpoint: POST https://animica.dev/x402/classify?utm_source=zero.xyz
- Price: $0.005859/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Last successful call: 2026-08-24
- Success rate: 100% of calls made through Zero
- Rating: 1.3 / 5 from 1 review
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-zero-shot-text-classifier-6d8c83d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wNdIUrkrWwaAq1Jb9eXXp

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 animica-zero-shot-text-classifier-6d8c83d5 -d '<json body>'
```

Example prompt: Classify this customer message into exactly one of these labels — 'billing', 'technical support', 'shipping', or 'general inquiry' — and tell me how confident you are: 'My package arrived damaged and I was charged twice for the order.'

## When to prefer this

Choose this endpoint when you need zero-shot text classification without managing your own model or API keys — it provides candidate-label flexibility at low per-call cost ($0.005 USDC) via x402 micropayment. It is well-suited for agent workflows that need dynamic, user-defined taxonomies rather than fixed ML model categories, and when you want an explanatory rationale alongside the label rather than just a raw prediction.

## Known failure modes

- Fewer than 2 or more than 50 labels supplied — likely returns a validation error
- Empty or missing input text field — returns 400-class error
- Payment not accepted or insufficient USDC balance — x402 payment failure before inference runs
- Ambiguous text with very similar label candidates — low confidence score returned but still succeeds
- Network timeout on cold start of hosted function — retry may be needed

## How this service works

Assign text to one of YOUR labels — spam, sentiment, urgency, topic, ticket category, lead quality, intent, moderation — with a confidence and a one-line rationale. The label is constrained to your list by schema enum, so it cannot return a category you did not define. Priced per call. For high-volume use, buy prepaid credits (POST /x402/credits/buy) and send X-Animica-Credits on each request — no settlement, no gas, no per-call payment round trip. Paying in ANM on the animica:1 lane is also ~25% cheaper because we sponsor no gas there.

## Output

A JSON object containing the predicted label (or array of labels if multi=true), a confidence score between 0 and 1, a human-readable rationale explaining the classification, and the name of the model used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "the text to classify"
  },
  "multi": {
   "type": "boolean",
   "description": "allow multiple labels (default false)"
  },
  "labels": {
   "type": "array",
   "description": "2..50 candidate labels"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-zero-shot-text-classifier-6d8c83d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
