{"uid":"cap_cR3ItfZ704OnsFaD9DB4v","slug":"x402-cloud-ai-inference-gemini-generatecontent-9ffe3162","name":"X402 Cloud AI Inference – Gemini generateContent","description":"X402 Cloud AI Inference Endpoints is an agent-ready x402 API provider for Gemini, image, audio, video, realtime, and specialized AI inference workflows. We expose pay-per-call USDC endpoints designed for autonomous AI agents, application backends, trading bots, creative automation, and RAG systems with some of the lowest x402 AI inference prices available in the market.","url":"https://api.x402cloud.space/v1beta/models/%7Bmodel_name%7D:generateContent?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"candidates":[{"content":{"parts":[{"text":"Generated response"}]}}]},"outputSchema":{"type":"object","properties":{"candidates":{"type":"array"},"usageMetadata":{"type":"object"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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":"unknown","summary":"$0.003/call","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_J8GHjEzxPycT7sSABbwP8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates text content using a specified Gemini model via a pay-per-call x402 USDC endpoint","exampleAgentPrompt":"Using the Gemini inference endpoint at X402 Cloud, generate a 300-token response to this prompt: 'Explain the concept of zero-knowledge proofs in simple terms' — use gemini-2.0-flash as the model.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a candidates array containing the model's generated text parts, plus usageMetadata with token counts for input and output. The primary text output is found at candidates[0].content.parts[0].text.","failureModes":["402 Payment Required if USDC payment header is missing or insufficient","Invalid model_name in URL path returns 404 or model-not-found error","Prompt exceeds 32,000 character limit returns validation error","maxOutputTokens above 8192 returns parameter out-of-range error","Empty or missing prompt/contents returns bad request error","Network timeout if model inference takes too long under load"],"whenToPreferThis":"Choose this endpoint when an autonomous AI agent needs to call Gemini for text generation using USDC micropayments via the x402 protocol, without requiring a Google API key or monthly subscription. Ideal for agentic pipelines, RAG backends, and trading bots that need pay-per-call billing at low per-request cost ($0.003 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-26T12:47:38.205Z","isFirstParty":false,"canonicalSlug":"x402-cloud-ai-inference-gemini-generatecontent-9ffe3162"}