# EIP-681 Crypto Payment Link Generator

> EIP-681 Crypto Payment Link Generator is a paid API for AI agents from agent-api-task.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates an EIP-681 payment URI for end-user wallets, with optional BotPay vending mode, paid per-call via x402 micro-fee.

## Facts

- Endpoint: POST https://agent-api-task.vercel.app/agent/v1/vending/create-payment-link
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eip-681-crypto-payment-link-generator-a280abf6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wZPJrzTUqmkEOWSwVEImg

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 eip-681-crypto-payment-link-generator-a280abf6 -d '<json body>'
```

Example prompt: Create an EIP-681 payment link in generic mode so my customer can pay 1.00 USDC to my wallet 0xAbC1234...5678 on Base network — tag it with session ID order-9921.

## When to prefer this

Use this endpoint when you need to programmatically generate EIP-681-compliant payment URIs for end-user wallets on Base (USDC) or BSC (USDT), especially when building checkout flows, vending machines, or invoice systems that need on-chain-encoded payment requests. Prefer the botpay mode when integrating with BotPay vending infrastructure for FX conversion or managed payment routing.

## Known failure modes

- Invalid or missing payTo address with no server-side DEFAULT_PAY_TO fallback — returns error
- Unsupported network value (not 'base' or 'bsc') — schema validation failure
- Invalid ERC-20 token contract address format — malformed URI or error response
- x402 micro-fee payment failure — request rejected before processing
- Amount value is non-numeric or negative — encoding error
- BotPay infrastructure unavailable in botpay mode — upstream error

## How this service works

Generate an EIP-681 crypto payment link for end-user wallets. Agent pays a micro-fee via x402. Generic mode: pass payTo and token in the body. Optional mode=botpay uses BotPay vending infrastructure.

## Output

Returns an EIP-681 payment URI string that encodes the recipient address, ERC-20 token contract, amount (in token smallest units), and network — ready to embed in a QR code or shared directly with an end-user wallet app. May include a BotPay vending proxy URI if mode=botpay.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "generic",
    "botpay"
   ],
   "type": "string",
   "description": "generic=EIP-681 builder; botpay=BotPay vending payment-uri proxy"
  },
  "payTo": {
   "type": "string",
   "description": "Merchant recipient (0x) for product payment. Not the x402 API fee recipient. Falls back to server DEFAULT_PAY_TO."
  },
  "token": {
   "type": "string",
   "description": "ERC-20 contract address (which coin). Does NOT identify product type. Default: USDC on base, USDT on bsc."
  },
  "amount": {
   "type": "string",
   "description": "Payment amount only (e.g. \"1.00\"). Not a product SKU. Encoded on-chain as token smallest units."
  },
  "network": {
   "enum": [
    "base",
    "bsc"
   ],
   "type": "string",
   "description": "Blockchain for end-user payment. base=USDC, bsc=USDT by default."
  },
  "currency": {
   "enum": [
    "USD",
    "SGD",
    "CNY"
   ],
   "type": "string",
   "description": "Informational in generic mode. Does not select product. Botpay mode may use for FX conversion."
  },
  "sessionId": {
   "type": "string",
   "description": "Optional business order id. Link off-chain product info to this id; not embedded in the payment URI."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eip-681-crypto-payment-link-generator-a280abf6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-api-task.vercel.app](https://www.zero.xyz/host/agent-api-task.vercel.app/llms.txt)
