{"uid":"cap_x23vVkZcewIVqt5Q3NlXF","slug":"x-pay-sentiment-analysis-b6516fee","name":"X Pay Sentiment Analysis","description":"AI sentiment analysis of text","url":"https://www.api-xpay.com/x402/sentiment?utm_source=zero.xyz","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":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"asset":"USDC","label":"positive","score":0.8,"network":"base","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","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":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vIpCgcftbFaOkVrtuEPxF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text sentiment and returns a positive/negative/neutral label with a confidence score, paid per-request via USDC on Base using the x402 protocol.","exampleAgentPrompt":"Analyze the sentiment of this customer review for me: 'The product arrived quickly and works perfectly, but the packaging was a bit flimsy.' I need the label and confidence score.","exampleUseCases":[{"title":"Customer review sentiment triage","prompt":"Classify the sentiment of this review and tell me how confident you are: 'Great customer service but the delivery took forever and the item was damaged.' I need to know if it's positive, negative, or neutral."},{"title":"Social media comment moderation","prompt":"Run sentiment analysis on this tweet before I escalate it to our support team: 'Absolutely furious with this company — third time they've messed up my order!' Is it negative, and how strongly?"},{"title":"Product feedback scoring pipeline","prompt":"Score the sentiment of this NPS comment: 'I've been a loyal customer for years and the new app update is a massive improvement — super intuitive.' What label and score does it get?"}],"resultDescription":"Returns a JSON object with a sentiment label (e.g. 'positive', 'negative', 'neutral'), a numeric confidence score between 0 and 1, the payment asset used (USDC), the network (Base), and a success boolean confirming the request completed.","failureModes":["Missing or malformed 'input' body causes a validation error","Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response","Unsupported HTTP method (not POST/PUT/PATCH) returns an enum validation error","Empty or non-text body may produce low-confidence or erroneous sentiment scores","Network or facilitator downtime may return a 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need pay-per-request sentiment scoring without a subscription, particularly when operating in a crypto-native or x402-enabled agent workflow using USDC on Base. It is ideal for low-volume or on-demand classification tasks where you want to pay only for what you use, and when integration with Base blockchain payment rails is already in place.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:21:07.005Z","isFirstParty":false,"canonicalSlug":"x-pay-sentiment-analysis-b6516fee"}