{"name":"classify-text","description":"Sorts a piece of text into categories you define on the fly, no training or fixed label set required. Send text plus labels (2 to 25 caller-supplied categories), an optional multi_label flag to allow more than one match, and optional label_descriptions to disambiguate close labels; get back results with a calibrated confidence per label, a top_label, and a one-sentence reasoning for the call. Use it as a zero-shot text classifier, text classification API, content moderation router, or category and label sorter for tickets, reviews, and inbound messages.","price":"$0.02","method":"POST","input_schema":{"properties":{"text":{"type":"string","description":"Text to classify. Max 15k chars."},"labels":{"type":"array","items":{"type":"string"},"description":"Candidate labels to choose from. 2-25 items, each a non-empty string ≤80 chars."},"multi_label":{"type":"boolean","description":"If true, returns every label that applies instead of just the best match. Optional; defaults to false."},"label_descriptions":{"type":"object","description":"Optional map of label name to a short description, used to guide the model."}},"required":["text","labels"]},"input_example":{"text":"Click here for free vacation!!!","labels":["spam","phishing","legitimate"]},"output_example":{"results":[{"label":"spam","confidence":0.95}],"top_label":"spam"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}