{"uid":"cap_WmvT8ubSSecJIk9Xg9tM_","slug":"x402-hub-gemini-ai-query-endpoint-9e818a33","name":"X402 Hub – Gemini AI Query Endpoint","description":"63 paid API endpoints protected by x402 micropayments on Base","url":"https://x402-hub.vercel.app/api/gemini?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.125","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.125/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.125","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.125","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iz8kovGrzytACq1sJ7app","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.125","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 Google Gemini AI via the X402 Hub, with per-call micropayment billing on Base","exampleAgentPrompt":"Ask Gemini through the X402 Hub: 'What are the key differences between transformer and mamba architectures in modern LLMs?' — charge $0.125 USDC per call on Base.","exampleUseCases":[{"title":"On-demand AI research assistant","prompt":"Use the X402 Hub's Gemini endpoint to answer this research question: 'Summarize the latest advances in protein folding prediction since AlphaFold2.'"},{"title":"Pay-per-use content drafting","prompt":"Query Gemini through the X402 Hub to draft a short product description for a noise-cancelling travel headphone targeting business travelers."},{"title":"Agentic reasoning without subscription","prompt":"Send this reasoning task to Gemini via X402 Hub: 'Given a 10% monthly churn rate and 500 current users, how many users will remain after 6 months?'"}],"resultDescription":"Returns a JSON object with a `data` field containing Gemini's response to the submitted query, structured as upstream API output from Google Gemini.","failureModes":["Insufficient USDC balance causes payment failure and 402 response","Malformed or missing `query` field returns validation error","Gemini upstream API timeout or outage results in 502/503 error","Query blocked by content policy returns an error or empty response","Rate limiting on the upstream Gemini API causes temporary unavailability"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use access to Google Gemini without managing a Gemini API subscription or key — ideal for agents that make infrequent or variable-volume calls and want to pay only for what they use in USDC on Base via x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:32:21.344Z","isFirstParty":false,"canonicalSlug":"x402-hub-gemini-ai-query-endpoint-9e818a33"}