buy_credits
Get a machine-usable payment link to top up credits (requires your Bearer API key). method 'stripe' returns a card checkout_url; 'crypto' returns a BTC invoice_url + txn_id. Open/relay the URL to complete payment; credits land automatically afterwards — confirm with get_account.
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": {
"amount_usd": "<amount_usd>"
},
"name": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | default stripe (card) | |
| amount_usd | Yes | 1 to 10000 (USD) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | ||
| status | No | ||
| txn_id | No | ||
| amount_usd | No | ||
| invoice_url | No | ||
| checkout_url | No |