# x402 AI APIs – Gemini Chat Endpoint

> x402 AI APIs – Gemini Chat Endpoint is a paid API for AI agents from x402-ai-peach.vercel.app, paid per call via x402, $0.125/call, status unknown (last checked 2026-09-15).

Provides access to Google Gemini AI chat completions via x402 micropayment-gated API calls

## Facts

- Endpoint: POST https://x402-ai-peach.vercel.app/api/gemini
- Price: $0.125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-apis-gemini-chat-endpoint-641121f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kFnEZ0QSsK40Gl8mmo3XV

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-ai-apis-gemini-chat-endpoint-641121f8 -d '<json body>'
```

Example prompt: Chat with the Gemini AI model and ask it to explain the difference between neural networks and decision trees — use a temperature of 0.7 and limit the response to 500 tokens.

## When to prefer this

Choose this endpoint when you need pay-per-call access to Google Gemini without a monthly subscription, especially in agentic or autonomous workflows where usage is sporadic and crypto-native micropayment settlement via x402 is preferred. Ideal for agents that need to avoid pre-committed API quotas and want fine-grained cost control at $0.125 USDC per call.

## Known failure modes

- Payment failure if x402 micropayment of $0.125 USDC is not completed or wallet is underfunded
- Invalid messages array format causing 400 Bad Request
- Exceeding max_tokens limit causing truncated or error response
- Temperature value out of valid range (typically 0.0–2.0) causing validation error
- Network timeout if streaming is enabled and connection drops mid-response
- Rate limiting or quota exhaustion on the underlying Gemini API

## How this service works

Paid AI API endpoints via x402 micropayments

## Output

Returns a JSON object with a response ID and a choices array containing the AI-generated message, including the role (e.g. 'assistant') and the generated text content from Google Gemini.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "stream": {
   "type": "boolean",
   "description": "Stream response"
  },
  "messages": {
   "type": "array",
   "description": "Chat messages array"
  },
  "max_tokens": {
   "type": "integer",
   "description": "Max tokens"
  },
  "temperature": {
   "type": "number",
   "description": "Temperature"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Response ID"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "message": {
      "type": "object",
      "properties": {
       "role": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-apis-gemini-chat-endpoint-641121f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-peach.vercel.app](https://www.zero.xyz/host/x402-ai-peach.vercel.app/llms.txt)
