{"uid":"cap_NDl8mBsJMZtpdEhF-6FEV","slug":"agishub-text-classifier-e7705ad4","name":"AGISHub Text Classifier","description":"Classify a text into exactly one of the candidate labels you provide (e.g. sentiment, topic, intent).","url":"https://api.agishub.com/v1/classify","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"enum":["http"],"type":"string"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text","labels"],"properties":{"text":{"type":"string","minLength":1,"description":"The text to classify."},"labels":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"minItems":2,"description":"Candidate labels to choose from, e.g. ['positive','negative','neutral']."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"result":"Classify a text into exactly one of the candidate labels you provide (e.g. sentiment, topic, intent)."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v4El6zXeL-yqPsa-8w4AO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 exactly one of a set of caller-supplied candidate labels (e.g. sentiment, topic, intent).","exampleAgentPrompt":"Classify this customer message — 'Your app keeps crashing every time I try to upload a photo, this is so frustrating!' — into exactly one of these labels: complaint, question, praise, feature-request.","exampleUseCases":[{"title":"Sentiment tagging for product reviews","prompt":"Take this product review and classify it as positive, negative, or neutral: 'The battery life is amazing but the screen scratches way too easily.'"},{"title":"Support ticket routing by topic","prompt":"Classify this support message into one of these departments — billing, technical, shipping, returns — so I know where to send it: 'I was charged twice for my last order.'"},{"title":"Intent detection for chatbot","prompt":"I need to know whether this user message is a greeting, a question, a complaint, or a farewell so my chatbot can respond correctly: 'Hey, can you help me figure out why my account is locked?'"}],"resultDescription":"A JSON object containing a 'result' field with the single label from the provided candidates that best fits the input text. No confidence scores are returned — just the winning label string.","failureModes":["Fewer than 2 labels provided — returns validation error","Text is empty or missing — returns 400 bad request","More than 20 candidate labels supplied — exceeds maxItems limit","Payment not provided or insufficient — returns 402 Payment Required","Ambiguous text with equally matching labels may return an arbitrary winner with no confidence signal"],"whenToPreferThis":"Choose this endpoint when you need zero-shot text classification against a custom set of labels you define at call time, without training a model. Ideal for routing, sentiment tagging, intent detection, or any scenario where you can enumerate 2–20 meaningful categories. Prefer this over general LLM prompting when you want a deterministic single-label output enforced by the API schema rather than free-form text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:34:21.266Z","isFirstParty":false}