# x402 AI Gateway – Sentiment Analysis

> x402 AI Gateway – Sentiment Analysis is a paid API for AI agents from x402-ai-gateway-rosy.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Analyzes the sentiment of a given text string using Gemini 2.0 Flash, returning a sentiment classification result, payable per-call via USDC on Base or Solana.

## Facts

- Endpoint: POST https://x402-ai-gateway-rosy.vercel.app/api/sentiment?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-sentiment-analysis-54424a2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SidJAUAjnPLtIJg4gZUzT

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 x402-ai-gateway-sentiment-analysis-54424a2c -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral: 'The product arrived quickly but the packaging was completely crushed and customer support never replied to my emails.'

## When to prefer this

Choose this endpoint when you need fast, per-call AI-powered sentiment classification without committing to a subscription, especially in crypto-native or agent workflows that support x402 micropayment flows using USDC on Base or Solana. It is ideal for one-off or low-volume sentiment checks powered by Gemini 2.0 Flash.

## Known failure modes

- Missing required 'text' field returns a 400 validation error
- Payment not completed or insufficient USDC balance causes a 402 Payment Required response
- Empty or extremely short text may yield low-confidence or ambiguous sentiment results
- Network or upstream Gemini API outage returns a 500 or 503 error
- Unsupported content type or malformed JSON body returns a 400 error

## How this service works

AI-powered API endpoints powered by Gemini 2.0 Flash. Pay with USDC on Base or Solana.

## Output

Returns a JSON object containing the sentiment classification (e.g. positive, negative, neutral) and likely a confidence score or supporting details for the analyzed text, produced by Gemini 2.0 Flash.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-gateway-sentiment-analysis-54424a2c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-gateway-rosy.vercel.app](https://www.zero.xyz/host/x402-ai-gateway-rosy.vercel.app/llms.txt)
