{"uid":"cap_cQxc6oLdLvO5ehhYww3nt","slug":"x402-deployer-x402-deployer-workers-dev-d3ffb1bf","name":"Zero-Shot Text Classifier (Mistral-powered, Multi-Label)","description":"Text classifier / zero-shot classifier / category sorter. Caller supplies labels (2-25). Multi-label mode. Calibrated confidences + reasoning. Mistral powered.","url":"https://x402-deployer.x402-deployer.workers.dev/classify-text","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text","labels"],"properties":{"text":{"type":"string","description":"Text to classify. Max 15k chars."},"labels":{"type":"array","items":{"type":"string"},"description":"Candidate labels to choose from. 2-25 items, each a non-empty string ≤80 chars."},"multi_label":{"type":"boolean","description":"If true, returns every label that applies instead of just the best match. Optional; defaults to false."},"label_descriptions":{"type":"object","description":"Optional map of label name to a short description, used to guide the model."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"confidence":{"type":"number"}}}},"top_label":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"text":"This product is amazing and arrived quickly. I love the quality and would definitely recommend it to others.","labels":["positive","negative","neutral","complaint","praise"],"multi_label":true,"label_descriptions":{"praise":"Explicitly commends or compliments","neutral":"Neither positive nor negative","negative":"Expresses dissatisfaction or criticism","positive":"Expresses satisfaction or approval","complaint":"Indicates a problem or issue"}},"type":"http","method":"POST","bodyType":"json"},"output":{"type":"json"}},"response":{"model":"hermes-3-llama-3.1-405b","labels":["positive","negative","neutral","complaint","praise"],"source":"morpheus","results":[{"label":"positive","confidence":0.95},{"label":"praise","confidence":0.9}],"reasoning":"The text expresses strong satisfaction with the product and explicitly commends it, indicating a positive sentiment and praise.","top_label":"positive","input_chars":108,"multi_label":true}},"exampleRequest":{"text":"This product is amazing and arrived quickly. I love the quality and would definitely recommend it to others.","labels":["positive","negative","neutral","complaint","praise"],"multi_label":true,"label_descriptions":{"praise":"Explicitly commends or compliments","neutral":"Neither positive nor negative","negative":"Expresses dissatisfaction or criticism","positive":"Expresses satisfaction or approval","complaint":"Indicates a problem or issue"}},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.83","successRate":"0.00","reviews":1,"stars":"4.3","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uWpSzSHYPmDSCLtkAAAGs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies arbitrary text into caller-supplied categories using zero-shot classification with calibrated confidence scores and reasoning, powered by Mistral.","exampleAgentPrompt":"Classify this customer support message — 'My order arrived damaged and I want a refund immediately' — into these categories: billing, shipping, product-quality, returns, account-issue. Use multi-label mode and give me confidence scores and reasoning for each label.","exampleUseCases":null,"resultDescription":"Returns each supplied label with a calibrated confidence score (0-1) indicating how well the text matches that category, plus a reasoning explanation for the classification decisions. In multi-label mode, multiple labels can be assigned simultaneously.","failureModes":["Fewer than 2 or more than 25 labels supplied — validation error","Empty or missing text input — 400 bad request","Labels are ambiguous or overlapping — lower confidence scores with uncertain reasoning","Text is too long — possible truncation or error","Payment not included or insufficient — 402 payment required","Mistral backend unavailable — 503 service error"],"whenToPreferThis":"Choose this endpoint when you need zero-shot classification without any model training, especially when your category labels are dynamic or custom per request. Ideal when you need both multi-label support and human-readable reasoning alongside confidence scores. Prefer over embedding-based classifiers when interpretability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-08-20T20:19:09.750Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:52:49.240Z","isFirstParty":false}