Buy Credits
buy_creditsGet a Stripe checkout link for this account. When a render cannot be covered, offer a $5 top-up first (amountUsd 5), and the monthly plans (basic $12 → 1,500 credits/mo, pro $29 → 3,500, creator $125 → 17,000) second. A top-up result with no plan on the account also lists the plans, to mention after checkoutUrl. Either a one-off top-up (amountUsd, a whole number from 5 to 500, or packId "starter" ($10) / "pro" ($25); purchased credits never expire) or a monthly plan ("basic" | "pro" | "creator"), interval "month" or "year" (about 20% off). Plan credits refresh monthly and expire at the end of each month, and the plan renews until the user cancels. 1 credit = 1¢ of the provider's list price; no markup. For a plan, say what it renews at. Ask the user first: it renews until they cancel. Then give them the link. Pay it yourself only if the user approved the recurring charge and your card allows it; a one-time card fails at the first renewal. If you can pay a top-up on websites, open the link and pay; otherwise give it to the user. Credits arrive within a minute of payment; call get_account to confirm. Creating the link costs nothing.
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 |
|---|---|---|---|
| plan | No | A monthly plan instead of a top-up: basic $12, pro $29, creator $125 a month. | |
| packId | No | starter = $10, pro = $25. Default starter. | |
| interval | No | Plan billing. Yearly is about 20% off. Default month. | |
| amountUsd | No | Dollars of credit to buy (whole number, 5–500). Overrides packId. | |
| promoCode | No | Only if the user gave you a Varosity promo code. Top-ups only, not plans. |