# OpenWeb Ninja Gemini Chat API

> OpenWeb Ninja Gemini Chat API is a paid API for AI agents from x402.openwebninja.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Send a message to Google Gemini via a pay-per-call x402 endpoint and receive an AI-generated text response, with optional conversation continuity.

## Facts

- Endpoint: POST https://x402.openwebninja.com/gemini/chat
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openweb-ninja-gemini-chat-api-8bbabd63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dqvUMqUJLG-e6Tobj77g9

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 openweb-ninja-gemini-chat-api-8bbabd63 -d '<json body>'
```

Example prompt: Ask Google Gemini to explain the difference between supervised and unsupervised machine learning in plain English, and give me the answer in markdown format.

## When to prefer this

Choose this endpoint when you need access to Google Gemini's chat capabilities without registering for a Google API key or committing to a subscription — ideal for agents that want to make occasional Gemini calls and pay only per use via USDC on Base, Polygon, or Arbitrum. Prefer this over direct Google Gemini API when operating in a crypto-native payment environment or when avoiding API key management is a priority.

## Known failure modes

- Payment not included or insufficient USDC causes 402 response
- Invalid or malformed message field returns error
- Expired or invalid conversation_id may start a new session instead of continuing
- Network timeout if Gemini upstream is slow
- Empty message field may return an error or empty response

## How this service works

40+ public web-data, SERP, e-commerce, real-estate, finance and AI-search APIs, payable per call over x402 (USDC on Base, Polygon, Arbitrum). No account or API key required. Most endpoints $0.003; AI-model endpoints $0.005.

## Output

A JSON response containing the AI-generated reply from Google Gemini (in plain text or markdown depending on the flag), along with a conversation_id that can be used to continue the conversation in subsequent calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "message": {
   "type": "string",
   "description": "Message to send to Google Gemini."
  },
  "markdown": {
   "type": "boolean",
   "default": true,
   "description": "Whether to return the Google Gemini response message in markdown format. By default, the bot reply is in plain text.\n"
  },
  "conversation_id": {
   "type": "string",
   "description": "Conversation Id. In case not supplied, a new conversation will be created and conversation_id will be returned by the endpoint.\n"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openweb-ninja-gemini-chat-api-8bbabd63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.openwebninja.com](https://www.zero.xyz/host/x402.openwebninja.com/llms.txt)
