{"uid":"cap_OdyaTxj6l7-hFMgd1scHd","slug":"x402-hub-claude-query-endpoint-189769b2","name":"X402 Hub – Claude Query Endpoint","description":"63 paid API endpoints protected by x402 micropayments on Base","url":"https://x402-hub.vercel.app/api/claude?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Query parameter for the API"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","description":"Response data from upstream API"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tqZvnx24sxhedCOQr9RNw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a natural language query to Claude AI via the X402 Hub micropayment gateway, returning a response charged at $0.15 USDC per call on Base","exampleAgentPrompt":"Ask Claude via the X402 Hub what the key differences are between proof-of-work and proof-of-stake consensus mechanisms — I'm okay paying the $0.15 USDC per-call fee on Base.","exampleUseCases":[{"title":"On-demand AI Q&A with crypto billing","prompt":"I need to ask Claude to summarize the latest trends in DeFi for me — use the X402 Hub endpoint and pay the $0.15 USDC fee from my Base wallet."},{"title":"Agent workflow with LLM reasoning step","prompt":"As part of my automated research pipeline, query Claude through X402 Hub asking it to extract the main argument from this paragraph: 'Decentralized finance removes intermediaries by using smart contracts on public blockchains.'"},{"title":"Crypto-native app integrating Claude responses","prompt":"My app needs to call Claude to generate a short product description for 'a noise-cancelling wireless headset for remote workers' — route it through X402 Hub so billing happens on-chain per call."}],"resultDescription":"Returns a JSON object with a 'data' field containing the upstream Claude API response, including the AI-generated text completion or answer to the submitted query string.","failureModes":["Insufficient USDC balance on Base causes payment failure and 402 response","Malformed or empty query string results in an error response","Upstream Claude API unavailability causes gateway timeout or 503","Payment transaction failure on Base network due to congestion or gas issues","Query too long or exceeding token limits may return an error from Claude"],"whenToPreferThis":"Choose this endpoint when you need per-call Claude AI access billed in USDC on Base without a traditional subscription, particularly in crypto-native or agent workflows that already use x402 micropayment infrastructure. It is ideal for low-frequency or bursty AI queries where pay-as-you-go on-chain billing is preferred over API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:42:42.361Z","isFirstParty":false,"canonicalSlug":"x402-hub-claude-query-endpoint-189769b2"}