{"uid":"cap_pqG2UTYBUedZoiGxRdChv","slug":"losbeto-classify-zero-shot-text-classification-6a64bbd8","name":"Losbeto /classify — Zero-Shot Text Classification","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 th...","url":"https://api.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_F8Aw0qOPFkrxvd4nlIO_i","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":"Assigns a given text to exactly one label from a user-supplied closed set, returning the chosen label verbatim with a 0–1 confidence score, billed per call in USDC via x402.","exampleAgentPrompt":"Classify the following support message into exactly one of these categories — billing, technical issue, feature request, or general inquiry — and tell me your confidence: 'I was charged twice for my subscription this month and need a refund.'","exampleUseCases":[{"title":"Customer support ticket routing","prompt":"Classify this incoming support message into one of these queues — billing, technical, account, or general — and give me a confidence score so I know whether to auto-route it or flag it for human review: 'My login stopped working after your update yesterday.'"},{"title":"Spam vs. legitimate email triage","prompt":"Tell me whether this email is spam or not spam — pick one — and how confident you are: 'Congratulations! You've been selected for a free iPhone, click here to claim your prize within 24 hours.'"},{"title":"Product review sentiment bucketing","prompt":"Assign this product review to exactly one sentiment bucket — positive, negative, or mixed — with a confidence score: 'The build quality is excellent but the battery barely lasts half a day.'"}],"resultDescription":"A JSON object containing the chosen label (copied verbatim from the candidate list provided) and a 0–1 confidence float. If the model returns anything outside the provided label set, the payment is credited back as call credit. No open-ended tags or free-text answers are produced.","failureModes":["Text exceeds 6000 characters — request rejected","Fewer than 2 or more than 30 labels provided — validation error","Model returns label not in candidate set — payment refunded as credit","Insufficient USDC balance or payment failure — 402 response, call not executed","Malformed request body missing 'text' or 'labels' — 400 error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, closed-set classification where the answer must be one of a fixed list you control — support triage, intent routing, spam detection, sentiment bucketing. Prefer it over open-ended extraction endpoints (like /extract) when you don't want free-form tags. It's especially suitable for agent pipelines that need no API keys or account setup and can pay per-call in USDC on Base, Polygon, Solana, or Algorand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:56:45.426Z","isFirstParty":false,"canonicalSlug":"losbeto-classify-zero-shot-text-classification-6a64bbd8"}