{"uid":"cap_vFuoFaijwyvkvcwZCn5oq","slug":"x402-ai-tools-sentiment-analysis-70e70b01","name":"x402 AI Tools – Sentiment Analysis","description":"Classifies the sentiment of a text with Amazon Comprehend and returns the score of each class. Supports en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW; the language is detected when not given.","url":"https://ai.kagurazaka.dev/v1/sentiment?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"the text, up to 5000 bytes of UTF-8"},"language":{"type":"string","description":"language code (en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW); detected when omitted"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lXFnAeHyfmfgwsA0k8jgw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies the sentiment of a text (positive, negative, neutral, mixed) using Amazon Comprehend and returns a confidence score for each class, with automatic language detection.","exampleAgentPrompt":"Analyze the sentiment of this customer review and give me the confidence scores for each class: 'The product arrived quickly but the packaging was damaged and customer support was unhelpful.'","exampleUseCases":[{"title":"Customer review sentiment scoring","prompt":"Score the sentiment of this product review and tell me how positive, negative, neutral, and mixed it is: 'Battery life is amazing but the screen is way too dim for outdoor use.'"},{"title":"Multilingual support ticket triage","prompt":"Analyze the sentiment of this French support message and give me the confidence scores for each sentiment class: 'Je suis très déçu par le service client, personne ne répond à mes emails.'"},{"title":"Social media brand monitoring","prompt":"Classify the sentiment of this tweet about our brand and return the scores for positive, negative, neutral, and mixed: 'Honestly shocked at how fast the refund came through — wasn't expecting that at all.'"}],"resultDescription":"Returns a sentiment classification (POSITIVE, NEGATIVE, NEUTRAL, or MIXED) along with a confidence score (0.0–1.0) for each class, and the detected or provided language code.","failureModes":["Text exceeds 5000 bytes — endpoint rejects oversized input","Unsupported language code provided — returns an error","Empty or blank text — may return low-confidence or error response","Payment failure — x402 payment of $0.008 USDC not processed correctly","Network timeout — upstream Amazon Comprehend latency"],"whenToPreferThis":"Choose this endpoint when you need per-class sentiment confidence scores (positive, negative, neutral, mixed) rather than a single label, especially for multilingual text across the 12 supported languages. It is particularly useful when downstream logic needs to distinguish mixed sentiment from purely positive or negative. Prefer it over generic LLM-based sentiment when you need consistent, cost-predictable, AWS-backed scoring at $0.008 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:33:00.574Z","isFirstParty":false,"canonicalSlug":"x402-ai-tools-sentiment-analysis-70e70b01"}