{"uid":"cap_q-lawwmfytqo2WqEZqLyE","slug":"x402-zero-shot-text-classifier-llama-3-2-3b-d35c1282","name":"x402 Zero-Shot Text Classifier (Llama 3.2 3B)","description":"Zero-shot text classification (Llama 3.2 3B): ?text=<up to 1000 chars>&labels=<comma-separated labels, 2-10> returns the single best label. Use when an agent needs to route or tag text (intent, sentiment, topic, spam) in one cheap call.","url":"https://x402-data-api.sigrunner.workers.dev/ai/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"},"labels":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["label","labels"],"properties":{"label":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}}}}}}}},"responseSchema":{"type":"json","example":{"label":"billing","labels":["billing","bug","feature_request","other"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kGOeiSFsSzuW6akFE7UJW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a text string into the single best label from a caller-supplied set using Llama 3.2 3B, for routing, tagging, intent detection, or sentiment in one cheap API call.","exampleAgentPrompt":"Classify this support message — 'My invoice is wrong and I was charged twice' — into one of these categories: billing, bug, feature_request, other. Give me just the best matching label.","exampleUseCases":[{"title":"Support ticket intent routing","prompt":"I need to route this incoming support message to the right team. Classify 'The app crashes every time I try to upload a photo' into one of these labels: billing, bug, feature_request, other."},{"title":"Spam or ham detection","prompt":"Tell me if this email snippet is spam or legitimate — 'Congratulations! You've been selected for a $500 gift card, click here to claim' — classify it as either spam or not_spam."},{"title":"Customer sentiment tagging","prompt":"Classify this customer review as positive, negative, or neutral: 'Delivery was fast but the product arrived damaged and support was unhelpful.'"}],"resultDescription":"A JSON object with a 'label' field containing the single best-matching label from the supplied list, plus a 'labels' array echoing back all the candidate labels that were evaluated.","failureModes":["Fewer than 2 or more than 10 labels provided — likely returns an error or unexpected result","Text exceeds 1000 characters — may be truncated or rejected","Labels not comma-separated or malformed — may cause parsing failure","Ambiguous text with no clear best label — model picks one but confidence may be low with no confidence score returned","Rate limiting or payment failure (x402) — 402 Payment Required response if payment not attached"],"whenToPreferThis":"Choose this endpoint when you need a single-label zero-shot classification decision in one cheap call ($0.003 USDC) without needing confidence scores or multi-label output. It is ideal for fast, high-volume text routing (intent detection, spam filtering, topic tagging, sentiment bucketing) where you supply your own label vocabulary and don't want to maintain your own model infrastructure. Prefer alternatives if you need multi-label output, confidence scores, embeddings, or classification of text longer than 1000 characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:31.083Z","isFirstParty":false,"canonicalSlug":"x402-zero-shot-text-classifier-llama-3-2-3b-d35c1282"}