{"uid":"cap_Bct9qhrP_sHQZektqX53c","slug":"claude-ai-text-classifier-x402-70b1b046","name":"Claude AI Text Classifier (x402)","description":"Classify text or JSON into categories with AI: sentiment analysis, topic, intent detection, urgency triage, or a custom taxonomy. Returns labels with confidence scores and reasoning.","url":"https://web-production-2d1051.up.railway.app/v1/classify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Text or JSON string to classify"},"preset":{"enum":["sentiment","topic","intent","urgency","custom"],"type":"string","description":"Classification preset. Default: sentiment"},"explain":{"type":"boolean","description":"Include reasoning string. Default: true"},"taxonomy":{"type":"array","items":{"type":"string"},"description":"Custom label list (required when preset=custom, 2–20 labels)"},"input_type":{"enum":["text","json"],"type":"string","description":"text (default) or json"},"multi_label":{"type":"boolean","description":"Return ranked list of all labels. Default: false"}}},"responseSchema":{"type":"json","example":{"meta":{"model":"claude-haiku-4-5","preset":"sentiment","input_type":"text","multi_label":false},"label":"positive","labels":[{"label":"positive","confidence":0.92},{"label":"neutral","confidence":0.06},{"label":"negative","confidence":0.02}],"reasoning":"The text expresses strong satisfaction and approval with no negative indicators.","confidence":0.92}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005001","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.005001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-1EypSVWhIoVZbfbSJz8_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies text or JSON input into sentiment, topic, intent, urgency, or custom categories using Claude AI, with confidence scores and optional reasoning.","exampleAgentPrompt":"Classify this customer review by sentiment and include your reasoning — 'The delivery was fast but the product broke after one day.' Tell me the label, confidence score, and why you picked it.","exampleUseCases":null,"resultDescription":"Returns a JSON object with the top classification label, confidence score (0–1), an optional ranked list of all labels with their individual confidence scores, a reasoning string explaining the classification, and metadata including the Claude model used, preset, and input type.","failureModes":["Missing or invalid x402 USDC payment header returns 402 Payment Required","Invalid or unsupported preset value returns 400 Bad Request","preset=custom without taxonomy array returns 400 Bad Request","taxonomy array with fewer than 2 or more than 20 labels returns 400 Bad Request","Input exceeding size limits returns 413 Payload Too Large","Malformed JSON body returns 400 Bad Request","Claude model unavailability may return 503 Service Unavailable"],"whenToPreferThis":"Choose this endpoint when you need AI-powered text classification with confidence scoring and optional reasoning across preset categories (sentiment, topic, intent, urgency) or fully custom taxonomies. Ideal for agents that need structured, machine-readable classification output with calibrated confidence rather than raw LLM text. Prefer over generic LLM calls when you need consistent label schemas, multi-label ranking, and JSON responses. The micropayment model ($0.005/call) makes it cost-effective for moderate-volume classification tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:37:41.545Z","isFirstParty":false}