# LION Credits Purchase (x402 Keyless)

> LION Credits Purchase (x402 Keyless) is a paid API for AI agents from lion-x402.lionmaster-operations.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Purchases a LION session credit bundle via x402 micropayment, returning a session token and credit balance usable for subsequent keyless data/RPC calls

## Facts

- Endpoint: GET https://lion-x402.lionmaster-operations.workers.dev/api/x402/credits-purchase-json
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-credits-purchase-x402-keyless-e82730ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wySaN92l1WdG6oARTqJbK

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 lion-credits-purchase-x402-keyless-e82730ce
```

Example prompt: Purchase a LION credits session for me using x402 — pay $0.10 in USDC on Base so I can get a session token and start making keyless data and RPC calls without needing an API key.

## When to prefer this

Use this endpoint when an AI agent needs to bootstrap keyless access to LION's off-chain and on-chain data or RPC endpoints. It is the entry point for any LION session: pay once in USDC on Base via x402, receive a session token, and use that token for all subsequent LION API calls without registering or managing API keys. Prefer this over traditional API-key-based data providers when operating in a crypto-native, agent-first environment where programmatic micropayments are available.

## Known failure modes

- Payment not received or insufficient USDC — x402 payment handshake fails, 402 response returned
- Payment on wrong chain (not Base) — transaction rejected
- Session token not returned if payment confirmation times out
- Duplicate payment attempt may create a new session rather than topping up existing one

## How this service works

Keyless off-chain and on-chain data for AI agents. No API key, no signup - payment is the only gate. Pay-per-call in USDC on Base via x402.

## Output

Returns a JSON object with an asset_id (e.g. CREDITS_PURCHASE_001), balance_micro indicating the purchased credit balance in micro-units (e.g. 100000), and a session_token (lct_...) that can be used to authenticate subsequent LION data/RPC calls without a traditional API key.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "pack": {
       "type": "string",
       "description": "USD pack size e.g. 0.10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset_id": "CREDITS_PURCHASE_001",
  "balance_micro": "100000",
  "session_token": "lct_..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-credits-purchase-x402-keyless-e82730ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lion-x402.lionmaster-operations.workers.dev](https://www.zero.xyz/host/lion-x402.lionmaster-operations.workers.dev/llms.txt)
