{"uid":"cap_iVPLJfG3u0YfFxfGKuw7A","slug":"whatchuneed-llm-text-classifier-9a24dff1","name":"whatchuneed LLM Text Classifier","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/llm/classify","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text","categories"],"properties":{"text":{"type":"string"},"categories":{"type":"array"}}},"responseSchema":{"type":"object","properties":{"all_scores":{"type":"object"},"confidence":{"type":"number"},"classification":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_guigtWkha5yc1YMUtmNPR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a given text into one of several user-defined categories and returns a confidence score with per-category scores","exampleAgentPrompt":"Classify this customer message — 'My order arrived damaged and I want a refund' — into one of these categories: billing, shipping, returns, general_inquiry, and tell me which one it is and how confident you are.","exampleUseCases":[{"title":"Support ticket routing by topic","prompt":"I need to route this support message to the right team — 'The app crashes every time I try to log in on iOS 17' — classify it as one of: bug_report, feature_request, billing, account_access, or other, and tell me how confident you are."},{"title":"Content moderation label detection","prompt":"Classify this user-submitted post as either safe, hate_speech, spam, or adult_content: 'Click here to win a free iPhone, limited time offer!' — give me the label and your confidence score."},{"title":"News article topic tagging","prompt":"What category does this headline fall into — politics, sports, technology, entertainment, or health? The text is: 'Scientists announce breakthrough in mRNA cancer vaccine trials.' Give me the best match and all the category scores."}],"resultDescription":"Returns a JSON object with 'classification' (the winning category label), 'confidence' (a 0–1 float indicating certainty), and 'all_scores' (an object mapping every input category to its individual score), allowing the agent to act on the top label or inspect borderline cases.","failureModes":["Empty or missing 'text' field returns a validation error","Empty or missing 'categories' array causes request failure","Categories array with only one item makes classification trivial and may produce low-confidence results","Very short or ambiguous text may yield low confidence with near-equal scores across categories","Network or payment (x402) failures may result in 402 or 5xx HTTP errors","Categories with overlapping semantics may produce unreliable rankings"],"whenToPreferThis":"Use this endpoint when you need zero-shot or few-shot text classification with user-defined label sets and a confidence signal — especially useful for routing, tagging, moderation, or intent detection without needing to train a custom model. Prefer this over embedding-based similarity when you want a single authoritative label plus per-class scores in one pay-per-call API call with no model hosting overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:10:26.396Z","isFirstParty":false}