get_token
Exchange a paid create_topup charge_id for an lnpx_ spend token, enabling pay-per-request access to Claude and GPT models; repeat calls return the same token.
Instructions
After paying a create_topup invoice, exchange its charge_id for the lnpx_ spend token. Safe to call again: it returns the same token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"charge_id": "<charge_id>"
},
"name": "get_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| charge_id | Yes | The charge_id returned by create_topup. |