{"uid":"cap_7-SqsvpoX12-Qzdk1BRH5","slug":"losbeto-classify-zero-shot-text-classification-6476836f","name":"Losbeto /classify — Zero-Shot Text Classification","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.","url":"https://markets.losbeto.xyz/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","properties":{"method":{"type":"string","description":"POST"},"bodyParams":{"type":"object","required":["text","labels"],"properties":{"text":{"type":"string","description":"Text to classify (max 6000 chars)."},"labels":{"type":"array","items":{"type":"string"},"description":"2-30 candidate labels; the answer is always one of them."}}}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"Assign text to exactly one label from a closed set you provide — support triage, intent routing, spam/not-spam, sentiment buckets. The answer is always one of your labels, copied verbatim, with a 0-1 confidence; if the model returns anything else the payment is returned as call credit. Do NOT use for open-ended tagging — that is /extract."}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_woSTzXcsATUjitOi-khr5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies input text into exactly one label from a caller-supplied closed set, returning the matched label verbatim and a 0–1 confidence score, paid per-call in USDC via x402.","exampleAgentPrompt":"Classify this support message into exactly one of these labels — 'billing', 'technical issue', 'feature request', 'general inquiry' — and give me a confidence score: 'I was charged twice for my subscription this month and I need a refund immediately.'","exampleUseCases":[{"title":"Support ticket routing for helpdesk","prompt":"Take this incoming support email and assign it to exactly one of these queues — 'billing', 'account access', 'bug report', 'feature request', 'other' — with a confidence score, so I can auto-route it: 'I can't log in to my account after resetting my password.'"},{"title":"Spam vs ham filter for user submissions","prompt":"Tell me whether this forum post is 'spam' or 'not spam' with a confidence score: 'Click here to earn $500/day from home — no experience needed, limited spots!'"},{"title":"Sentiment bucketing for product reviews","prompt":"Classify this product review into exactly one of 'positive', 'neutral', or 'negative' and give me how confident you are: 'Battery life is decent but the camera is blurry in low light and the price feels too high.'"}],"resultDescription":"A JSON object containing the chosen label (copied verbatim from the caller's candidate list) and a confidence score between 0 and 1. If the model's answer falls outside the provided label set, the payment is returned as call credit.","failureModes":["Model returns a label not in the provided list — payment refunded as call credit","Fewer than 2 or more than 30 labels provided — validation error","Text exceeds 6000 character limit — rejected","Payment in unsupported asset or chain — x402 payment failure","Network or gateway timeout — call fails with no charge"],"whenToPreferThis":"Use this endpoint when you need deterministic, closed-set text classification where the answer must be exactly one of your labels — support triage, intent routing, spam filtering, or sentiment bucketing. Unlike open-ended extraction or tagging, this endpoint guarantees the output is one of your supplied labels verbatim. Prefer it over general LLM chat when you need structured, programmatic classification output without managing API keys or monthly subscriptions, paying only per successful call in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:45:34.647Z","isFirstParty":false,"canonicalSlug":"losbeto-classify-zero-shot-text-classification-6476836f"}