# Strale Text Classifier

> Strale Text Classifier is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054/call, status unknown (last checked 2026-09-14).

Classifies text into user-defined categories, returning a structured classification result with an auditable cryptographic record.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/classify-text
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-text-classifier-fa41c715
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mauAol3Yk_QolO_avlI1G

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 strale-text-classifier-fa41c715
```

Example prompt: Classify this text — 'Your package was delayed and I am very frustrated with the service' — into one of these categories: complaint, compliment, inquiry, or feedback.

## When to prefer this

Choose this endpoint when you need auditable, trustworthy text classification with a cryptographic trail — especially in regulated or compliance-sensitive workflows. Prefer it over generic NLP APIs when you need multi-country support, pay-per-call micropayment pricing via x402, or when the classification must be independently verifiable.

## Known failure modes

- Missing or empty text input returns a validation error
- No categories provided results in an error or fallback behavior
- Ambiguous text with low confidence may return an uncertain or null label
- Network timeout or service unavailability returns a 5xx error
- Malformed categories string may cause parsing failure

## How this service works

Classify text into categories. Optionally provide custom categories. Returns primary category, confidence scores, topic keywords, and summary.

## Output

Returns the assigned category label from the provided list, likely with a confidence score and a cryptographic audit record that chain-hashes the call for traceability and trust verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to classify"
  },
  "categories": {
   "type": "array",
   "description": "Optional list of categories to classify into"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "confidence": {
  "type": "number"
 },
 "all_categories": {
  "type": "array"
 },
 "topic_keywords": {
  "type": "array"
 },
 "primary_category": {
  "type": "string"
 }
}
```

## More

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