# 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-13).

Classifies text as positive, negative, or neutral and returns a numeric score, magnitude, and brief explanation.

## Facts

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

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-f6f44c1c -d '<json body>'
```

Example prompt: Analyze the sentiment of this review and tell me if it's positive, negative, or neutral with a score and a brief reason: 'The onboarding was seamless but the billing portal is a complete nightmare to navigate.'

## When to prefer this

Choose this endpoint when you need a lightweight, per-call sentiment score with an explanation — especially in agentic pipelines that pay per use via x402. It is well-suited for classifying short to medium text snippets such as reviews, social posts, or support messages where a score, magnitude, and brief reason are more useful than raw model probabilities. Prefer it over general-purpose LLM calls when you want a structured, consistent output format at a predictable $0.006 USDC cost.

## Known failure modes

- Empty or missing text input returns a validation error
- Extremely short or ambiguous text (e.g. single word) may yield low-confidence or neutral output
- Text in unsupported or mixed languages may produce inaccurate classifications
- Very long text inputs may be truncated or rejected
- Network or upstream model errors return a 5xx response

## 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 numeric sentiment score, a magnitude value indicating intensity, 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-f6f44c1c/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)
