# X Pay Pay-Per-Request Utility API (Slug)

> X Pay Pay-Per-Request Utility API (Slug) 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).

Executes a pay-per-request HTTP utility API call identified by a slug, settling $0.005 USDC on Base via the x402 payment protocol.

## Facts

- Endpoint: POST https://www.api-xpay.com/x402/slug?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-pay-per-request-utility-api-slug-cf28ab96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7NjF9BM6HzJcHs2zyBXvN

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-pay-per-request-utility-api-slug-cf28ab96 -d '<json body>'
```

Example prompt: Send a POST request with JSON body to the 'hello-world' slug on X Pay — it charges $0.005 USDC on Base per call — and return whatever the utility API responds with.

## When to prefer this

Choose this endpoint when you need to call a specific utility function identified by a slug that is gated behind a per-call micropayment in USDC on Base via the x402 protocol. Ideal for agentic workflows that must programmatically handle pay-per-request APIs without manual billing setup, especially when cost per call must stay at the $0.005 USDC level.

## Known failure modes

- Payment failure if wallet lacks sufficient USDC balance on Base
- Invalid or unknown slug returns error response
- Malformed request body or unsupported bodyType causes validation error
- Network congestion on Base may delay payment settlement
- Missing required fields (type, method, bodyType, body) causes schema validation failure

## How this service works

Pay-per-request utility APIs powered by x402 using USDC on Base.

## Output

Returns a JSON object confirming the slug that was called, the payment asset (USDC), the network (Base), and a success boolean indicating whether the utility execution and payment completed successfully.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "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": {
  "slug": "hello-world",
  "asset": "USDC",
  "network": "base",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-pay-pay-per-request-utility-api-slug-cf28ab96/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)
