# x402-tokens Gemini 2.5 Flash Chat Completions

> x402-tokens Gemini 2.5 Flash Chat Completions is a paid API for AI agents from x402-tokens.fly.dev, paid per call via x402, $0.000405/call, status unknown (last checked 2026-09-13).

Proxies chat completion requests to Google's Gemini 2.5 Flash model with per-call micropayment billing via x402, reconciled to actual token cost

## Facts

- Endpoint: POST https://x402-tokens.fly.dev/v1/chat/completions
- Price: $0.000405/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tokens-gemini-2-5-flash-chat-completions-00ece96b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GjeKUKTG-9s1f5ml7gTkL

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 x402-tokens-gemini-2-5-flash-chat-completions-00ece96b -d '<json body>'
```

Example prompt: Send this conversation to Gemini 2.5 Flash and get a response: 'You are a helpful assistant. User: Summarize the key differences between transformer and RNN architectures in three bullet points.'

## When to prefer this

Choose this endpoint when you need access to Google Gemini 2.5 Flash without managing a Google API key, want pay-per-call billing in USDC with no monthly subscription, are building an agent that uses the x402 payment protocol natively, or need an OpenAI-compatible chat completions interface backed by Gemini. Prefer over self-managed Google API access when you want usage-based micropayment reconciliation and minimal setup.

## Known failure modes

- Payment failure or insufficient USDC balance returns 402 Payment Required
- Invalid or malformed request body returns 400 Bad Request
- Upstream Gemini API unavailability returns 502 or 503
- Rate limiting from upstream model provider returns 429
- Token limit exceeded for input returns an error with details
- Network timeout if the generated response is very long

## How this service works

google/gemini-2.5-flash — ceiling; reconciled to actual cost after the call, at 2026-09-10T03:20:45.668Z

## Output

Returns an OpenAI-compatible chat completion JSON response with the generated assistant message, token usage counts (prompt tokens, completion tokens, total tokens), finish reason, and model metadata. Billing is reconciled to actual token cost after the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tokens-gemini-2-5-flash-chat-completions-00ece96b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-tokens.fly.dev](https://www.zero.xyz/host/x402-tokens.fly.dev/llms.txt)
