# Sentiment Analysis

> Sentiment Analysis is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Classifies text as positive, negative, or neutral with a confidence score, powered by Jev with automatic Groq-hosted LLM fallback, guaranteed under 4.5 seconds.

## Facts

- Endpoint: GET https://x402.agentindex.world/sentiment?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sentiment-analysis-fdc42c48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tA6bQwePg4E_s9XMu9dJp

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 sentiment-analysis-fdc42c48
```

Example prompt: Classify this customer review as positive, negative, or neutral and tell me how confident you are: 'The onboarding was smooth but the pricing feels too steep for small teams.'

## When to prefer this

Choose this endpoint when you need fast, reliable sentiment classification with a confidence score and a guaranteed sub-4.5s response time. The automatic fallback to a Groq-hosted LLM makes it more resilient than single-provider alternatives. Ideal for real-time pipelines where uptime and speed matter more than fine-grained emotion categories.

## Known failure modes

- Text exceeds 4000 character limit — request rejected
- Both Jev and Groq fallback unavailable — timeout or error response
- Empty or missing text field — validation error
- Network issues causing latency to exceed the 4.5s SLA

## How this service works

Sentiment analysis: classify text as positive, negative, or neutral with a confidence score and an alternate label. Powered by Jev, with an automatic Groq-hosted LLM fallback if Jev is slow or unavailable ("engine":"jev"|"fallback" in the response) - under 4.5s guaranteed. Try GET /sentiment/sample.

## Output

Returns a sentiment label (positive, negative, or neutral), a confidence score, an alternate label, and an engine field indicating whether the classification was done by Jev or the Groq-hosted LLM fallback. Response is guaranteed within 4.5 seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to classify, up to 4000 characters."
  }
 }
}
```

## More

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