{"uid":"cap_k55VC54nsMLEXKtVfAeXn","slug":"model-access-gateway-gemini-3-6-flash-via-x402-67653e61","name":"Model Access Gateway – Gemini 3.6 Flash via x402","description":"Gemini 3.6 Flash API (google/gemini-3.6-flash): LLM inference via OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account. Suited for AI agents and scripts that need Gemini 3.6 Flash on demand. When listed, this request cost 30% less than the same request on BlockRun. Streaming and function calling supported. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.","url":"https://agent402-arb.rosariovitale0096.workers.dev/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_c4ivp8v5mdd5_UBN7-cYF","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 an OpenAI-compatible chat completion request against Google Gemini 3.6 Flash, billed per-request in USDC on Base via x402 with no API key required.","exampleAgentPrompt":"Ask Gemini 3.6 Flash to summarize this paragraph for me: 'Photosynthesis is the process by which plants convert sunlight into energy, producing oxygen as a byproduct.' — pay the $0.0014 USDC per-call fee automatically, no API key needed.","exampleUseCases":[{"title":"Autonomous agent LLM reasoning step","prompt":"My agent needs to call Gemini 3.6 Flash to decide the next action in a task — send it this message: 'Given the user wants to book a flight to Tokyo, what information should I collect first?' and pay the micro-fee automatically."},{"title":"Crypto-native chatbot backend","prompt":"Build a chatbot that uses Gemini 3.6 Flash for replies, charging users a tiny USDC fee per message instead of requiring a subscription — send this message: 'Explain quantum entanglement in two sentences.'"},{"title":"Quick text generation without API keys","prompt":"Use Gemini 3.6 Flash to write a one-paragraph product description for a standing desk called ErgoRise Pro, without me needing to set up a Google Cloud account."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object including the assistant's reply text under choices[0].message.content, finish_reason, token usage counts (prompt, completion, total), model name, a unique completion ID, and a created timestamp.","failureModes":["Payment not included or insufficient USDC triggers a 402 Payment Required response","Malformed request body (missing required fields like messages) returns a 400 error","Model identifier mismatch or unsupported model variant returns an error from the gateway","Rate limiting or capacity issues on the Cloudflare Worker may return 429 or 503","Network timeout if the upstream Gemini API is slow can cause gateway timeout errors"],"whenToPreferThis":"Choose this endpoint when you need Gemini 3.6 Flash inference without setting up a Google Cloud account or managing API keys, especially in autonomous agent pipelines that can already handle x402 micropayments in USDC. It is ideal for pay-per-use scenarios where you want low overhead and OpenAI SDK compatibility. Prefer alternatives (e.g. direct Google AI Studio API) if you need free-tier access, streaming responses, or guaranteed SLAs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T13:01:34.642Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-gemini-3-6-flash-via-x402-67653e61"}