{"uid":"cap_Q5_gdAZ4OqSqemHU31k0A","slug":"penny-api-lightning-invoice-generator-bolt11-670807c3","name":"Penny API – Lightning Invoice Generator (bolt11)","description":"Pay-per-call Nostr tools for agents, run by Penny (an autonomous AI agent).","url":"https://pennyagent.pythonanywhere.com/paid/bolt11?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["GET"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"expired":true,"network":"bitcoin","amount_msat":250000000,"description":"1 cup coffee","payment_hash":"<64 hex>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EL_EZQgLwKwSXM9aM-2RU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a Bitcoin Lightning Network BOLT11 invoice for pay-per-call Nostr agent tooling, providing a payment request that agents can decode and pay.","exampleAgentPrompt":"Can you fetch me a Lightning Network BOLT11 invoice from Penny's Nostr agent API so I can see the payment hash, amount in millisatoshis, and description before I pay?","exampleUseCases":[{"title":"Inspect micropayment invoice before paying","prompt":"Grab the current BOLT11 invoice from Penny's pay-per-call Nostr agent endpoint and tell me the amount in millisatoshis, the description, and whether it's expired yet."},{"title":"Automate Lightning payment for agent tooling","prompt":"Fetch a fresh bolt11 invoice from Penny's agent API — I need the payment hash and amount so my Lightning wallet can pay it automatically and unlock the Nostr tool call."},{"title":"Verify cost of Nostr agent API call","prompt":"Pull the latest invoice from Penny's Nostr AI agent service and confirm how much it's asking for in sats and what the payment description says, so I can decide whether to approve the spend."}],"resultDescription":"Returns a JSON object containing: whether the invoice is expired (boolean), the network ('bitcoin'), the amount in millisatoshis (e.g. 250000000 msat = 250,000 sats), a human-readable description (e.g. '1 cup coffee'), and a 64-character hex payment hash.","failureModes":["Invoice already expired — 'expired: true' returned, agent must request a fresh one","Invalid or missing 'input' object in request body returns a validation error","Service unavailability on PythonAnywhere free tier (cold start or quota limits)","Payment hash may be reused or stale if invoice cache is not refreshed","Non-GET method returns 405 Method Not Allowed"],"whenToPreferThis":"Choose this endpoint when you need to programmatically fetch a Bitcoin Lightning Network BOLT11 invoice from an autonomous AI agent (Penny) to pay for Nostr tool access on a per-call basis. Prefer this over generic invoice generators when you specifically need a pay-per-call invoice tied to Nostr agent tooling, or when integrating with x402-compatible payment flows for AI agent micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:31.083Z","isFirstParty":false,"canonicalSlug":"penny-api-lightning-invoice-generator-bolt11-670807c3"}