{"uid":"cap_W1F4OUnW7lC5WcKViV-wa","slug":"x402-farm-text-classifier-320f67b7","name":"x402-farm Text Classifier","description":"Assign one of 2 to 12 supplied labels to each of up to 20 short messages, with a confidence; labels outside the supplied list are never returned Route short messages to labels you supply: up to 20 messages and 2 to 12 labels per call, one label pe…","url":"https://api.x-402.online/v1/classify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zrrbcmfXZiJPG9Hhe6mCw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Assigns one label (with confidence score) from a user-supplied list to each of up to 20 short messages in a single call","exampleAgentPrompt":"Classify these 5 support messages into one of these labels — billing, technical, account, or general — and give me a confidence score for each: 'I can't log in', 'My invoice is wrong', 'How do I reset my password?', 'The app keeps crashing', 'I want to cancel my subscription'.","exampleUseCases":[{"title":"Support ticket routing for helpdesk","prompt":"I have 15 incoming support tickets. Can you classify each one into exactly one of these categories — billing, technical, shipping, or returns — and tell me how confident you are? Here are the messages: [list of tickets]."},{"title":"Intent detection for a customer chatbot","prompt":"Classify these 10 customer chat messages into one of these intents: purchase, refund, complaint, or general_inquiry. Give me the label and confidence for each message so I can route them automatically."},{"title":"Feedback triage for product team","prompt":"I've got 20 short pieces of user feedback. Label each one as bug_report, feature_request, praise, or unclear, and include a confidence score — I want to sort the high-confidence ones first."}],"resultDescription":"For each input message, the endpoint returns the single best-matching label from the supplied list and a numeric confidence score. Labels outside the provided list are never returned, ensuring clean, bounded classification output.","failureModes":["Fewer than 2 or more than 12 labels supplied — likely returns an error or ignores excess labels","More than 20 messages submitted in one call — may reject or truncate input","Messages too long for 'short message' constraint — reduced accuracy or rejection","Ambiguous messages where confidence is low — still returns a label but with low confidence score","Network or payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, bounded classification of short texts against a fixed, user-defined label set — especially in agentic pipelines where you want guaranteed label fidelity (no hallucinated categories) and a confidence score for downstream routing logic. It is ideal for support ticket routing, chatbot intent detection, and feedback triage where the label vocabulary is known in advance. Prefer alternatives if you need open-ended classification, long-document analysis, or entity extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:41:04.610Z","isFirstParty":false,"canonicalSlug":"x402-farm-text-classifier-320f67b7"}