---
title: "Sentiment Analysis — $0.006"
method: POST
path: "/v1/ai/sentiment"
tags: ["ai"]
---

# Sentiment Analysis — $0.006

`POST /v1/ai/sentiment`

## Request

- Base URL: `https://x402.asterpay.io`
- URL: `https://x402.asterpay.io/v1/ai/sentiment`
- Auth: one of:
  - API key in header `PAYMENT-SIGNATURE`
  - HTTP payment

AI sentiment analysis on text. Returns sentiment score and label.

## Request body

- object
  - `text` string, required: Text to analyze

## Response `200`

Sentiment result

- object
  - `sentiment` 'positive' | 'negative' | 'neutral', required
  - `score` number, required

## Other responses

- `402`: Payment Required — pay via x402 or MPP (USDC on Base, Ethereum, Polygon, Arbitrum, Optimism or SKALE), then retry. See the WWW-Authenticate and Payment-Required response headers, or the `accepts` array below. The example is the exact body the runtime returns (minus per-request extras such as example_response and extensions.bazaar).

---

[API](https://skmtc.dev/asterpay/apis/asterpay-data-api.md) · [All operations](https://skmtc.dev/asterpay/apis/asterpay-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/asterpay/apis/asterpay-data-api/revisions/97b4ab464b3b?raw)
