{"uid":"cap_DeUFN98Oa_RG4fUKFQK4b","slug":"24klabs-text-classifier-264cd452","name":"24KLabs Text Classifier","description":"Classify text into one of your provided labels, with confidence.","url":"https://api.24klabs.ai/api/v1/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_gzJvcCT0uK0mNX4TuWN2v","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 a given text into one of the caller-supplied labels, returning the predicted label and confidence score.","exampleAgentPrompt":"Classify this customer message — 'Your delivery was late and the package was damaged' — into one of these labels: complaint, compliment, question, or refund-request, and tell me your confidence.","exampleUseCases":[{"title":"Support ticket routing by category","prompt":"I have a new support message: 'I can't log in to my account after resetting my password.' Classify it into one of these categories — billing, account-access, technical-bug, or general-inquiry — and give me the confidence score so I know how sure you are."},{"title":"Content moderation intent detection","prompt":"Classify this user comment as either safe, hate-speech, spam, or misinformation and tell me the confidence: 'Buy cheap followers now — 10k for just $5, guaranteed!'"},{"title":"Product review sentiment labeling","prompt":"Label this product review as positive, negative, or mixed and show me the confidence score: 'The battery life is amazing but the screen cracked after two weeks.'"}],"resultDescription":"Returns the winning label from the caller-supplied list and a numeric confidence score (0–1) indicating how certain the model is about that classification.","failureModes":["No labels provided — endpoint requires at least two candidate labels to choose from","Empty or too-short text input returns a low-confidence or error response","Ambiguous text where all labels score similarly yields a low confidence score","Unsupported language text may produce unreliable results","Rate limits or payment failures (x402) will return 402 or 429 status codes"],"whenToPreferThis":"Choose this endpoint when you need fast, zero-shot text classification against a custom set of labels you define at call time — especially useful when categories change per use-case and you don't want to train a model. Prefer it over general-purpose LLM prompting when you need a structured label + confidence score returned in a consistent, machine-readable format at a fixed per-call price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:05.959Z","isFirstParty":false}