{"uid":"cap_Eye7YtRSu9cGz2dEcDvPn","slug":"x402-deployer-x402-deployer-workers-dev-85bbd23d","name":"Zero-Shot Text Classifier (Mistral)","description":"Text classifier. Zero-shot classification — caller supplies 2-25 labels and the model picks the best one (or all matching labels in multi-label mode) with calibrated confidence scores and a per-label reason. Same backend as classify-text under a more search-friendly slug. Mistral powered.","url":"https://x402-deployer.x402-deployer.workers.dev/text-classify?utm_source=zero.xyz","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":{"top_label":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"text":"I was charged twice for my subscription last month and I need a refund.","labels":["billing issue","technical problem","general inquiry"],"multi_label":false},"type":"http","method":"POST","bodyType":"json"}},"response":{"model":"hermes-3-llama-3.1-405b","labels":["billing issue","technical problem","general inquiry"],"source":"morpheus","results":[{"label":"billing issue","confidence":0.95}],"reasoning":"The text specifically mentions being charged twice and needing a refund, which is a clear billing issue.","top_label":"billing issue","input_chars":71,"multi_label":false}},"exampleRequest":{"text":"I was charged twice for my subscription last month and I need a refund.","labels":["billing issue","technical problem","general inquiry"],"multi_label":false},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"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_JsK06DKyA2P_r656x2Bwo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a text input into one or more caller-supplied labels using zero-shot classification with calibrated confidence scores and per-label reasoning, powered by Mistral.","exampleAgentPrompt":"Classify this customer support message into one of these three categories — 'billing issue', 'technical problem', or 'general inquiry' — and tell me how confident you are and why: 'I was charged twice for my subscription last month and I need a refund.'","exampleUseCases":null,"resultDescription":"Returns the best-matching label from the supplied list, a calibrated confidence score (0-1) for each candidate label, a human-readable reason explaining the classification decision for each label, and (in multi-label mode) all labels that match above threshold.","failureModes":["Fewer than 2 or more than 25 labels supplied — returns validation error","Empty or missing text input — returns 400 bad request","Mistral backend timeout or rate limit — returns 503 or 504","Ambiguous text with near-equal confidence across labels — returns low-confidence result that may be unreliable","Payment not attached or insufficient USDC balance — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need zero-shot classification without any fine-tuning or training data — ideal for dynamic or user-defined label sets (2-25 labels). Prefer over embedding-based similarity classifiers when you need human-readable reasoning per label and calibrated confidence scores. Well-suited for routing, triage, tagging, or intent detection tasks where labels change frequently.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-08-12T22:15:14.768Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T18:42:35.225Z","isFirstParty":false,"canonicalSlug":"x402-deployer-x402-deployer-workers-dev-85bbd23d"}