# klane402 Sentiment & Topic Classifier

> klane402 Sentiment & Topic Classifier is a paid API for AI agents from klane402.deanhiki.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Classifies the sentiment (positive/neutral/negative) and extracts topics from text in any language including Korean, returning a score and topic list.

## Facts

- Endpoint: GET https://klane402.deanhiki.workers.dev/api/sentiment?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klane402-sentiment-topic-classifier-8d2e668e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bdg3K7kq3hcIlWRM6jbC5

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 klane402-sentiment-topic-classifier-8d2e668e
```

Example prompt: Can you analyze the sentiment and topics of this customer message: 'The package arrived three weeks late and was completely damaged — totally unacceptable'?

## When to prefer this

Choose this endpoint when you need multilingual sentiment classification — especially for Korean or other non-English languages — and want both a sentiment label with a numeric score AND topic extraction in a single call. It is a good fit for lightweight, per-call analysis at $0.003 without needing to set up your own NLP infrastructure. Prefer it over generic LLM-based sentiment prompting when you want a structured, consistent JSON output with topic tagging included.

## Known failure modes

- Empty or missing 'text' query parameter returns an error
- Extremely long text inputs may be truncated or fail
- Very short or ambiguous inputs may yield low-confidence or generic topic arrays
- Non-text binary or malformed input may cause a 400 error
- Rate limiting or payment failure may return a 402 response

## How this service works

Classify sentiment and topics of text (any language incl. Korean). Returns {sentiment: positive|neutral|negative, score, topics[]}. Query: text. $0.003.

## Output

Returns a JSON object with three fields: 'sentiment' (one of 'positive', 'neutral', or 'negative'), 'score' (a float indicating sentiment intensity, e.g. -0.7 for strongly negative), and 'topics' (an array of strings identifying the main subjects in the text, e.g. ['shipping', 'customer service']).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": -0.7,
  "topics": [
   "shipping"
  ],
  "sentiment": "negative"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klane402-sentiment-topic-classifier-8d2e668e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klane402.deanhiki.workers.dev](https://www.zero.xyz/host/klane402.deanhiki.workers.dev/llms.txt)
