# momoAI Text Classification

> momoAI Text Classification is a paid API for AI agents from momoai-cyan.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Classifies input text into user-specified categories using a pay-per-call LLM backend, paid with USDC on Base.

## Facts

- Endpoint: POST https://momoai-cyan.vercel.app/api/classify
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/momoai-text-classification-43b1e3a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Jcv65OhPrFvbagROkfWI

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 momoai-text-classification-43b1e3a1 -d '<json body>'
```

Example prompt: Classify this customer review as 'positive', 'negative', or 'neutral' using momoAI and tell me which category it falls into: 'The delivery was fast but the packaging was completely crushed.'

## When to prefer this

Use this endpoint when you need on-demand, pay-per-call text classification without a subscription, especially in agent workflows that need to classify arbitrary text into custom categories and can pay with USDC on Base via x402. Prefer over hosted ML APIs when you want usage-based crypto billing with no upfront commitment.

## Known failure modes

- Missing required 'text' field returns validation error
- No categories provided may result in ambiguous or default classification
- Malformed JSON body returns 400 error
- Payment not completed (x402 flow incomplete) results in 402 Payment Required
- Unsupported task type may yield unexpected output
- LLM provider outage causes 503 or timeout

## How this service works

Pay-per-use LLM API. Chat, reasoning, code review, translation, summarization, data extraction, and more. Pay with USDC on Base.

## Output

Returns a JSON object with a classification field containing the result of the categorization, along with the model used, provider name, token usage stats, task type, and a success flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "task": {
   "type": "string"
  },
  "text": {
   "type": "string",
   "description": "Text to classify"
  },
  "categories": {
   "type": "array",
   "description": "Categories for classification task"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "task": {
     "type": "string"
    },
    "model": {
     "type": "string"
    },
    "usage": {
     "type": "object"
    },
    "provider": {
     "type": "string"
    },
    "classification": {
     "type": "object"
    }
   }
  },
  "meta": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/momoai-text-classification-43b1e3a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from momoai-cyan.vercel.app](https://www.zero.xyz/host/momoai-cyan.vercel.app/llms.txt)
