# GEDX402 Sentiment Analysis

> GEDX402 Sentiment Analysis is a paid API for AI agents from embed.gedx402.com, paid per call via x402, $0.0075/call, status unknown (last checked 2026-09-15).

Classifies a short text as POSITIVE or NEGATIVE with a confidence score, paid per-call via USDC on multiple blockchains

## Facts

- Endpoint: GET https://embed.gedx402.com/v1/sentiment
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-sentiment-analysis-877afbf5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cWU1ozf7CxxsyDPDouDUm

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 gedx402-sentiment-analysis-877afbf5
```

Example prompt: Classify this customer review as positive or negative and tell me how confident you are: "The delivery was fast but the product quality was disappointing."

## When to prefer this

Choose this endpoint when you need fast, no-API-key sentiment classification paid per-call via USDC on Base, Polygon, Arbitrum, World, or Solana, and want to avoid subscription or API key management overhead.

## Known failure modes

- Missing 'text' parameter returns error or undefined behavior
- Text too long may exceed model context
- Payment not completed (x402 402 response) blocks the request
- Unsupported blockchain/payment token results in payment failure

## How this service works

Classify sentiment (positive/negative) with DistilBERT on Workers AI. POST text; returns label and confidence score. Fixed low per-request price.

## Output

A JSON object with a 'label' field ('POSITIVE' or 'NEGATIVE') and a 'score' field (0.0–1.0 confidence), e.g. {"label":"POSITIVE","score":0.99}

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-sentiment-analysis-877afbf5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from embed.gedx402.com](https://www.zero.xyz/host/embed.gedx402.com/llms.txt)
