{"uid":"cap_TGea1Wdhw8YIYcZGJemPA","slug":"x402-cloud-ai-inference-gemini-3-1-pro-text-generation-dffea66c","name":"X402 Cloud AI Inference – Gemini 3.1 Pro Text Generation","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/gemini-3.1-pro?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":{"request":{"prompt":"Write a brief explanation of how machine learning models work in simple terms for a beginner audience.","maxOutputTokens":256},"response":{"candidates":[{"content":{"role":"model"},"finishReason":"MAX_TOKENS"}],"createTime":"2026-06-18T06:34:34.407364Z","responseId":"epEzasTuGKDP7rcPz7v4wAo","modelVersion":"gemini-3.1-pro-preview","usageMetadata":{"trafficType":"ON_DEMAND","totalTokenCount":270,"promptTokenCount":18,"thoughtsTokenCount":242,"promptTokensDetails":[{"modality":"TEXT","tokenCount":18}],"candidatesTokenCount":10,"candidatesTokensDetails":[{"modality":"TEXT","tokenCount":10}]}}},"exampleRequest":{"prompt":"Write a brief explanation of how machine learning models work in simple terms for a beginner audience.","maxOutputTokens":256},"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_kC8DTbD5OnrxppePnIv-o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01229","costPer":"request","priority":0,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a pay-per-call USDC text inference request against Gemini 3.1 Pro via the x402 micropayment protocol, returning generated text candidates","exampleAgentPrompt":"Using the x402 Gemini 3.1 Pro inference endpoint, generate a 300-word product description for a noise-cancelling Bluetooth headset — keep the tone professional and limit the output to 512 tokens.","exampleUseCases":null,"resultDescription":"A JSON object containing a candidates array with the generated text parts nested under content.parts[].text, plus a usageMetadata object with token consumption details. Follows the standard Gemini generateContent response shape.","failureModes":["402 Payment Required if the x402 payment header is missing or the USDC balance is insufficient","400 Bad Request if neither prompt nor contents is provided, or if maxOutputTokens exceeds 8192","429 Rate Limit if too many concurrent calls are made","503 or timeout if the upstream Gemini model is unavailable","Empty candidates array if the model produces no output due to safety filters"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call Gemini 3.1 Pro text generation billed in USDC via the x402 protocol — ideal for autonomous AI agents, RAG pipelines, or automation workflows that need to avoid monthly subscription commitments and pay only for actual inference calls. Prefer this over direct Gemini API access when you need x402-native micropayment integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:17:09.504Z","isFirstParty":false,"canonicalSlug":"x402-cloud-ai-inference-gemini-3-1-pro-text-generation-dffea66c"}