{"uid":"cap__ZjP5C4MfYSM8WAFdaImr","slug":"tanship-payai-emotion-detection-api-3e7652d9","name":"Tanship PayAI — Emotion Detection API","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/emotion","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.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_2EzXVoMjgy5AZeFz_OGtr","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":"Detects and classifies emotions from text or other input via a payment-gated AI endpoint using the x402 micropayment protocol on Base.","exampleAgentPrompt":"Can you analyze the emotion in this message: 'I waited 45 minutes and no one helped me — totally unacceptable'? I need to know what emotion it's expressing.","exampleUseCases":[{"title":"Customer feedback emotion triage","prompt":"Run emotion detection on this customer support ticket: 'I love the new update, it made everything so much easier!' — tell me what emotion it expresses so I can route it appropriately."},{"title":"Social media sentiment monitoring","prompt":"Analyze the emotion in this tweet: 'Can't believe they cancelled the event again, I'm so disappointed' — what is the dominant emotion?"},{"title":"Mental health chatbot tone detection","prompt":"Detect the emotional state expressed in this user message: 'I've been feeling really overwhelmed lately and don't know where to start' — I need to know if this signals distress."}],"resultDescription":"Returns an emotion classification or set of emotion labels (e.g. joy, anger, sadness, fear, surprise, disgust) along with confidence scores, describing the emotional content of the provided input text.","failureModes":["Missing or malformed 'input' object returns a 400/422 validation error","Insufficient USDC payment or missing x402 payment header returns HTTP 402 Payment Required","Empty or unsupported body content may yield low-confidence or null emotion results","Network or edge inference latency may cause occasional timeouts","Unsupported bodyType values other than json/form-data/text will be rejected"],"whenToPreferThis":"Choose this endpoint when you need lightweight, per-call micropayment-gated emotion detection without a subscription, especially in agentic pipelines that already use x402/USDC payments on Base. Ideal for low-volume or pay-as-you-go use cases where spinning up a dedicated NLP service is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:40:39.446Z","isFirstParty":false}