{"uid":"cap_X7Lmiw4Zx5706MqD0-05_","slug":"tanship-payai-console-ai-classify-545dbaa7","name":"Tanship PayAI Console — AI Classify","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/classify","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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_szDNTv-E8OVN_mFrXKMqx","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":"Classifies text or structured input into categories using edge AI, gated by micropayment via the x402 protocol on Base/USDC.","exampleAgentPrompt":"Can you classify this customer review into one of the sentiment categories — positive, negative, or neutral: 'The onboarding was smooth but the dashboard crashes on mobile every time.'","exampleUseCases":[{"title":"Customer feedback sentiment labeling","prompt":"Classify this support message and tell me which category it falls into — billing issue, technical bug, or general inquiry: 'I was charged twice this month and my account still shows as unpaid.'"},{"title":"Content moderation topic tagging","prompt":"I need you to classify this user-submitted post to check if it falls under spam, misinformation, or clean content: 'Win a free iPhone — click this link and share with 10 friends!'"},{"title":"Product review category routing","prompt":"Classify this product review by whether the complaint is about shipping, quality, or customer service: 'The item arrived dented and the packaging was completely destroyed.'"}],"resultDescription":"Returns a classification label or category for the provided input, typically including a predicted class and potentially a confidence score, based on AI inference run at the edge.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 with x402 payment requirements","Malformed request body — returns 400 if required fields like 'type', 'method', or 'bodyType' are missing","Unsupported bodyType value — only 'json', 'form-data', or 'text' are accepted","Empty or null input body — may return 422 or classification error","Network timeout at edge node — may return 504 or connection error"],"whenToPreferThis":"Choose this endpoint when you need low-cost, per-call AI text classification without a subscription, billed in USDC micropayments via x402. Ideal for agents that need to classify arbitrary content on demand and want cryptographic payment rather than API key management. Best for sporadic or high-volume classification where pay-per-use economics matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:56:43.073Z","isFirstParty":false}