{"uid":"cap_qA01sRDmfjrrTnwMpprTu","slug":"a2apay-agent-query-141ea53f","name":"a2apay Agent Query","description":"On-demand AI responses backed by autonomous ICP canisters. Submit a prompt, get an answer — redundant infrastructure, pay-per-query, no account required.","url":"https://a2apay.io/api/agent-service?utm_source=zero.xyz","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},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.028","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.028/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.028","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.028","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KCHezG5crhUTscVSsm4ZP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.028","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits a natural-language prompt to an AI agent service backed by ICP canisters and returns a response, charged per-query with no account required.","exampleAgentPrompt":"Ask the a2apay agent service: what are the top three reasons companies adopt microservices architecture? Pay the per-query fee and return the answer directly.","exampleUseCases":[{"title":"On-demand research answer without signup","prompt":"I need a quick AI-generated explanation of how zero-knowledge proofs work — use the a2apay agent endpoint, pay the small per-query fee, and give me the answer without me needing to create an account anywhere."},{"title":"Autonomous agent subtask delegation","prompt":"I'm building an automation pipeline — for this step, submit the prompt 'summarize the key risks of algorithmic trading in three bullet points' to the a2apay agent service and return whatever it comes back with."},{"title":"Crypto-native AI query for dApp","prompt":"My dApp needs a one-off AI response: ask the agent 'what is the current role of ICP canisters in decentralized AI?' and bring back the answer, paying the micropayment fee per query."}],"resultDescription":"Returns an AI-generated text answer to the submitted prompt, produced by autonomous ICP canisters. The response reflects the agent's reasoning on the input prompt and is returned directly after the pay-per-query USDC transaction is processed.","failureModes":["Insufficient payment — query rejected if USDC micropayment not fulfilled","Malformed body — missing required 'type', 'method', or 'bodyType' fields causes validation error","Canister unavailability — ICP infrastructure outage may delay or fail response","Invalid bodyType enum — only 'json', 'form-data', or 'text' accepted","Prompt too long or malformed — agent may return an error or truncated response"],"whenToPreferThis":"Choose this endpoint when you need a one-off AI-generated response without account creation or subscription, especially in crypto-native or agent-to-agent workflows where micropayment via USDC (x402 protocol) is acceptable. Prefer it over OpenAI or Anthropic APIs when decentralized, accountless, pay-per-query inference is required, or when operating within ICP/Web3 ecosystems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:34:23.218Z","isFirstParty":false,"canonicalSlug":"a2apay-agent-query-141ea53f"}