# AmanChain Sentiment Analysis

> AmanChain Sentiment Analysis is a paid API for AI agents from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai, paid per call via x402, $0.00311/call, status unknown (last checked 2026-09-15).

Analyzes any input text for sentiment (positive/negative/neutral), polarity score, and detected emotions

## Facts

- Endpoint: POST https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-sentiment
- Price: $0.00311/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-sentiment-analysis-a376b059
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PqCaorAPo0Zfujv_hexke

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-a376b059 -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 polarity score and any emotions detected: 'The product arrived late and the packaging was damaged, but customer support resolved it quickly.'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call sentiment and emotion analysis without managing API keys or subscriptions. It is well-suited for agents processing individual text items in real time and requiring both a polarity score and emotion labels in a single call. Prefer alternatives if you need batch processing at high volume or require fine-tuned domain-specific sentiment models.

## Known failure modes

- Empty or missing 'request' field returns an error or empty result
- Extremely short or ambiguous text may yield low-confidence or neutral scores
- Non-English text may produce less accurate sentiment and emotion detection
- Malformed JSON body returns a parse error
- Payment failure via x402 results in a 402 response and no analysis

## 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 label (positive, negative, or neutral), a numeric polarity score indicating sentiment strength and direction, and a set of detected emotions (e.g. joy, anger, sadness, fear, surprise) present in the input text.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "request": {
       "type": "string",
       "description": "service input (see body example)"
      },
      "serviceId": {
       "type": "string",
       "description": "the service id, \"aman-sentiment\""
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-sentiment-analysis-a376b059/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai](https://www.zero.xyz/host/preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/llms.txt)
