# x402 AI Tools – Sentiment Analysis

> x402 AI Tools – Sentiment Analysis is a paid API for AI agents from ai.kagurazaka.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-30).

Classifies the sentiment of a text (positive, negative, neutral, mixed) using Amazon Comprehend and returns a confidence score for each class, with automatic language detection.

## Facts

- Endpoint: POST https://ai.kagurazaka.dev/v1/sentiment?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-tools-sentiment-analysis-70e70b01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vFuoFaijwyvkvcwZCn5oq

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 x402-ai-tools-sentiment-analysis-70e70b01 -d '<json body>'
```

Example prompt: Analyze the sentiment of this customer review and give me the confidence scores for each class: 'The product arrived quickly but the packaging was damaged and customer support was unhelpful.'

## When to prefer this

Choose this endpoint when you need per-class sentiment confidence scores (positive, negative, neutral, mixed) rather than a single label, especially for multilingual text across the 12 supported languages. It is particularly useful when downstream logic needs to distinguish mixed sentiment from purely positive or negative. Prefer it over generic LLM-based sentiment when you need consistent, cost-predictable, AWS-backed scoring at $0.008 per call.

## Known failure modes

- Text exceeds 5000 bytes — endpoint rejects oversized input
- Unsupported language code provided — returns an error
- Empty or blank text — may return low-confidence or error response
- Payment failure — x402 payment of $0.008 USDC not processed correctly
- Network timeout — upstream Amazon Comprehend latency

## How this service works

Classifies the sentiment of a text with Amazon Comprehend and returns the score of each class. Supports en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW; the language is detected when not given.

## Output

Returns a sentiment classification (POSITIVE, NEGATIVE, NEUTRAL, or MIXED) along with a confidence score (0.0–1.0) for each class, and the detected or provided language code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "the text, up to 5000 bytes of UTF-8"
  },
  "language": {
   "type": "string",
   "description": "language code (en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW); detected when omitted"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-tools-sentiment-analysis-70e70b01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai.kagurazaka.dev](https://www.zero.xyz/host/ai.kagurazaka.dev/llms.txt)
