{"uid":"cap_F34YNlchnsXNlKmGQqdZP","slug":"asterpay-ai-sentiment-analysis-58aa8579","name":"AsterPay AI Sentiment Analysis","description":"AI-powered sentiment analysis. Send text, get sentiment score + emotions. Paid via x402.","url":"https://x402.asterpay.io/v2/x402/ai/sentiment","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","schema":{"type":"object","required":["sentiment","score"],"properties":{"score":{"type":"number","maximum":1,"minimum":-1},"sentiment":{"enum":["positive","negative","neutral"],"type":"string"},"confidence":{"type":"number","maximum":1,"minimum":0}}},"example":{"score":0.85,"emotions":{"joy":0.7,"trust":0.6,"surprise":0.2},"sentiment":"positive","confidence":0.92}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EWSu7tO3Vb7oDB--Sc51X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text to return a sentiment classification (positive/negative/neutral), a numeric sentiment score, and emotion breakdown","exampleAgentPrompt":"What's the sentiment of this customer review — is it positive, negative, or neutral, and how confident are you? The review says: 'The product exceeded my expectations but shipping took forever.'","exampleUseCases":[{"title":"Customer review sentiment scoring","prompt":"Analyze the sentiment of this product review and tell me the score and whether it's positive, negative, or neutral: 'Absolutely love the design, but the battery life is disappointing.'"},{"title":"Social media post mood detection","prompt":"What's the emotional tone of this tweet — positive, negative, or neutral — and what emotions does it carry? The tweet is: 'Just got promoted after years of hard work. Still can't believe it!'"},{"title":"Support ticket triage by sentiment","prompt":"Check whether this support message is negative, neutral, or positive and give me a confidence score so I can prioritize it: 'I've been waiting three weeks for a refund and nobody has responded to my emails.'"}],"resultDescription":"Returns a JSON object with a 'sentiment' enum (positive, negative, or neutral), a 'score' float between -1 and 1 indicating sentiment polarity and intensity, a 'confidence' float between 0 and 1, and an optional 'emotions' object with per-emotion scores such as joy, trust, and surprise.","failureModes":["Missing required 'text' query parameter returns a validation error","Empty or whitespace-only text may return low-confidence or neutral results","Very long text strings may be truncated or rejected","Payment failure (insufficient USDC balance or x402 auth error) blocks the call","Non-English text may return lower accuracy or unexpected results"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.01 USDC), pay-per-call sentiment score with emotion breakdown for arbitrary text, especially in agent workflows that require micropayment-native APIs via the x402 protocol. Prefer it over free-tier alternatives when you need reliable uptime, per-call billing without subscription overhead, and emotion-level granularity beyond simple positive/negative classification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:09.358Z","isFirstParty":false}