{"uid":"cap_0UoLBUF99r0fIMI0R6s9W","slug":"x402-gateway-production-up-railway-app-bed9ac70","name":"Gemini 2.5 Pro via x402 Gateway","description":"Google's latest flagship — advanced reasoning, coding, and multimodal with extended thinking","url":"https://x402-gateway-production.up.railway.app/api/llm/gemini-3.1-pro","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"model":"gemini-3.1-pro","messages":[{"role":"user","content":"Explain the concept of machine learning in simple terms, covering supervised learning, unsupervised learning, and reinforcement learning with one example each."}],"max_tokens":1024,"temperature":0.7},"response":{"model":"google/gemini-3.1-pro-preview-20260219","usage":{"cost":0.01229,"is_byok":false,"cost_details":{"upstream_inference_cost":0.01229,"upstream_inference_prompt_cost":0.00005,"upstream_inference_completions_cost":0.01224},"total_tokens":1045,"prompt_tokens":25,"completion_tokens":1020,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":981}},"content":"Think of a traditional computer program like a recipe. A programmer writes down exact, step-by-step instructions for the computer to follow. If the instructions say \"add two plus two,\" the"}},"exampleRequest":{"model":"gemini-3.1-pro","messages":[{"role":"user","content":"Explain the concept of machine learning in simple terms, covering supervised learning, unsupervised learning, and reinforcement learning with one example each."}],"max_tokens":1024,"temperature":0.7},"tags":["x402"],"displayCostAmount":"0.050000","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.050000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vKiv-eomiySoO1vj_Vn7R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calls Google's Gemini 2.5 Pro large language model with advanced reasoning, coding, and multimodal capabilities via a pay-per-call x402 gateway","exampleAgentPrompt":"Use Google Gemini 2.5 Pro to analyze this complex multi-step math problem and walk me through the reasoning step by step: 'A train leaves Chicago at 60 mph and another leaves New York at 80 mph, the cities are 790 miles apart — when and where do they meet?'","exampleUseCases":[{"title":"Debug production code issues fast","prompt":"I've got a tricky bug in my Node.js service where requests are timing out unpredictably. Can you use Gemini Pro to analyze this stack trace and code snippet, then walk me through what's likely causing it and how to fix it?"},{"title":"Generate boilerplate for new features","prompt":"I need to build a REST API endpoint for user authentication with JWT tokens and refresh logic. Have Gemini create well-structured, production-ready Python code that handles all the edge cases properly."},{"title":"Solve complex reasoning problems","prompt":"Our algorithm is struggling with route optimization across 50 delivery locations. Can you ask Gemini to think through the problem deeply and suggest an approach that balances computational complexity with accuracy?"}],"resultDescription":"A generated text response from Google's Gemini 2.5 Pro model, potentially including extended chain-of-thought reasoning, code snippets, or multimodal analysis depending on the input prompt.","failureModes":["Payment not included or insufficient USDC — 402 Payment Required","Invalid or malformed prompt body — 400 Bad Request","Model temporarily unavailable or upstream Google API error — 503","Rate limit exceeded on the gateway — 429 Too Many Requests","Context window exceeded for very long prompts — 400 or 413"],"whenToPreferThis":"Choose this endpoint when you need Google's most capable Gemini model with extended thinking for complex multi-step reasoning, advanced coding tasks, or multimodal inputs, especially in agentic workflows where you want pay-per-call pricing without managing Google API credentials directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:15.340Z","isFirstParty":false}