# Animica Document Classify

> Animica Document Classify is a paid API for AI agents from animica.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Classifies a text document into a category using ML, returning the predicted class with confidence.

## Facts

- Endpoint: POST https://animica.dev/x402/health/document/classify
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-document-classify-7ba4ac49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rfo9_UjOrs4GT1Z3n_FLx

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-document-classify-7ba4ac49 -d '<json body>'
```

Example prompt: Classify this text for me: 'The Federal Reserve raised interest rates by 25 basis points citing persistent inflation concerns.' — what document category does it fall into?

## When to prefer this

Choose this endpoint when you need pay-per-call, no-subscription document classification without managing your own ML infrastructure or API keys. It is ideal for agents that classify documents infrequently or at variable volume, and when you want to pay only $0.006 USDC per call with no upfront commitment. Prefer alternatives if you need a custom taxonomy, fine-tuned categories, or bulk batch classification at high throughput.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Extremely long text may be truncated or rejected
- Ambiguous text spanning multiple categories may yield low-confidence results
- Payment failure (insufficient USDC balance) blocks the call with a 402 response
- Network timeout if the classification model is slow to respond

## How this service works

Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.

## Output

Returns a JSON response containing the predicted document category/class label and typically a confidence score, indicating how the model has classified the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-document-classify-7ba4ac49/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)
