# AmanChain Sentiment Analysis

> AmanChain Sentiment Analysis is a paid API for AI agents from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai, paid per call via x402, $0.002488/call, status unknown (last checked 2026-09-14).

Analyzes any text to return sentiment classification, polarity score, and detected emotions

## Facts

- Endpoint: POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-sentiment
- Price: $0.002488/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-sentiment-analysis-9b6b51e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0_EcDYYulI2htwmg4-Y_Q

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 amanchain-sentiment-analysis-9b6b51e2 -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this customer review and tell me the polarity score and any emotions detected: 'The product arrived late and the packaging was damaged, but the item itself works perfectly and support was very helpful'?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-account sentiment and emotion analysis service settled in USDC on Base via x402 protocol. It is well-suited for agents that need lightweight NLP analysis without managing API keys or subscriptions, especially within the AmanChain ecosystem. Prefer alternatives if you need bulk/batch processing, advanced NLP models with fine-tuning, or a free tier.

## Known failure modes

- Empty or missing 'request' field returns an error
- Incorrect serviceId (not 'aman-sentiment') causes routing failure
- Payment failure via x402/USDC causes request rejection
- Extremely long text inputs may be truncated or rejected
- Non-text or binary inputs produce undefined behavior

## How this service works

Sentiment Analysis: sentiment, polarity score and emotions for any text Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-sentiment","request":"<input>"}. No account, no API key.

## Output

Returns a sentiment classification (positive, negative, or neutral), a numeric polarity score indicating strength and direction of sentiment, and a set of detected emotion labels (e.g. joy, anger, sadness, frustration) for the submitted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-sentiment-analysis-9b6b51e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai](https://www.zero.xyz/host/preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/llms.txt)
