{"uid":"cap_HUOXwLCPdSWgFiBUkhrxm","slug":"x402-tanship-dev-sentiment-analysis-cfc919c1","name":"x402.tanship.dev Sentiment Analysis","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/sentiment","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":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SbaqMILlGBT-3bNDnRL40","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text sentiment using Cloudflare Workers AI, returning a positive/negative label with a confidence score","exampleAgentPrompt":"Classify this customer review as positive or negative and tell me the confidence score: 'The delivery was shockingly fast but the packaging was completely crushed when it arrived.'","exampleUseCases":null,"resultDescription":"Returns a sentiment label (positive or negative) along with a numerical confidence score indicating how strongly the model classifies the text in that direction.","failureModes":["Missing or empty input text returns a validation error","Malformed JSON body causes a 400 Bad Request","Payment not included or insufficient USDC triggers a 402 Payment Required","Very short or ambiguous text may produce low-confidence scores","Non-English text may produce unreliable results depending on model support"],"whenToPreferThis":"Use this endpoint when you need fast, low-cost sentiment classification ($0.002 USDC per call) on individual text inputs without setting up your own NLP infrastructure. Ideal for agents processing customer feedback, social media posts, or review data on a per-item basis via the x402 micropayment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:37.337Z","isFirstParty":false}