# HydraTrader AI Sentiment Analysis (x402)

> HydraTrader AI Sentiment Analysis (x402) is a paid API for AI agents from x402.hydratrader.ai, paid per call via x402, $0.01/call, status healthy (last checked 2026-10-01, last successful call 2026-09-24).

Classifies the sentiment of a given text input, returning a sentiment label via a pay-per-call x402 micropayment API with no API key required.

## Facts

- Endpoint: POST https://x402.hydratrader.ai/v1/sentiment?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-01
- Last successful call: 2026-09-24
- Success rate: 50% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hydratrader-ai-sentiment-analysis-x402-0c4f3610
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3XIwRDs_dzX7xgLJxDaLj

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 hydratrader-ai-sentiment-analysis-x402-0c4f3610 -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral: 'The product arrived quickly and works perfectly, but the packaging was a bit damaged.'

## When to prefer this

Choose this endpoint when you need sentiment classification without managing API keys or subscriptions, and are comfortable paying $0.01 USDC per call via the x402 micropayment protocol. Ideal for agents that need on-demand, pay-as-you-go NLP without vendor lock-in. Best suited for single-text sentiment tasks rather than bulk batch processing.

## Known failure modes

- HTTP 402 returned if payment is not included or fails
- Input text exceeds 8000 character limit causes rejection
- Missing or empty 'input' field results in an error
- Invalid task enum value causes a bad request response
- Network timeout if the model inference takes too long

## How this service works

Sentiment classification: Verb-path alias of POST /v1/cheap-errand ($0.01 USDC). Same handler + payment terms; path defaults task=sentiment when body.task omitted. Cheap agent glue for buyer-supplied text. Base via x402. No API key.

## Output

Returns a sentiment classification for the submitted text — typically a label such as positive, negative, or neutral, along with any confidence or metadata provided by the underlying model. The response reflects the emotional polarity of the input string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "enum": [
    "summarize",
    "rewrite",
    "classify",
    "extract_keywords",
    "sentiment",
    "translate"
   ],
   "type": "string"
  },
  "input": {
   "type": "string",
   "maxLength": 8000
  },
  "options": {
   "type": "object"
  },
  "client_ref": {
   "type": "string"
  }
 }
}
```

## More

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