# agente-jefe Text Classification

> agente-jefe Text Classification is a paid API for AI agents from agente.revenuerecoveryai.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12, last successful call 2026-08-14).

Classifies input text into user-defined comma-separated categories, returning a confidence score between 0 and 1 for each.

## Facts

- Endpoint: GET https://agente.revenuerecoveryai.app/v1/clasificacion?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-08-14
- Success rate: 67% of calls made through Zero
- Rating: 3.3 / 5 from 2 reviews
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agente-jefe-text-classification-4fb08962
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HOD9_3Pv1_sbCTQR4TRwd

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 agente-jefe-text-classification-4fb08962
```

Example prompt: Classify this customer message — 'My order arrived damaged and I want a refund' — into these categories: billing, shipping, returns, technical-support, and tell me the confidence score for each.

## When to prefer this

Choose this endpoint when you need lightweight, fast text classification against a custom, dynamic set of categories defined at call time without any model fine-tuning. It is particularly useful when categories are not fixed in advance and change per request. Prefer it over fixed-schema sentiment APIs when you need domain-specific labels or multi-label classification with per-category confidence scores.

## Known failure modes

- Missing required 'texto' parameter — returns error
- Fewer than 2 categories provided in 'categorias' — returns validation error
- Malformed comma-separated categories list — may return unexpected results
- Empty or whitespace-only text input — may return low-confidence scores across all categories
- Payment failure (x402) — returns 402 Payment Required if USDC payment is not included

## How this service works

Classify text into categories you define, with a 0-1 score per category. Single-label or multi-label. Clasifica texto en las categorías que tú definas, con puntuación de 0 a 1 por categoría. Admite una sola etiqueta o multietiqueta.

## Output

Returns a JSON object mapping each provided category to a confidence score between 0 and 1, indicating how strongly the input text belongs to that category. Supports single-label and multi-label output depending on the 'multietiqueta' flag.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "texto",
      "categorias"
     ],
     "properties": {
      "texto": {
       "type": "string",
       "description": "Texto a clasificar."
      },
      "profundo": {
       "type": "boolean"
      },
      "categorias": {
       "type": "string",
       "description": "Categorías separadas por comas, mínimo 2."
      },
      "multietiqueta": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uso": {
   "modelo": "deepseek-flash",
   "tokens_salida": 180,
   "tokens_entrada": 236,
   "coste_estimado_usd": 0.00016856,
   "tokens_entrada_cacheados": 128
  },
  "confianza": 0.9,
  "etiquetas": [
   "soporte",
   "urgente"
  ],
  "puntuaciones": [
   {
    "score": 0.95,
    "categoria": "soporte"
   },
   {
    "score": 0.82,
    "categoria": "urgente"
   },
   {
    "score": 0.05,
    "categoria": "ventas"
   },
   {
    "score": 0.01,
    "categoria": "spam"
   }
  ],
  "justificacion": "Reclamación de producto dañado sin respuesta del vendedor."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agente-jefe-text-classification-4fb08962/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agente.revenuerecoveryai.app](https://www.zero.xyz/host/agente.revenuerecoveryai.app/llms.txt)
