{"uid":"cap_Cos20Wn6iFhYUm3sxeWVU","slug":"farout-llm-inference-gemini-3-1-pro-via-x402-e63924a3","name":"FarOut LLM Inference – Gemini 3.1 Pro via x402","description":"Fixed-price chat completions for gemini-3.1-pro on FarOut: flat $0.001 per call (includes up to 4,000 input + 1,000 output tokens). Rate: $0.072/1M input tokens, $0.432/1M output tokens. Pay with USDC on Base using x402. No API key, no account, no prepaid balance.","url":"https://farouter.tech/v1/models/gemini-3.1-pro/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id from GET /v1/models, e.g. glm-5.3. No provider prefix."},"stream":{"type":"boolean","description":"SSE streaming."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","developer","user","assistant","tool"],"type":"string"},"content":{}},"additionalProperties":true},"minItems":1,"description":"Chat messages, [OI]-compatible {role, content}."},"max_tokens":{"type":"integer","minimum":1,"description":"Output token budget. Drives the quote directly."},"temperature":{"type":"number","maximum":2,"minimum":0,"description":"Sampling temperature."},"max_completion_tokens":{"type":"integer","minimum":1,"description":"Alias of max_tokens (gpt-5.x models)."}}},"responseSchema":{"type":"json","example":{"usage":{"prompt_tokens":6,"completion_tokens":8},"choices":[{"message":{"role":"assistant","content":"Hello! How can I help?"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YxSTDOe0ONrnyE6ae0ac3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a Gemini 3.1 Pro chat completion request, billed per-call in USDC over the x402 protocol with no API key or account required.","exampleAgentPrompt":"Use FarOut to call Gemini 3.1 Pro and answer this: 'Explain the difference between Proof of Work and Proof of Stake in three sentences.' Set max_tokens to 200 and temperature to 0.7, paying per request with USDC on Base.","exampleUseCases":[{"title":"Autonomous agent reasoning task","prompt":"I need you to use Gemini 3.1 Pro through FarOut to think through this logic puzzle step by step: 'If all bloops are razzles and all razzles are lazzles, are all bloops definitely lazzles?' Limit the response to 300 tokens and pay per call — no API key needed."},{"title":"Code generation for a script","prompt":"Ask Gemini 3.1 Pro via FarOut to write a Python function that takes a list of integers and returns the top 3 most frequent values, with docstring and type hints. Keep max_tokens at 500 and temperature at 0.2."},{"title":"Multi-turn chat for customer support draft","prompt":"Use FarOut's Gemini 3.1 Pro endpoint to continue this support conversation and draft a polite reply: system says 'You are a helpful customer support agent', user says 'My order hasn't arrived in 10 days, what do I do?' — 150 tokens max, streaming off."}],"resultDescription":"Returns an OpenAI-compatible JSON object with a choices array containing the assistant's message text and finish reason, plus a usage object with prompt_tokens and completion_tokens counts.","failureModes":["Payment failure or insufficient USDC balance on Base — x402 payment rejected","Invalid model ID not matching available models — 400 or 422 error","messages array empty or missing required role/content fields — validation error","max_tokens set too high for model context window — truncation or error","Rate limiting or upstream Gemini API unavailability — 503 or timeout","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs frontier LLM inference (specifically Gemini 3.1 Pro) without API key management or account setup, and can pay per-call in USDC via the x402 protocol. Ideal for agent-to-agent workflows, ephemeral agents, or scenarios where prepaid credits are impractical. Prefer over standard Google AI API when crypto-native payment rails and zero-signup access matter more than volume discounts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:14.347Z","isFirstParty":false}