# PrimeAPI AI Sentiment Analysis

> PrimeAPI AI Sentiment Analysis is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.122078/call, status unknown (last checked 2026-09-13).

Analyzes the sentiment of a given text or search query, returning a sentiment classification and related data

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/sentiment
- Price: $0.122078/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-sentiment-analysis-8f4ab529
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HnyZr-ktzj9ohAI26jwPw

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 primeapi-ai-sentiment-analysis-8f4ab529 -d '<json body>'
```

Example prompt: Analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral: 'The product arrived quickly and works perfectly, but the packaging was damaged.'

## When to prefer this

Use this endpoint when you need a quick, pay-per-call sentiment classification without managing API keys. Suitable for ad-hoc sentiment analysis of social media posts, product reviews, news headlines, or any short text, especially within an x402 payment-enabled agent workflow on Base.

## Known failure modes

- Empty or missing query field returns a validation error
- Extremely long inputs may be truncated or rejected
- Ambiguous or very short text may yield low-confidence results
- Non-English text may produce inaccurate results if multilingual support is limited
- Service unavailability returns a 5xx error

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a sentiment classification (e.g. positive, negative, neutral) along with a confidence score or polarity value for the provided text query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-ai-sentiment-analysis-8f4ab529/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
