{"uid":"cap_sZqocQSegvCFFstuC4xyF","slug":"x402ai-ask-endpoint-afa81156","name":"x402AI Ask Endpoint","description":"Single-turn question answering from a small local LLM (qwen3.5 2B). Best for general knowledge, definitions and simple reasoning. POST JSON {\"input\": string}, up to 3000 characters; returns {answer, model, elapsed_ms}. Answers are brief (2-3 sentences). Typically 5-15 s. Known limits: no web access, no memory between calls, and it can hallucinate or be wrong on recent events and obscure facts. Verify anything important.","url":"https://api.x402ai.dev/api/ask?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Question to ask"}}},"responseSchema":{"type":"object","required":["answer"],"properties":{"answer":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bk7Tdm5321wdP6US-TkkY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Answers a natural language question via AI inference, gated by a $0.04 USDC micropayment on Base mainnet using the x402 protocol.","exampleAgentPrompt":"Ask the x402AI service: what are the main differences between proof-of-work and proof-of-stake consensus mechanisms? I'm happy to pay the 4-cent USDC fee per query.","exampleUseCases":[{"title":"On-chain AI factual lookup","prompt":"Use the x402AI pay-per-query service to answer this for me: what is the current circulating supply mechanism for Ethereum after the merge?"},{"title":"Quick AI explanation for developer","prompt":"I need a concise explanation of how the ERC-4337 account abstraction standard works — can you query x402AI with that question and pay the micropayment fee?"},{"title":"Autonomous agent knowledge query","prompt":"My agent needs to answer 'what are the trade-offs between optimistic rollups and zk-rollups?' — send that question to the x402AI inference endpoint and get the answer back."}],"resultDescription":"Returns a JSON object with an 'answer' field containing the AI-generated text response to the submitted question.","failureModes":["Payment failure: insufficient USDC balance or x402 payment not accepted, resulting in 402 Payment Required response","Invalid input: missing or empty 'input' field returns a validation error","Inference timeout: AI model takes too long and returns a timeout or 500 error","Network/mainnet issues: Base mainnet congestion or RPC errors causing payment verification failure","Malformed request: non-string input type causes schema validation error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-query AI inference without a subscription, specifically within an agent or application that already handles x402 micropayment flows on Base mainnet. Ideal for autonomous agents that should pay for knowledge lookups on-chain with USDC, or for developers building crypto-native apps that want metered AI access at $0.04 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:35:43.775Z","isFirstParty":false,"canonicalSlug":"x402ai-ask-endpoint-afa81156"}