{"uid":"cap_cVx-GlI_rqqrLuIZrGjVm","slug":"asterpay-sentiment-analysis-df490f6d","name":"AsterPay Sentiment Analysis","description":"Analyze sentiment of text. Returns positive/negative/neutral score.","url":"https://x402.asterpay.io/v1/ai/sentiment","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gp6Eh8MLh_KYWriBKolrZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes the sentiment of a text input and returns a positive/negative/neutral classification with a numeric score and optional emotion breakdown.","exampleAgentPrompt":"Can you analyze the sentiment of this customer review and tell me whether it's positive, negative, or neutral along with a confidence score: 'The onboarding process was smooth but the support response times were frustratingly slow.'","exampleUseCases":[{"title":"Customer review sentiment triage","prompt":"Classify this customer review as positive, negative, or neutral and tell me how confident you are: 'The product looks great but it broke after two days and support never got back to me.'"},{"title":"Social media brand monitoring","prompt":"Analyze the sentiment of this tweet about our product launch: 'Just tried the new update — honestly blown away, this is exactly what I needed!' Is it positive, negative, or neutral?"},{"title":"Support ticket prioritization","prompt":"Check the sentiment of this incoming support message so I know how urgently to escalate it: 'I've been waiting three weeks for a refund and nobody is responding to my emails. This is completely unacceptable.'"}],"resultDescription":"Returns a JSON object with a `sentiment` field (enum: positive, negative, neutral), a `score` number between -1 and 1 indicating sentiment polarity, a `confidence` number between 0 and 1, and optionally an `emotions` object with fine-grained emotion scores (e.g. joy, trust, surprise).","failureModes":["Empty or missing `text` field returns a validation error","Extremely long text inputs may be truncated or rejected","Non-English text may reduce confidence scores significantly","Payment failure via x402 (insufficient USDC balance) blocks the request","Ambiguous or sarcastic text may produce low confidence scores with uncertain sentiment labels"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call sentiment classification with a numeric polarity score and optional emotion breakdown, especially in agentic workflows where you want micropayment-native (x402/USDC) billing without managing API keys or subscriptions. Prefer it over free-tier alternatives when running in automated pipelines that benefit from per-call pricing and on-chain payment auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:05.715Z","isFirstParty":false}