{"uid":"cap_LAtiaqDxx8GPQyEuvy_zD","slug":"24k-labs-text-classifier-33a5d6db","name":"24K Labs Text Classifier","description":"Classify text into one of your provided labels, with confidence.","url":"https://api.24klabs.ai/api/classify-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"labels":{"type":"string"}}},"responseSchema":{"type":"json","example":{"label":"shipping"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XdM-nolFefvJIgu4Q9Qa0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies arbitrary text into one of caller-supplied labels and returns a confidence score for the assigned category.","exampleAgentPrompt":"Classify this customer message as 'billing', 'technical support', or 'general inquiry' and tell me how confident you are: \"I was charged twice for my subscription last month.\"","exampleUseCases":[{"title":"Customer support ticket routing","prompt":"Classify this support ticket as 'billing', 'technical issue', 'account access', or 'general question' and give me a confidence score so I know when to escalate: \"I can't log in and my password reset email never arrived.\""},{"title":"Product review sentiment tagging","prompt":"I need you to label this product review as 'positive', 'negative', or 'mixed', with a confidence score: \"The battery life is fantastic but the screen cracked after two weeks.\""},{"title":"Content moderation intent detection","prompt":"Classify this user-submitted comment as 'safe', 'potentially harmful', or 'violates policy' with a confidence score: \"You should just disappear, nobody wants you here.\""}],"resultDescription":"Returns the predicted label chosen from the caller-provided list and a confidence score (0–1) indicating how certain the model is about the classification.","failureModes":["No labels provided — returns error indicating labels are required","Text is empty or too short — may return low confidence or error","Label list is ambiguous or overlapping — may produce low confidence scores","Text is in an unsupported or unexpected language — classification may be unreliable","Network timeout or service unavailability — returns HTTP error","Insufficient payment or payment verification failure (x402) — request rejected"],"whenToPreferThis":"Choose this endpoint when you need zero-shot or label-guided text classification with an explicit confidence score, especially inside an automated agent workflow where you supply your own category taxonomy. It is well-suited for routing, tagging, moderation, and intent detection tasks where labels change per use case. Prefer it over sentiment-only APIs when you need custom label sets, and over embedding/similarity approaches when you want a direct label+confidence output without extra infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:49.164Z","isFirstParty":false}