{"uid":"cap_-PMCVWa1Z63dYji1hwqcI","slug":"nojunk-ai-text-classify-e927e09f","name":"NoJunk AI Text – Classify","description":"NoJunk AI Text classify: Classify text into one (or several) of your own labels; the answer is always one of the labels you gave.","url":"https://nojunk-ai-text.mick8511.workers.dev/classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to classify (1 to 24000 characters)"},"multi":{"type":"boolean","description":"Optional: true to allow several labels (returns labels[]), default false"},"labels":{"type":"array","items":{"type":"string"},"description":"Allowed labels, 2-20 strings; the result is always one of them"}}},"responseSchema":{"type":"json","example":{"label":"earnings","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","usage":{"prompt_tokens":170,"completion_tokens":12},"confidence":"high","generated_at":"2026-10-15T12:00: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_UHA6Dc4Ibzaw62iFsWScm","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 text into one of your provided labels using LLM inference, with optional multi-label output and confidence scoring.","exampleAgentPrompt":"Classify this customer support message as one of these labels — 'billing', 'technical', 'shipping', or 'general' — and tell me whether multiple labels apply: 'My order arrived damaged and I was charged twice for it.'","exampleUseCases":[{"title":"Support ticket routing by department","prompt":"Classify this incoming support ticket as exactly one of 'billing', 'returns', 'technical', or 'account' so I can route it automatically: 'I can't log into my account and I think I was charged for a subscription I didn't want.'"},{"title":"News article topic tagging","prompt":"Tag this news snippet into one of these topics — 'politics', 'sports', 'technology', 'health', 'entertainment' — allow multiple labels if it fits more than one: 'The Senate passed a sweeping AI regulation bill as tech stocks fell sharply on the news.'"},{"title":"Spam or ham email detection","prompt":"Tell me whether this email is 'spam' or 'ham': 'Congratulations! You've been selected for a $1,000 gift card. Click here to claim your prize before it expires.'"}],"resultDescription":"Returns a JSON object with a 'label' field (or 'labels' array in multi mode) matching one of your provided labels, a 'confidence' string ('high', 'medium', or 'low'), the model name used, prompt and completion token counts, and an ISO 8601 timestamp. Nothing is invented — if the text doesn't fit any label, the model still picks the closest provided option.","failureModes":["Payment not received or insufficient USDC — returns 402 Payment Required with no charge","Text exceeds 24,000 characters — request rejected","Labels array has fewer than 2 or more than 20 items — validation error","Empty or missing text field — returns an error with no charge","Model inference timeout — transient 5xx error, safe to retry","Label not in provided list — impossible by design; model is constrained to provided labels"],"whenToPreferThis":"Choose this endpoint when you need cheap, reliable, pay-per-result text classification into your own custom label set without any subscription or setup. Ideal for agents that need to route, tag, or categorize arbitrary text on-demand at $0.002/call. Prefer it over general-purpose LLM APIs when you want strict label adherence (the model will always return one of your labels), built-in confidence scoring, and zero charge on failed calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:35:03.638Z","isFirstParty":false,"canonicalSlug":"nojunk-ai-text-classify-e927e09f"}