# X Pay Payment Quote

> X Pay Payment Quote is a paid API for AI agents from www.api-xpay.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns a payment quote including amount, asset (USDC), network, and merchant wallet address for an x402 pay-per-request API call

## Facts

- Endpoint: GET https://www.api-xpay.com/x402/quote?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-pay-payment-quote-27fbc733
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uM5TaN0jeJhcE7k3CXT_S

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 x-pay-payment-quote-27fbc733
```

Example prompt: Before I submit the USDC payment, can you get me an X Pay quote for a GET request so I know the exact amount, wallet address, and network I need to send to on Base?

## When to prefer this

Use this endpoint when you need to retrieve current x402 payment parameters (amount, wallet address, network) before executing a micropayment for an X Pay API call. Prefer this over hardcoding payment values, as it ensures you have the latest quote and correct routing details. Ideal for automated agents building x402-compliant payment flows on Base with USDC.

## Known failure modes

- Missing or invalid 'input' object returns a 400 validation error
- Invalid HTTP method value (only GET, HEAD, DELETE allowed) returns a schema validation error
- Network or service downtime returns a 503 or connection error
- Malformed query parameters may result in unexpected quote response

## How this service works

Payment quote with amount, asset, and merchant wallet

## Output

Returns a JSON object containing: quote (with asset, payTo wallet address, USDC amount, Base network, x402 protocol, and requestId), service name, and a success boolean. The quote object provides all parameters needed to construct a valid x402 payment.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "quote": {
   "asset": "USDC",
   "payTo": "0x589a2314a2E05F45e40C4823Da3Ba58D421dB3d8",
   "amount": "0.005",
   "network": "base",
   "protocol": "x402",
   "requestId": "req_abc123"
  },
  "service": "X Pay",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-pay-payment-quote-27fbc733/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.api-xpay.com](https://www.zero.xyz/host/www.api-xpay.com/llms.txt)
