{"agent_payments":"https://api.loopxxi.com/.well-known/agent-payments.json","api_base":"https://api.loopxxi.com/v1","clients":{"bolthub":{"client":"L402Client","kind":"sdk","note":"BoltHub L402Client / @bolthub/pay. Same L402 rail as lnget. Check available before paying.","source":"https://docs.bolthub.ai/docs/sdks/pay"},"lnget":{"kind":"cli","note":"Lightning Labs lnget. L402 HTTP client. Read l402.available before paying. Preferred first purchase is still prepaid POST /v1/topup.","source":"https://github.com/lightninglabs/lightning-agent-tools"}},"description":"OpenAI-compatible AI inference operated by Loop XXI LLC. Preferred first purchase is prepaid Bitcoin Lightning: POST /v1/topup (min 5000 sats). Credit pays for API usage only. Bitcoin only. Per-call L402 is available and not preferred: unauthenticated POST /v1/chat/completions returns HTTP 402 with WWW-Authenticate: L402 (macaroon + invoice). Challenge amount is the estimated request cost (minimum 1 sat).","documentation":"https://api.loopxxi.com/llms.txt","endpoints":[{"available":true,"description":"OpenAI-compatible chat completions. Unauthenticated POST returns HTTP 402 L402 (macaroon + invoice) when the rail is available. Challenge is estimated request cost (minimum 1 sat). Preferred purchase is prepaid POST /v1/topup (min 5000 sats).","exampleRequest":{"max_tokens":16,"messages":[{"content":"ping","role":"user"}],"model":"openai/gpt-4o-mini"},"l402":true,"method":"POST","path":"/v1/chat/completions","preferred":false,"priceSats":1,"pricingModel":"per_request","title":"Chat completions"},{"available":true,"description":"Create a prepaid Lightning invoice. Minimum 5000 sats. Preferred first purchase (not an L402 challenge). Pay the BOLT11 from your wallet, then call /v1/chat/completions with the bearer token.","exampleRequest":{"amount_sats":5000},"l402":false,"method":"POST","min_amount_sats":5000,"path":"/v1/topup","preferred":true,"title":"Prepaid Lightning top-up"},{"available":true,"description":"Public GET, no bearer. Replace {payment_hash} with the top-up payment_hash. Returns payment_hash, amount_sats, status (pending|settled|expired|failed), settled, and optional expires_at. Unknown hashes return HTTP 404. Never returns the token, invoice, preimage, or balance. Unattended settle pays nothing. Poll GET /v1/topup/{payment_hash} until status=settled (or settled=true). status is one GET; wait-settled polls and exits non-zero on expired or failed. https://api.loopxxi.com/examples/agent-buy.sh status {payment_hash} or https://api.loopxxi.com/examples/agent-buy.sh wait-settled {payment_hash}.","l402":false,"method":"GET","path":"/v1/topup/{payment_hash}","preferred":false,"title":"Prepaid top-up settlement status"}],"gateway":"https://api.loopxxi.com","l402":{"available":true,"method":"POST","min_amount_sats":1,"note":"Pay-per-request L402 for lnget / BoltHub L402Client. Challenge amount is the estimated request cost (minimum 1 sat). Unauthenticated POST /v1/chat/completions returns HTTP 402 with WWW-Authenticate: L402 macaroon=\"...\", invoice=\"...\". Preferred first purchase is still prepaid POST /v1/topup.","preferred":false,"url":"https://api.loopxxi.com/v1/chat/completions"},"name":"Loop Gateway","notice":"Card checkout is closed. No new card session is created. Start with POST /v1/topup (prepaid Lightning). Check current rail availability before paying. A listed discovery URL is not proof that checkout or settlement is enabled. Credit buys API usage, not company ownership or treasury exposure. Unauthenticated chat completions return HTTP 402 L402; read payment.min_sats and payment_discovery.l402.min_amount_sats before paying a one-off invoice. That challenge is separate from card checkout, which is closed.","operator":"Loop XXI LLC","prepaid":{"available":true,"method":"POST","min_amount_sats":5000,"note":"POST /v1/topup with {\"amount_sats\":5000}. Optional opaque external_id is persisted for caller bookkeeping (not KYC). Preferred prepaid Lightning path.","preferred":true,"status_note":"Public GET, no bearer. Replace {payment_hash} with the top-up payment_hash. Returns payment_hash, amount_sats, status (pending|settled|expired|failed), settled, and optional expires_at. Unknown hashes return HTTP 404. Never returns the token, invoice, preimage, or balance. Unattended settle pays nothing. Poll GET /v1/topup/{payment_hash} until status=settled (or settled=true). status is one GET; wait-settled polls and exits non-zero on expired or failed. https://api.loopxxi.com/examples/agent-buy.sh status {payment_hash} or https://api.loopxxi.com/examples/agent-buy.sh wait-settled {payment_hash}.","status_url":"https://api.loopxxi.com/v1/topup/{payment_hash}","url":"https://api.loopxxi.com/v1/topup"},"protocol":"L402","purchase":"https://gateway.loopxxi.com/buy","recommended_payment":"lightning_prepaid","skill":"https://api.loopxxi.com/skills/loop-gateway/SKILL.md","tags":["ai","bitcoin","lightning"]}