# QuantaFlow OpenCage Geocoding Gateway (x402)

> QuantaFlow OpenCage Geocoding Gateway (x402) is a paid API for AI agents from quanta-roan.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Proxies OpenCage geocoding API requests through an x402 micropayment gateway, charging $0.01 USDC per call.

## Facts

- Endpoint: POST https://quanta-roan.vercel.app/api/service/opencage
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quantaflow-opencage-geocoding-gateway-x402-f5e01b6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KCVHc6kgVQaPAbqpl7JWW

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 quantaflow-opencage-geocoding-gateway-x402-f5e01b6f -d '<json body>'
```

Example prompt: Can you geocode '1600 Amphitheatre Parkway, Mountain View, CA' and get me back the latitude and longitude? Use the OpenCage proxy and pay the $0.01 USDC fee per call.

## When to prefer this

Prefer this endpoint when you need per-request pay-as-you-go geocoding via crypto (USDC) without managing an OpenCage API key directly, especially in web3/DeFi agent workflows where x402 micropayments are already integrated. It is ideal for low-volume, sporadic geocoding needs where a monthly subscription is not cost-effective.

## Known failure modes

- Insufficient USDC balance — x402 payment fails, request blocked
- Invalid path or query parameters forwarded to OpenCage — upstream 400 error
- OpenCage API key misconfigured on gateway side — upstream 401/403
- Rate limit exceeded on upstream OpenCage account — 429 response
- Malformed JSON body — gateway parse error
- Network timeout to upstream OpenCage API — 504 response

## How this service works

Every request, a quantum of value. x402 protocol-based payment endpoint for web3/DeFi tools.

## Output

The raw upstream OpenCage API response passed through after successful x402 micropayment, including geocoding results with coordinates, formatted address, country, confidence scores, and address components.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "body": {
   "type": "string",
   "description": "Optional JSON body forwarded to POST requests."
  },
  "path": {
   "type": "string",
   "description": "Path below the selected upstream origin."
  },
  "query": {
   "type": "object"
  },
  "method": {
   "enum": [
    "GET",
    "POST"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "description": "The upstream response body and content type are passed through after successful payment."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quantaflow-opencage-geocoding-gateway-x402-f5e01b6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quanta-roan.vercel.app](https://www.zero.xyz/host/quanta-roan.vercel.app/llms.txt)
