{"uid":"cap_IXfpXo4IR9THCF5n2TS1k","slug":"x402-cloud-ai-text-generation-gemini-8608332a","name":"X402 Cloud AI Text Generation (Gemini)","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/generate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Alias for prompt."},"prompt":{"type":"string","maxLength":32000,"minLength":1,"description":"Plain text prompt for agent-friendly calls."},"contents":{"type":"array","description":"Gemini generateContent contents array."},"maxOutputTokens":{"type":"integer","default":256,"maximum":8192,"minimum":1},"generationConfig":{"type":"object","description":"Generation controls such as maxOutputTokens."}}},"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.01229","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":"static","summary":"$0.01229/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01229","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01229","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DY5kmA2hFyWxETd5oVE0M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01229","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI text responses via a pay-per-call x402 USDC endpoint backed by Google Gemini, accepting plain text prompts or structured contents arrays","exampleAgentPrompt":"Using the x402Cloud Gemini endpoint, generate a concise product description for a standing desk called 'ErgoRise Pro' — keep the response under 200 tokens.","exampleUseCases":null,"resultDescription":"A JSON object containing a candidates array with the generated text parts, plus a usageMetadata object detailing token consumption for the call.","failureModes":["Payment not received or insufficient USDC — returns 402 Payment Required","Prompt exceeds 32,000 character limit — validation error","maxOutputTokens out of range (must be 1–8192) — parameter error","Empty or missing prompt/contents — 400 Bad Request","Model unavailable or overloaded — 503 Service Unavailable","Malformed generationConfig object — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call Gemini text generation without a monthly subscription, especially for autonomous AI agents, trading bots, or RAG pipelines that require programmatic USDC micropayments via the x402 protocol. Prefer it over direct Google Gemini API when you need x402-native billing or when your agent stack already handles x402 payment headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T01:20:31.825Z","isFirstParty":false,"canonicalSlug":"x402-cloud-ai-text-generation-gemini-8608332a"}