# 24K Labs Sentiment Analyzer

> 24K Labs Sentiment Analyzer is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-15).

Classifies text as positive, negative, or neutral and returns a sentiment score, magnitude, and brief reason.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/sentiment-analyze
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-sentiment-analyzer-9ec4da81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_heb20abQgumLSjrht6QWd

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 24k-labs-sentiment-analyzer-9ec4da81 -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this review and tell me whether it's positive, negative, or neutral, along with a confidence score and a brief reason: 'The delivery was fast but the packaging was completely crushed and half the items were missing.'

## When to prefer this

Choose this endpoint when you need a lightweight, fast sentiment classification with an interpretable score, magnitude, and explanation rather than a full NLP pipeline. Ideal for per-item sentiment tagging in agentic workflows where cost-per-call matters ($0.006 USDC) and you need more than just a label — specifically the magnitude and reason fields. Best for short-to-medium text like reviews, comments, tickets, and social posts.

## Known failure modes

- Empty or missing text input returns a validation error
- Extremely short or ambiguous text may produce low-confidence or neutral classification
- Non-English text may yield inaccurate results if multilingual support is limited
- Overly long text inputs may be truncated or rejected
- Network timeout on the x402 payment or API endpoint returns a payment or connectivity error

## How this service works

Classify text sentiment (positive/negative/neutral) with a score, magnitude, and brief reason.

## Output

Returns a sentiment classification label (positive, negative, or neutral), a numerical sentiment score, a magnitude value indicating strength of sentiment, and a brief human-readable reason explaining the classification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sentiment": "positive"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-sentiment-analyzer-9ec4da81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
