# Tanship PayAI Console — AI Classify

> Tanship PayAI Console — AI Classify is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Classifies text or structured input into categories using edge AI, gated by micropayment via the x402 protocol on Base/USDC.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/classify
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-ai-classify-545dbaa7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X7Lmiw4Zx5706MqD0-05_

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 tanship-payai-console-ai-classify-545dbaa7 -d '<json body>'
```

Example prompt: Can you classify this customer review into one of the sentiment categories — positive, negative, or neutral: 'The onboarding was smooth but the dashboard crashes on mobile every time.'

## When to prefer this

Choose this endpoint when you need low-cost, per-call AI text classification without a subscription, billed in USDC micropayments via x402. Ideal for agents that need to classify arbitrary content on demand and want cryptographic payment rather than API key management. Best for sporadic or high-volume classification where pay-per-use economics matter.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 with x402 payment requirements
- Malformed request body — returns 400 if required fields like 'type', 'method', or 'bodyType' are missing
- Unsupported bodyType value — only 'json', 'form-data', or 'text' are accepted
- Empty or null input body — may return 422 or classification error
- Network timeout at edge node — may return 504 or connection error

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns a classification label or category for the provided input, typically including a predicted class and potentially a confidence score, based on AI inference run at the edge.

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-ai-classify-545dbaa7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
