ApiAi account
Create a Lightning topup invoice for AI credits
POST
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
amountSats*numberSats to top up. The Lightning invoice is created for exactly this amount; on payment the balance is credited amount + bonus (default +5%).
Range
100 <= value <= 10000000BOLT11 invoice created
curl -X POST 'http://localhost:3001/api/v1/ai/topup' \ -H 'Content-Type: application/json' \ -d '{ "amountSats": 5000}'Example Response201
Empty