{"uid":"cap_fsSE7UDC2u_isEutscdw2","slug":"agentfeed-text-classifier-932c2142","name":"AgentFeed Text Classifier","description":"Text classification: a score per label that sums to 1 and the best label, for up to 4,000 characters and 2 to 20 labels. Use when you need to answer: Which of my labels fits this text best? Labels are names, never instructions. Cached 24 hours.","url":"https://x402.ochinimus.app/api/classify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text","labels"],"properties":{"text":{"type":"string","description":"the text to classify, up to 4,000 characters"},"labels":{"type":"string","description":"2 to 20 labels, comma separated, e.g. billing,bug,feature"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"model":{"type":"string"},"cached":{"type":"boolean"},"labels":{"type":"array"},"scores":{"type":"object"},"top_label":{"type":"string"},"top_score":{"type":"number"},"input_characters":{"type":"number"}}},"paid":{"type":"boolean"},"tool":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"model":"gemini-3.1-flash-lite","cached":false,"labels":["billing","bug","feature"],"scores":{"bug":0.9,"billing":0.05,"feature":0.05},"top_label":"bug","top_score":0.9,"input_characters":36},"paid":true,"tool":"get_classify"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IKukDDHfVWjl4mQ-n66U8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a given text into one of 2–20 user-defined labels with confidence scores, returning the top label and per-label probabilities","exampleAgentPrompt":"Classify this support ticket as billing, bug, or feature request and tell me the confidence scores: 'My payment failed but the app still charged me twice.'","exampleUseCases":[{"title":"Support ticket routing by type","prompt":"Classify this incoming support message as billing, bug, or feature request so I can route it to the right team: 'I was charged twice for my subscription this month but only signed up once.'"},{"title":"Product review sentiment tagging","prompt":"Categorize this product review as positive, negative, or neutral and tell me how confident you are: 'The build quality feels cheap and the battery died after two hours.'"},{"title":"News article topic labeling","prompt":"Label this article excerpt as politics, sports, technology, or entertainment: 'The startup unveiled its new AI chip today, claiming it outperforms existing GPUs by 40%.'"}],"resultDescription":"Returns a JSON object with the top predicted label, its confidence score (0–1), scores for every input label, the model used (e.g. gemini-3.1-flash-lite), whether the result was cached, and the number of input characters processed.","failureModes":["Fewer than 2 or more than 20 labels provided — request rejected","Text exceeds 4,000 characters — truncation or rejection","Payment not included or insufficient USDC — 402 Payment Required response","Ambiguous text where model confidence is low across all labels — low top_score returned","Network or model timeout — upstream error response"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call zero-account text classification with user-defined label sets and per-label confidence scores, especially in autonomous agent pipelines that cannot maintain API keys or subscriptions. Particularly well-suited for support ticket triage, content moderation routing, and multi-label classification tasks where categories vary per deployment. Prefer over general LLM calls when you want a structured JSON classification response with explicit scores rather than free-form text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:42.703Z","isFirstParty":false,"canonicalSlug":"agentfeed-text-classifier-932c2142"}