{"uid":"cap_hBSbaTfnFzfjijuXkcZhZ","slug":"fastapi-online-emotion-detection-268d95ac","name":"fastapi.online Emotion Detection","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/emotion-detect","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8000,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MFieXgVAnU3shXu9aPQX4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects emotions expressed in a given text string using a self-hosted AI model","exampleAgentPrompt":"Detect the emotion in this text: 'I can't believe they cancelled my order again — I'm absolutely furious and I want a refund immediately!'","exampleUseCases":[{"title":"Customer support ticket triage","prompt":"Analyze this support message and tell me what emotion the customer is expressing: 'I've been waiting three weeks for my package and nobody is answering my calls. I'm so frustrated I could scream.'"},{"title":"Social media post emotion tagging","prompt":"What emotion does this tweet convey? 'Just got the promotion I've been working toward for two years — I'm on top of the world right now!'"},{"title":"Mental health app mood check-in","prompt":"Detect the emotion in this journal entry: 'I don't really feel like doing anything today. Everything just feels heavy and pointless.'"}],"resultDescription":"Returns the dominant emotion detected in the input text, likely including an emotion label (e.g. anger, joy, sadness, fear, surprise, disgust) and potentially a confidence score. The response is structured JSON from the self-hosted inference model.","failureModes":["Empty or missing text field returns a 422 validation error","Text exceeding 8000 characters is rejected","Model inference timeout for unusually complex or long inputs","Payment not included or insufficient results in a 402 Payment Required response","Ambiguous or emotionless text may return low-confidence or neutral output"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call emotion detection without a subscription or signup, especially in crypto-native or agent-driven pipelines using x402 payment protocol. Ideal for low-volume or bursty workloads where you pay $0.001 USDC per call rather than maintaining an API key subscription. Prefer over large LLM-based sentiment analysis when cost efficiency and speed matter more than nuanced reasoning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:00.219Z","isFirstParty":false}