{"uid":"cap_-PL4UUn9HBXiRRL86NlW8","slug":"x402-deployer-x402-deployer-workers-dev-6faa6844","name":"Sentiment Analyzer & Emotion Classifier","description":"Sentiment analysis API / sentiment analyzer / text sentiment classifier / emotion classifier / aspect-based sentiment. Scores arbitrary text with overall sentiment, score (-1 to +1), per-emotion labels (joy/anger/sadness/fear/surprise/disgust), and optional aspect-based scoring. Pure text analysis endpoint for product reviews, tickets, comments, and support logs.","url":"https://x402-deployer.x402-deployer.workers.dev/sentiment-analysis","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text"],"properties":{"text":{"type":"string","description":"Text to analyze. Max 12,000 chars."},"aspects":{"type":"array","description":"Optional. Up to 15 aspect names (e.g. 'food', 'service') to score individually alongside overall sentiment."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"overall_score":{"type":"number"},"overall_sentiment":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"text":"I really enjoyed this movie. The plot was engaging and the acting was superb, though the ending felt a bit rushed."},"type":"http","method":"POST","bodyType":"json"}},"response":{"model":"hermes-3-llama-3.1-405b","source":"morpheus","summary":"The user enjoyed the movie overall, praising the plot and acting, but felt the ending was rushed.","emotions":{"joy":0.7,"fear":0.1,"anger":0.1,"disgust":0.1,"sadness":0.2,"surprise":0.3},"confidence":0.8,"input_chars":114,"overall_score":0.6,"overall_sentiment":"positive"}},"exampleRequest":{"text":"I really enjoyed this movie. The plot was engaging and the acting was superb, though the ending felt a bit rushed."},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_eBX0wQLbFkry5KkxpTE5U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text to return overall sentiment (positive/negative/neutral) with a score from -1 to +1, plus per-emotion scores (joy, anger, sadness, fear, surprise, disgust) and optional aspect-based sentiment.","exampleAgentPrompt":"Analyze the sentiment and emotions in this customer review — give me the overall score from -1 to +1 plus per-emotion breakdown: \"The product arrived on time but the packaging was disappointing and the instructions made me feel completely lost.\"","exampleUseCases":null,"resultDescription":"Returns an overall sentiment label (positive/negative/neutral), a float score from -1 to +1, and a per-emotion map with scores for joy, anger, sadness, fear, surprise, and disgust. Optionally includes aspect-level sentiment scores when aspects are specified.","failureModes":["Empty or missing text field returns 400 Bad Request","Text too long may be truncated or rejected","Payment not included or insufficient USDC returns 402 Payment Required","Non-English text may yield lower accuracy or unexpected emotion scores","Ambiguous or sarcastic text may produce misleading sentiment scores"],"whenToPreferThis":"Use this endpoint when you need both a coarse sentiment polarity score AND fine-grained per-emotion classification (joy, anger, sadness, fear, surprise, disgust) in a single call, especially when aspect-based scoring is also needed. Prefer over simpler positive/negative classifiers when multi-dimensional emotional insight is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:05.626Z","isFirstParty":false}