{"uid":"cap_bGxLu4o-TY5rtRoPoQvJV","slug":"yog-x402-text-classification-a13499b3","name":"Yog x402 Text Classification","description":"Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).","url":"https://api.gosyog.lol/api/service/yog/classify_text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"labels":{"type":"array","items":{"type":"string"},"minItems":1}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"label":"positive"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__CIExssvSdYDw67tPRPEa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a given text string into one of a set of user-supplied labels using a paid AI-powered endpoint.","exampleAgentPrompt":"Classify this customer review — 'The delivery was fast but the packaging was damaged' — as one of: positive, negative, or mixed.","exampleUseCases":[{"title":"Sentiment labeling for customer reviews","prompt":"Classify this customer review as positive, negative, or neutral: 'The product quality is excellent but the shipping took forever.'"},{"title":"Support ticket intent routing","prompt":"I need to categorize this support message into one of these buckets — billing, technical, or general — to route it to the right team: 'My payment didn't go through but the app says it did.'"},{"title":"Content moderation tag assignment","prompt":"Tag this user-submitted comment as safe, borderline, or harmful so I know whether to publish it automatically: 'I really disagree with everything this author stands for.'"}],"resultDescription":"Returns a JSON object with an 'ok' boolean and a 'result' object containing a 'label' field set to whichever of the supplied labels best matches the input text.","failureModes":["Empty or missing 'text' field returns an error","Empty 'labels' array (minItems:1 violated) causes a validation error","Payment failure or insufficient USDC balance blocks the request","Ambiguous text with equally valid labels may produce unpredictable label selection","Network timeout if the underlying model is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need lightweight, zero-infrastructure text classification with a custom label set and are comfortable with a per-call micropayment model. It is well-suited for agents that need dynamic label sets (not a fixed taxonomy) and want a simple JSON response. Prefer alternatives if you need confidence scores, multi-label output, or batch classification at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:33:27.587Z","isFirstParty":false,"canonicalSlug":"yog-x402-text-classification-a13499b3"}