{"uid":"cap_to002ZxvxgueRg7Imeqpr","slug":"tanship-payai-console-ai-answer-endpoint-2b772c2f","name":"Tanship PayAI Console — AI Answer Endpoint","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/answer","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.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E9SB4NxsKfmkwJUlXZmTU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an AI-generated answer to a question or prompt, gated by USDC micropayment via the x402 protocol on Base.","exampleAgentPrompt":"Ask the Tanship PayAI answer endpoint: what are the main differences between Proof of Work and Proof of Stake consensus mechanisms? Pay the $0.008 USDC fee via x402 on Base.","exampleUseCases":[{"title":"On-demand AI factual lookup","prompt":"Use the Tanship PayAI answer API to get me a concise explanation of how zero-knowledge proofs work — pay the per-call USDC fee automatically."},{"title":"Automated research assistant query","prompt":"Query the Tanship pay-per-use AI endpoint to summarize the key risks of using stablecoins for cross-border payments, and charge the micropayment in USDC on Base."},{"title":"AI coding help with micropayment","prompt":"Send my question to the Tanship PayAI answer service: how do I implement exponential backoff in Python? Pay the $0.008 USDC x402 fee from my Base wallet."}],"resultDescription":"A text response containing the AI-generated answer to the submitted question or prompt. The response is returned after the x402 USDC micropayment on Base is validated and the request is processed.","failureModes":["Payment not included or invalid x402 header — returns HTTP 402 Payment Required","Insufficient USDC balance on Base wallet — payment fails, request rejected","Malformed request body — returns 400 Bad Request if required fields missing","Network congestion on Base causing payment validation delays","AI backend timeout if prompt is too long or complex","Invalid bodyType enum value causes schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call AI answer service with no subscription required, where each query is settled via USDC micropayment on the Base blockchain using the x402 protocol. Ideal for agents that need to answer questions on demand without committing to a flat-rate plan, or for applications billing end-users per AI query using on-chain stablecoin payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:03.991Z","isFirstParty":false}