# the402.ai Sentiment Analysis

> the402.ai Sentiment Analysis is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.003/call, status down (last checked 2026-09-15).

Analyzes text to determine sentiment (positive, negative, neutral) with confidence scoring, paid per-call via x402 micropayment

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_2f0832378eea4820/purchase
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-16b35579
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j_cV2xUYnpnl6VF4CWxtz

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 api-the402-ai-16b35579 -d '<json body>'
```

Example prompt: Can you run sentiment analysis on this customer review and tell me whether it's positive, negative, or neutral along with a confidence score: 'The product arrived quickly but the packaging was completely crushed and customer support never responded to my complaint.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-use sentiment classification without a subscription commitment. Ideal for AI agents processing variable volumes of text feedback, reviews, or social posts where per-call micropayment via x402 is preferable to flat-rate SaaS. Best suited for single-document sentiment rather than bulk batch processing.

## Known failure modes

- Empty or missing text input returns validation error
- Text too long may exceed payload limits
- Payment failure if insufficient USDC balance returns 402
- Network timeout for very long documents
- Ambiguous or multilingual text may return low-confidence results

## How this service works

Purchase: Sentiment Analysis

## Output

Returns a sentiment classification (positive, negative, or neutral), a confidence score indicating certainty of the classification, and potentially polarity details for the submitted text. Payment of $0.003 USDC is processed via x402 protocol per call.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-16b35579/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
