# OmniAPI AI Classify

> OmniAPI AI Classify is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.024348/call, status unknown (last checked 2026-09-15).

Classifies a text query or input into AI-determined categories using a pay-per-call USDC x402 endpoint

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/classify
- Price: $0.024348/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-classify-aab88764
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wU0CGqNEJC5vJ-fZ_NKAR

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 omniapi-ai-classify-aab88764 -d '<json body>'
```

Example prompt: Classify this text using OmniAPI's AI classify endpoint and tell me what category it falls into: 'The battery drains within 2 hours of normal use and the screen flickered twice.'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call AI text classification without managing your own ML infrastructure. It is well-suited for agents that handle sporadic classification tasks across diverse domains (content moderation, intent detection, ticket routing) and want to pay micro-amounts in USDC rather than maintain a subscription. Prefer alternatives if you need fine-tuned domain-specific models, guaranteed SLAs, or bulk batch processing at lower per-call cost.

## Known failure modes

- Missing required 'query' field returns a 400 validation error
- Malformed JSON body results in a parsing error response
- Payment failure via x402 (insufficient USDC balance or unsupported facilitator) blocks the request
- Overly long input text may be truncated or rejected depending on model limits
- Ambiguous or empty query string may return low-confidence or null classification

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a structured JSON object containing the AI-generated classification result for the submitted query or input text, typically including a category label and potentially a confidence score or additional metadata fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-classify-aab88764/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
