{"uid":"cap_zez2sk7mLcPXGMFTe1D1s","slug":"sitecheck-text-classifier-ca919dab","name":"SiteCheck Text Classifier","description":"Labels up to 20 texts with 2 to 20 labels you choose, with a confidence from 0 to 1 and a one-line reason per text. One label per text, or several with multi true. Uses the chat model with JSON output; labels are as good as the model's reading of them.","url":"https://api.sitecheck-api.workers.dev/api/classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"One text (or texts)"},"multi":{"type":"boolean","description":"true when a text may take several labels"},"texts":{"type":"array","items":{"type":"string"},"description":"Up to 20 texts"},"labels":{"type":"array","items":{"type":"string"},"description":"2 to 20 different labels"}}},"responseSchema":{"type":"json","example":{"model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","source":"chat model (Workers AI, Groq fallback), JSON output","results":[{"index":0,"labels":[{"label":"complaint","confidence":0.95}],"reason":"Reports damage and no support reply.","excerpt":"The package arrived broken and support never answered."},{"index":1,"labels":[{"label":"praise","confidence":0.93}],"reason":"Thanks the team for a fast fix.","excerpt":"Great service, the team fixed it in an hour."}],"checkedAt":"2026-10-14T07:05:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kzu5OoEs3fiHpRjesIOlZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies one or more text strings against a user-supplied set of labels, returning a confidence score, reason, and excerpt for each result","exampleAgentPrompt":"Classify this customer review as either 'complaint', 'praise', or 'neutral' and tell me how confident you are: 'The package arrived three days late and nobody from support responded to my emails.'","exampleUseCases":[{"title":"Support ticket triage by intent","prompt":"I have these five support messages — classify each one as 'billing issue', 'technical problem', 'feature request', or 'general inquiry' so I can route them to the right team: [list of messages]"},{"title":"Product review sentiment labeling","prompt":"Classify each of these 10 product reviews as 'positive', 'negative', or 'mixed', and for each one give me the confidence score and a short excerpt that explains why: [list of reviews]"},{"title":"Multi-label content moderation","prompt":"Check whether this user post contains any of the following: 'spam', 'hate speech', 'misinformation', or 'safe content' — it might match more than one label, so enable multi-label mode: 'Buy cheap followers now! Also, vaccines cause autism.'"}],"resultDescription":"A JSON object containing the model name used, the data source, and a results array where each item includes the text index, an array of matched labels with confidence scores, a natural-language reason for the classification, and an excerpt from the original text. Also includes a checkedAt ISO timestamp.","failureModes":["Fewer than 2 or more than 20 labels provided — validation error","More than 20 texts submitted at once — exceeds batch limit","Empty or missing text/texts fields — returns error or empty results","Ambiguous or overlapping labels may produce lower confidence scores","Model unavailability on Workers AI falls back to Groq; if both fail, returns 5xx","Payment not included or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need zero-shot text classification with confidence scores and reasoning against a custom label set you define at call time, without training a model. Ideal for dynamic label sets that change per request, or when you want explainability (reason + excerpt) alongside the label. Prefer over embedding-based classifiers when you want human-readable rationale, and over fine-tuned models when labels are ad hoc or low-volume.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:44:40.548Z","isFirstParty":false,"canonicalSlug":"sitecheck-text-classifier-ca919dab"}