buy_credits
Buy more credits for your API key. Returns a Stripe Checkout link for 1 to 10 credit packs, already tied to this key's account, so no sign-in is needed. Calling this charges nothing: open the link in a browser if you can, or give it to the user, and the user completes the payment there with a card or Stripe Link. The credits are added to this key within seconds of payment; call check_credits to confirm. The result gives the purchase's credits and price. Costs no credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packs | No | How many credit packs to buy, 1 to 10. Defaults to 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packs | Yes | Credit packs in this purchase. | |
| credits | Yes | Credits added to the API key once paid. | |
| priceUSD | Yes | Total price in US dollars. | |
| expiresAt | Yes | When the checkout link stops working (RFC 3339). | |
| checkoutURL | Yes | Stripe Checkout link that completes the purchase. |