# AGISHub Text Classifier

> AGISHub Text Classifier is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Classifies a given text into exactly one of a set of caller-supplied candidate labels (e.g. sentiment, topic, intent).

## Facts

- Endpoint: GET https://api.agishub.com/v1/classify
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-text-classifier-e7705ad4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NDl8mBsJMZtpdEhF-6FEV

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 agishub-text-classifier-e7705ad4
```

Example prompt: Classify this customer message — 'Your app keeps crashing every time I try to upload a photo, this is so frustrating!' — into exactly one of these labels: complaint, question, praise, feature-request.

## When to prefer this

Choose this endpoint when you need zero-shot text classification against a custom set of labels you define at call time, without training a model. Ideal for routing, sentiment tagging, intent detection, or any scenario where you can enumerate 2–20 meaningful categories. Prefer this over general LLM prompting when you want a deterministic single-label output enforced by the API schema rather than free-form text.

## Known failure modes

- Fewer than 2 labels provided — returns validation error
- Text is empty or missing — returns 400 bad request
- More than 20 candidate labels supplied — exceeds maxItems limit
- Payment not provided or insufficient — returns 402 Payment Required
- Ambiguous text with equally matching labels may return an arbitrary winner with no confidence signal

## How this service works

Classify a text into exactly one of the candidate labels you provide (e.g. sentiment, topic, intent).

## Output

A JSON object containing a 'result' field with the single label from the provided candidates that best fits the input text. No confidence scores are returned — just the winning label string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "labels"
     ],
     "properties": {
      "text": {
       "type": "string",
       "minLength": 1,
       "description": "The text to classify."
      },
      "labels": {
       "type": "array",
       "items": {
        "type": "string",
        "minLength": 1
       },
       "maxItems": 20,
       "minItems": 2,
       "description": "Candidate labels to choose from, e.g. ['positive','negative','neutral']."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Classify a text into exactly one of the candidate labels you provide (e.g. sentiment, topic, intent)."
 }
}
```

## More

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