{"uid":"cap_GjLDpwNj7MML_9wQYsHCV","slug":"dexl-agents-text-classifier-142f7c5c","name":"DexL Agents Text Classifier","description":"Assign text to one of the labels you supply - support tickets, intents, topics, spam or not, anything. The returned label is checked against your list, so the model cannot invent a category: an answer outside your labels is rejected rather than passed through. Comes back with a confidence and a one-line reason. Fixed price per call.","url":"https://agents.dexl.io/v1/tools/classify-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8000},"labels":{"type":"array","items":{"type":"string"},"maxItems":30,"minItems":2,"description":"The only categories allowed in the answer."}}},"responseSchema":{"type":"json","example":{"units":1,"cached":false,"output":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PNgUoYpE6ykV5SEvK4S6k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a piece of text into one of a set of caller-defined labels using zero-shot or few-shot AI classification","exampleAgentPrompt":"Classify this support message — 'My order never arrived and no one is responding to me' — into one of these categories: billing, shipping, refund, technical-issue, or general-inquiry.","exampleUseCases":[{"title":"Support ticket routing by topic","prompt":"Classify this incoming support ticket as one of: billing, account-access, shipping, returns, or technical-issue — here's the message: 'I was charged twice for the same order and I can't log in to check my account.'"},{"title":"Content moderation label assignment","prompt":"I need you to classify this user-submitted post as either safe, hate-speech, spam, or adult-content: 'Click here to win a free iPhone, limited time offer!!!'"},{"title":"Sentiment analysis on product reviews","prompt":"Classify this product review as positive, neutral, or negative: 'The build quality feels cheap and the battery died after two days, but the screen is beautiful.'"}],"resultDescription":"Returns a JSON object with the chosen label from the provided list, plus metadata including the number of units consumed and whether the result was cached. The output object contains the classification decision keyed to the input text.","failureModes":["Fewer than 2 labels provided — returns validation error","More than 30 labels provided — exceeds schema limit","Text exceeds 8000 character limit — request rejected","Ambiguous text that fits multiple labels equally well — model picks one but may be unreliable","Payment not included or insufficient — x402 payment required error","Network timeout if underlying model is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need zero-shot text classification into caller-defined categories without setting up your own model or API keys — ideal for routing, tagging, or labeling tasks where the label set is known at call time. It is pay-per-call with no account required, making it suitable for agents that classify infrequently or need to vary the label set per request. Prefer it over general chat completions when you want a structured single-label output rather than a free-form answer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:45:04.855Z","isFirstParty":false}