# aipp — One Price Tag for Humans and Agents > aipp (aipp.dev) is a lightweight, zero-subscription protocol that turns any URL, file, AI prompt output, or API endpoint into a Smart Tag. It supports dual-rail micro-payments via Bitcoin Lightning Network (sats) and Base USDC ($), automatically forwarding payments to merchant wallets with HTTP 402 challenge support for AI agents. ## Permanent Live Agent Test Endpoint A permanent production Smart Tag is available for autonomous integration testing: ```text https://aipp.dev/t/demo ``` - **Human URL**: `GET https://aipp.dev/t/demo` (`Accept: text/html`) - **Agent Manifest**: `GET https://aipp.dev/t/demo/manifest` (`Accept: application/json`) - **HTTP 402 Challenge**: `GET https://aipp.dev/t/demo/content` (returns 402 Payment Required with L402 invoice & Base USDC parameters without requiring an API key). This endpoint uses the real production Smart Tag pipeline ($0.01 test price). Agents may inspect the manifest and HTTP 402 challenge without paying. To create a payable invoice from a Smart Tag (no API key required for the demo tag): ```bash # Lightning (L402) — returns a real BOLT11 payment_request curl -X POST https://aipp.dev/t/demo/invoice -H "Content-Type: application/json" -d '{"mode":"L402"}' # Base USDC (x402) — returns pay_to / network / token / payment_hash curl -X POST https://aipp.dev/t/demo/invoice -H "Content-Type: application/json" -d '{"mode":"X402"}' ``` The field is `mode` (`"L402" | "X402" | "DUAL"`); the alias `protocol` is also accepted. ## Quick Start (Minimal Implementation) To wrap any URL or API endpoint into a paid Smart Tag via cURL: ```bash curl -X POST https://aipp.dev/merchant/links/create \ -H "X-Api-Key: YOUR_MERCHANT_KEY" \ -H "Content-Type: application/json" \ -d '{"title": "Exclusive Research PDF", "amount_usd": 0.25, "redirect_url": "https://example.com/file.pdf", "capability_type": "link"}' ``` To register a free merchant key in 1 step: ```bash curl -X POST https://aipp.dev/merchant/register \ -H "Content-Type: application/json" \ -d '{"ln_address": "your_name@walletofsatoshi.com", "usdc_address": "0x00b18f645a3e40802809ff59cb9AAB2225703eeE"}' ``` ## Key Features for AI Agents & Developers - **HTTP 402 Payment Challenge**: Standardized `402 Payment Required` headers containing payment invoice/challenge, enabling autonomous AI agents (Claude, Gemini, OpenAI, LangChain, AutoGPT) to parse price, settle payments, and consume capabilities programmatically. - **Dual-Rail Micro-Payments**: - Bitcoin Lightning Network (sats) via Lightning Address (e.g., `user@walletofsatoshi.com`) with 3% + 5 sats fee. - Base Layer-2 Blockchain (USDC) via EVM wallet address (`0x...`) with 3% fee ($0.001 minimum fee, Chain ID 8453, contract `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`). - **Smart Tag Manifest**: Machine-readable JSON manifest at `https://aipp.dev/t//manifest` detailing pricing, capabilities, schema, and settlement options. - **Automated Wallet Forwarding**: aipp does not maintain merchant balances. Payments are automatically forwarded to the merchant's configured wallet. ## Developer SDKs & Code Examples ### Node.js / TypeScript ```bash npm install aipp-sdk ``` ```typescript import { Aipp } from 'aipp-sdk'; const aipp = new Aipp({ apiKey: 'aipp_merch_...' }); const tag = await aipp.createLink({ title: 'AI Market Research Report PDF', amount_usd: 0.50, redirect_url: 'https://storage.example.com/report.pdf', capability_type: 'link' }); console.log('Smart Tag Checkout URL:', tag.url); console.log('Agent Manifest URL:', tag.manifest_url); ``` ### Python ```bash pip install aipp-sdk ``` ```python from aipp import Aipp client = Aipp(api_key="aipp_merch_...") tag = client.create_link( title="Prompt Generation API", amount_usd=0.05, capability_type="api" ) print("Smart Tag URL:", tag.url) ``` ## API Endpoint References - `POST https://aipp.dev/merchant/register` — Register a merchant payout wallet (`ln_address`, `usdc_address`). Returns `api_key`. - `POST https://aipp.dev/merchant/links/create` — Create a new Smart Tag (`X-Api-Key` header required). - `GET https://aipp.dev/t/` — Human checkout & web paywall. - `GET https://aipp.dev/t//manifest` — Machine-readable AI Agent manifest (JSON format with HTTP 402 challenge headers). - `GET https://aipp.dev/t//content` — Protected content / HTTP 402 challenge endpoint. - `GET https://aipp.dev/invoice/status/` — Poll settlement status of an invoice (also `GET https://aipp.dev/t//unlock/` to unlock). ## Links & Additional Context - [Live Permanent Demo Tag](https://aipp.dev/t/demo) - [Full Developer Documentation](https://aipp.dev/docs.html) - [Comprehensive LLM Spec](https://aipp.dev/llms-full.txt) - [XML Sitemap](https://aipp.dev/sitemap.xml)