{"uid":"cap_Ow2DZfyZqzYCo-DzykoDg","slug":"api-strale-io-73ce706e","name":"Text Classification API (api.strale.io)","description":"Classify text into categories. Optionally provide custom categories. Returns primary category, confidence scores, topic keywords, and summary.","url":"https://api.strale.io/x402/classify-text","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to classify"},"categories":{"type":"array","description":"Optional list of categories to classify into"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"text":"The product quality is excellent and arrived quickly, but the customer service team was unhelpful when I had questions about the warranty."},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x062fd0efcced3fc3daba0cfccce8e250d3117b5b0a921225d0349db53770d10b"},"capability":"classify-text","latency_ms":1752,"provenance":{"source":"claude-haiku","fetched_at":"2026-06-13T04:24:09.549Z"}},"summary":"A mixed review praising product quality and fast delivery while criticizing unhelpful customer service regarding warranty inquiries.","confidence":0.95,"all_categories":[{"category":"Customer Review","confidence":0.95},{"category":"Customer Service Feedback","confidence":0.75},{"category":"Product Feedback","confidence":0.7},{"category":"Complaint","confidence":0.55}],"topic_keywords":["product quality","delivery speed","customer service","warranty","customer satisfaction"],"primary_category":"Customer Review","detected_language":"English"}},"exampleRequest":{"text":"The product quality is excellent and arrived quickly, but the customer service team was unhelpful when I had questions about the warranty."},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6u-Ds2v-00PcmRPGy0COd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","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 categories, returning the primary category, confidence scores, topic keywords, and a summary","exampleAgentPrompt":"Classify this product review into one of these categories — 'shipping', 'product quality', 'customer service', or 'pricing' — and tell me the confidence score: \"The package arrived three days late and the box was damaged when it finally got here.\"","exampleUseCases":null,"resultDescription":"Returns the primary category label, confidence scores for each candidate category, extracted topic keywords from the text, and a brief summary of the content","failureModes":["Missing required 'text' query parameter returns a 400 error","Text that is too long or empty may return a 422 unprocessable entity","If custom categories are too vague or contradictory, classification confidence may be very low","Payment failure or insufficient USDC balance returns a 402 error","Rate limiting or service unavailability returns a 503 error"],"whenToPreferThis":"Choose this endpoint when you need fast, single-call text classification with confidence scores and topic keywords, especially when you want to supply custom category lists rather than relying on a fixed taxonomy. Ideal for routing support tickets, labeling content, or categorizing user feedback at low per-call cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:12.959Z","isFirstParty":false}