# ZeroReader DistilBERT Sentiment Analysis

> ZeroReader DistilBERT Sentiment Analysis is a paid API for AI agents from api.zeroreader.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Classifies input text as POSITIVE or NEGATIVE with a confidence score using a DistilBERT model.

## Facts

- Endpoint: POST https://api.zeroreader.com/v1/ai/sentiment?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zeroreader-distilbert-sentiment-analysis-a3148a1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uQG71Hb1R8mmk_7rMGwxK

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 zeroreader-distilbert-sentiment-analysis-a3148a1c -d '<json body>'
```

Example prompt: Classify this customer review as positive or negative and give me the confidence score: 'The delivery was fast but the product broke after one day.'

## When to prefer this

Choose this endpoint when you need fast, lightweight binary sentiment classification (positive/negative) on a single piece of text at low cost ($0.001/call). Ideal for high-throughput pipelines where nuanced multi-class emotion detection is not required and speed matters over deep analysis.

## Known failure modes

- Empty or missing 'text' field returns a 400 validation error
- Text that is too long may be truncated or rejected
- Payment not received or insufficient USDC balance results in 402 Payment Required
- Model inference timeout for very long inputs
- Non-string input type causes schema validation failure

## How this service works

DistilBERT Sentiment — Sentiment analysis (positive/negative).

## Output

Returns a JSON object with a sentiment label (POSITIVE or NEGATIVE) and a confidence score between 0 and 1, e.g. {"label":"POSITIVE","score":0.98}.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "label": "POSITIVE",
 "score": 0.98
}
```

## More

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