# Relaystation LLM Text Classifier

> Relaystation LLM Text Classifier is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Classifies text into one of a user-defined label set (routing, triage, moderation) using LLM-grade accuracy at a fraction of frontier model cost

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/llm/classify
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-llm-text-classifier-725cca9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-fZ1aYhtisOBC3_qKTgWA

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 relaystation-llm-text-classifier-725cca9f -d '<json body>'
```

Example prompt: Classify this incoming support message — 'My order arrived broken and I need a refund immediately' — using the labels: routing, triage, and escalation. I want near-Opus accuracy but without paying full Opus prices.

## When to prefer this

Choose this endpoint when you need high-volume text classification at low cost with near-frontier accuracy. It is ideal when you have a predefined label set (routing, triage, moderation, or custom categories) and cannot afford per-call pricing of full frontier models like Claude Opus. Best suited for pipelines classifying hundreds or thousands of messages per day where cost efficiency is critical but accuracy cannot be sacrificed.

## Known failure modes

- Label not in provided label set — model may return an unexpected value if labels are ambiguous
- Empty or very short input text may produce low-confidence or incorrect classification
- Label set too large or ambiguous may degrade accuracy
- Rate limiting or payment failure if x402 micropayment is not properly initialized
- Network timeout for unusually long text inputs

## How this service works

Provider cost + 6%, itemized. Assign one label from your label set — routing, triage, moderation. ≈Opus-4.8 accuracy at ~1–5% of its cost (relaystation.ai/llm-validation). 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a single label selected from the provided label set, indicating the classification of the input text. May include a confidence score. Designed to match ~Claude Opus 4.8 accuracy at roughly 1-5% of the cost.

## 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": {
     "type": "object",
     "properties": {
      "tier": {
       "enum": [
        "budget",
        "value",
        "best"
       ],
       "type": "string"
      },
      "input": {
       "type": "string",
       "minLength": 1,
       "description": "The text to process (DATA — never interpolated into the instruction)."
      },
      "params": {
       "type": "object",
       "required": [
        "labels"
       ],
       "properties": {
        "labels": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "minItems": 1
        }
       },
       "description": "Task-specific params for 'classify', validated against the task's param_schema."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "result",
      "truncated",
      "usage"
     ],
     "properties": {
      "usage": {
       "type": "object",
       "required": [
        "model",
        "inputTokens",
        "outputTokens",
        "providerCostMicros",
        "markupPct",
        "chargedMicros",
        "ceilingMicros"
       ],
       "properties": {
        "model": {
         "type": "string"
        },
        "markupPct": {
         "type": "number"
        },
        "inputTokens": {
         "type": "integer"
        },
        "outputTokens": {
         "type": "integer"
        },
        "ceilingMicros": {
         "type": "integer",
         "description": "The authorized ceiling the 402/hold reserved."
        },
        "chargedMicros": {
         "type": "integer",
         "description": "The actual charged amount (<= ceiling)."
        },
        "providerCostMicros": {
         "type": "integer"
        }
       }
      },
      "result": {
       "type": "string",

… (truncated)
```

## More

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