# ScanPay Credits Purchase

> ScanPay Credits Purchase is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $5/call, status unknown (last checked 2026-11-02).

Purchase a ScanPay API credit pack via x402 payment, receiving an API key and scan quota for pay-per-call access to AI and crypto tools

## Facts

- Endpoint: POST https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/credits?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanpay-credits-purchase-5160ad1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2JtBxxHoRZCy5XJWowR-R

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 scanpay-credits-purchase-5160ad1d -d '<json body>'
```

Example prompt: I want to buy a ScanPay credits pack so I can start making pay-per-call API requests — pay $5 USDC on Base and give me back the API key and how many scans I get.

## When to prefer this

Use this endpoint when an AI agent needs to bootstrap frictionless, no-signup access to ScanPay's suite of pay-per-call APIs (LLM inference, crypto data, Solana auditing, web search). It is ideal for fully autonomous agent workflows that can execute x402 USDC micropayments on Base or Solana and need to self-provision credentials without human-initiated OAuth or API key registration flows.

## Known failure modes

- Payment not received or x402 flow incomplete — no key issued
- Insufficient USDC balance on Base or Solana wallet — payment rejected
- Malformed POST body (missing required `input` fields) — 400 validation error
- Network error on Cloudflare Worker edge — 5xx timeout or unavailability
- Duplicate payment detection — idempotency not guaranteed, may not re-issue key

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object containing the issued API key (`api_key`), number of scans provisioned (`scans`), the product identifier (`product`: `scanpay.credits`), price in USD (`price_usd`: 5), and usage instructions including the header name and endpoint to use the key (`usage.header`, `usage.endpoint`).

## 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",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "scans": 200,
  "usage": {
   "header": "X-API-Key",
   "endpoint": "POST /api/v1/key/scan"
  },
  "api_key": "<issued-api-key>",
  "product": "scanpay.credits",
  "price_usd": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanpay-credits-purchase-5160ad1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
