{"uid":"cap_bfwl8_0XFjt38mn2HHLWW","slug":"tanship-payai-console-content-moderation-api-8656c025","name":"Tanship PayAI Console — Content Moderation API","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/moderate","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.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h8esWVdPuQVw_1QenRvLG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text or content for policy violations, harmful content, or inappropriate material using AI moderation via the x402 payment protocol","exampleAgentPrompt":"Can you run this user comment through AI content moderation and tell me if it violates any safety or policy guidelines: 'You are all idiots and should be ashamed'?","exampleUseCases":[{"title":"User comment safety screening","prompt":"Before I publish this user review to my platform, check if it contains hate speech, harassment, or other policy violations: 'This product is garbage and the people who made it deserve to fail.'"},{"title":"Chat message moderation pipeline","prompt":"Moderate this chat message from my app and flag any harmful, explicit, or abusive content: 'I know where you live and you'll regret this.'"},{"title":"Content policy compliance check","prompt":"Run AI moderation on this forum post and let me know if it's safe to approve or if it should be held for human review: 'Buy cheap meds online, no prescription needed, click here.'"}],"resultDescription":"Returns an AI-generated moderation verdict indicating whether the submitted content violates content policies, along with classification labels (e.g. hate speech, harassment, explicit content, spam) and likely a confidence score or severity level for each detected category.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 requiring x402 payment header","Malformed request body or missing required 'input' field — returns 400 Bad Request","Input body type mismatch (e.g. sending form-data when json expected) — returns 422 or 400","Empty or null content body — moderation may return undefined results or error","Network or upstream AI service unavailability — returns 503 or timeout","Unsupported content type submitted — may return classification error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call AI content moderation without a subscription or API key, especially if you are already using the x402 micropayment protocol on Base. Ideal for low-volume or bursty moderation needs where per-call USDC billing ($0.002) is more cost-effective than a monthly SaaS plan. Also suited for agent workflows that autonomously pay for moderation as part of a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:34.880Z","isFirstParty":false}