Analyze the sentiment of text as positive, negative, neutral, or mixed. Returns a confidence score and brief explanation. Powered by Llama 3.1.
Analyze sentiment. Body: {"text": "..."}
Request schema
Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call "https://proxy.apihub.io/sentiment-analyzer/ai/sentiment" \
-d '{"text":"I love this product, it works great."}'Or call the proxy directly (curl / any HTTP client):
curl -X POST https://proxy.apihub.io/sentiment-analyzer/ai/sentiment \
-H "Authorization: Bearer ahk_your_key" \
-H "Content-Type: application/json" \
-d '{"text":"I love this product, it works great."}'
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Sentiment Analyzer.