# X402 Hub – Gemini AI Query Endpoint

> X402 Hub – Gemini AI Query Endpoint is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.125/call, status unknown (last checked 2026-09-29).

Sends a natural language query to Google Gemini AI via the X402 Hub, with per-call micropayment billing on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/gemini?utm_source=zero.xyz
- Price: $0.125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-gemini-ai-query-endpoint-9e818a33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WmvT8ubSSecJIk9Xg9tM_

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-hub-gemini-ai-query-endpoint-9e818a33 -d '<json body>'
```

Example prompt: Ask Gemini through the X402 Hub: 'What are the key differences between transformer and mamba architectures in modern LLMs?' — charge $0.125 USDC per call on Base.

## When to prefer this

Choose this endpoint when you need pay-per-use access to Google Gemini without managing a Gemini API subscription or key — ideal for agents that make infrequent or variable-volume calls and want to pay only for what they use in USDC on Base via x402 protocol.

## Known failure modes

- Insufficient USDC balance causes payment failure and 402 response
- Malformed or missing `query` field returns validation error
- Gemini upstream API timeout or outage results in 502/503 error
- Query blocked by content policy returns an error or empty response
- Rate limiting on the upstream Gemini API causes temporary unavailability

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object with a `data` field containing Gemini's response to the submitted query, structured as upstream API output from Google Gemini.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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