{"uid":"cap_dsUoK_Xq1-87UdMmYLCna","slug":"model-access-gateway-gemini-2-0-flash-x402-pay-per-call-b254612d","name":"Model Access Gateway – Gemini 2.0 Flash (x402 pay-per-call)","description":"LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.","url":"https://modelaccessgateway.com/llm/gemini-3.6-flash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (google/gemini-3.6-flash)"},"tools":{"type":"array"},"stream":{"type":"boolean","description":"true: server-sent events after payment"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool","developer"],"type":"string"},"content":{"type":["string","array","null"]}}},"minItems":1},"max_tokens":{"type":"integer","maximum":16384,"minimum":1,"description":"Optional, default 4096"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-7f3c2a91","model":"google/gemini-3.6-flash","usage":{"total_tokens":10,"prompt_tokens":9,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"OK"},"finish_reason":"stop"}],"created":1791979200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0014","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.0014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d-Ksbovz3t93pCdjmfdKL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible chat completions against Google's Gemini 2.0 Flash model, billed per call in USDC on Base via x402 — no API key or account required.","exampleAgentPrompt":"Ask Gemini 2.0 Flash to summarize the following paragraph in three bullet points, paying per call with no API key: 'Quantum computing uses quantum bits that can exist in superposition, enabling computations impossible for classical computers.'","exampleUseCases":[{"title":"Agentic pipeline without API key setup","prompt":"I'm building an AI agent that needs to call Gemini Flash for quick reasoning steps, but I don't want to manage API keys or subscriptions — just pay per call in USDC. Can you route my next reasoning prompt through that gateway and get me a response?"},{"title":"Cheap structured JSON extraction","prompt":"Use Gemini Flash to extract the company name, job title, and start date from this text and return it as JSON: 'Jane Doe joined Acme Corp as a Senior Engineer in March 2022.' Keep temperature at 0 and limit to 256 tokens."},{"title":"Streaming chat response for a user-facing app","prompt":"Send this conversation to Gemini 2.0 Flash with streaming on so I get tokens as they arrive — the system prompt is 'You are a helpful cooking assistant' and the user just asked 'What can I make with eggs, spinach, and feta?'"}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's message content, finish reason (stop/length/tool_calls), prompt/completion/total token counts, model identifier, and a unique completion ID. Streaming mode delivers server-sent events instead.","failureModes":["Payment failure or insufficient USDC balance — x402 payment rejected, no completion returned but refund issued","Model unavailable or overloaded — gateway returns 5xx with automatic refund","Invalid messages array (empty or malformed) — 400 validation error","max_tokens exceeds 16384 — validation error","Temperature out of 0–2 range — 400 error","Network timeout before streaming completes — partial response"],"whenToPreferThis":"Choose this endpoint when you need Gemini 2.0 Flash specifically, want OpenAI SDK compatibility without maintaining an API key or account, prefer pay-per-call USDC billing on Base (x402), or are building an autonomous agent that needs to self-fund LLM calls. Prefer it over direct Google AI Studio API when you want no account setup, automatic refunds on failure, and crypto-native payment flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T08:33:51.984Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-gemini-2-0-flash-x402-pay-per-call-b254612d"}