# Yog x402 Text Classification

> Yog x402 Text Classification is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Classifies a given text string into one of a set of user-supplied labels using a paid AI-powered endpoint.

## Facts

- Endpoint: POST https://api.gosyog.lol/api/service/yog/classify_text?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-text-classification-a13499b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bGxLu4o-TY5rtRoPoQvJV

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 yog-x402-text-classification-a13499b3 -d '<json body>'
```

Example prompt: Classify this customer review — 'The delivery was fast but the packaging was damaged' — as one of: positive, negative, or mixed.

## When to prefer this

Choose this endpoint when you need lightweight, zero-infrastructure text classification with a custom label set and are comfortable with a per-call micropayment model. It is well-suited for agents that need dynamic label sets (not a fixed taxonomy) and want a simple JSON response. Prefer alternatives if you need confidence scores, multi-label output, or batch classification at scale.

## Known failure modes

- Empty or missing 'text' field returns an error
- Empty 'labels' array (minItems:1 violated) causes a validation error
- Payment failure or insufficient USDC balance blocks the request
- Ambiguous text with equally valid labels may produce unpredictable label selection
- Network timeout if the underlying model is slow to respond

## How this service works

Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).

## Output

Returns a JSON object with an 'ok' boolean and a 'result' object containing a 'label' field set to whichever of the supplied labels best matches the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "label": "positive"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-text-classification-a13499b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gosyog.lol](https://www.zero.xyz/host/api.gosyog.lol/llms.txt)
