{"uid":"cap_vpSEWeC-r0jDOr_OM770J","slug":"x402-cloud-ai-inference-gemini-stream-generate-content-dae3a2f4","name":"X402 Cloud AI Inference - Gemini Stream Generate Content","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:streamGenerateContent?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_LaYtYPiysItabmbWQHuyx","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":"Streams AI-generated text responses from Gemini models via pay-per-call USDC micropayment using the x402 protocol","exampleAgentPrompt":"Use Gemini via x402Cloud to stream a response to this prompt: 'Explain the concept of zero-knowledge proofs in simple terms' — cap the output at 512 tokens.","exampleUseCases":null,"resultDescription":"A streaming JSON response containing an array of candidates, each with content parts holding generated text, plus usageMetadata with token counts. The response mirrors the Gemini generateContent API format.","failureModes":["402 Payment Required if USDC payment header is missing or insufficient","Invalid model_name in path returns 404 or 400","Prompt exceeding 32000 characters returns validation error","maxOutputTokens above 8192 returns schema validation error","Empty or missing prompt/contents field returns 400 bad request","Network timeout on long streaming responses"],"whenToPreferThis":"Choose this endpoint when your AI agent or backend needs pay-per-call Gemini inference without a Google API subscription, especially in autonomous agent pipelines, trading bots, or RAG systems that benefit from x402 USDC micropayments and streaming output rather than polling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-26T12:44:55.379Z","isFirstParty":false,"canonicalSlug":"x402-cloud-ai-inference-gemini-stream-generate-content-dae3a2f4"}