# AgentUtility Text Classifier

> AgentUtility Text Classifier is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Classifies text into a top label category (e.g. spam detection) via a pay-per-call POST endpoint settled in USDC over x402

## Facts

- Endpoint: POST https://x402.agentutility.ai/classify
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-text-classifier-a35f733d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w5P7BKjrv_bIXHBhkk8vT

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 agentutility-text-classifier-a35f733d -d '<json body>'
```

Example prompt: Classify this message and tell me the top label: 'Congratulations! You have been selected for a $1,000 gift card — click here to claim your prize now!'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text classification API with no subscription, settled in USDC on Base via x402. Ideal for AI agents that need to programmatically classify content (e.g. spam detection) without managing API keys or monthly plans, especially in autonomous agent workflows that already use x402 micropayments.

## Known failure modes

- Missing or empty input text returns an error
- Payment failure or insufficient USDC balance blocks the request
- Ambiguous or very short text may produce low-confidence or unexpected labels
- Network timeouts on Base/x402 payment settlement
- Unsupported content types or encoding issues

## How this service works

Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.

## Output

Returns a JSON object with a 'top_label' field containing the predicted classification category string (e.g. 'spam') for the submitted text.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text",
      "labels"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to classify. Max 15k chars."
      },
      "labels": {
       "type": "array",
       "description": "Candidate labels the model picks from. 2-25 items, each a string up to 80 chars."
      },
      "multi_label": {
       "type": "boolean",
       "description": "Boolean, default false. When true, returns every label that applies instead of just the top one."
      },
      "label_descriptions": {
       "type": "object",
       "description": "Optional object mapping each label to a short description to guide classification."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "top_label": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "top_label": "spam"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-text-classifier-a35f733d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
