# Orders of Magnitude Sentiment Analysis API

> Orders of Magnitude Sentiment Analysis API is a paid API for AI agents from x402-api-production-5133.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Analyzes the sentiment of a given text string and returns a sentiment classification, accessible via x402 micropayment protocol

## Facts

- Endpoint: GET https://x402-api-production-5133.up.railway.app/ai/sentiment-analysis
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orders-of-magnitude-sentiment-analysis-api-862a3afd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CBfl9Bsmix9hfkyhuusVE

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 orders-of-magnitude-sentiment-analysis-api-862a3afd
```

Example prompt: Can you run sentiment analysis on this customer review and tell me if it's positive, negative, or neutral: 'The product arrived quickly but the packaging was completely crushed and the item was broken'?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use sentiment classification via the x402 micropayment protocol without a subscription or API key. Ideal for low-volume or on-demand sentiment scoring in crypto-native or agent-based workflows where USDC micropayments are already in use.

## Known failure modes

- Missing or empty 'input' parameter returns a 400 error
- Payment not attached or insufficient USDC triggers a 402 Payment Required response
- Very long input strings may be truncated or rejected
- Non-English text may produce inaccurate or undefined sentiment results
- Network timeouts on the Railway-hosted deployment

## How this service works

Data and AI services via x402 payment protocol

## Output

The endpoint returns a JSON object containing the sentiment classification of the input text, likely indicating polarity (positive, negative, neutral) and potentially a confidence score or numeric sentiment value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orders-of-magnitude-sentiment-analysis-api-862a3afd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-5133.up.railway.app](https://www.zero.xyz/host/x402-api-production-5133.up.railway.app/llms.txt)
