# Model Access Gateway – Gemini 3.6 Flash via x402

> Model Access Gateway – Gemini 3.6 Flash via x402 is a paid API for AI agents from agent402-arb.rosariovitale0096.workers.dev, paid per call via x402, $0.0014/call, status unknown (last checked 2026-10-15).

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.

## Facts

- Endpoint: POST https://agent402-arb.rosariovitale0096.workers.dev/llm/gemini-3.6-flash?utm_source=zero.xyz
- Price: $0.0014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-access-gateway-gemini-3-6-flash-via-x402-67653e61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k55VC54nsMLEXKtVfAeXn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability model-access-gateway-gemini-3-6-flash-via-x402-67653e61 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/model-access-gateway-gemini-3-6-flash-via-x402-67653e61/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402-arb.rosariovitale0096.workers.dev](https://www.zero.xyz/host/agent402-arb.rosariovitale0096.workers.dev/llms.txt)
