Buy credits (one-time pack)
create_credit_checkoutCreate a Stripe Checkout URL for a one-time credit pack ($20 → 400 credits, no subscription). Show the checkout_url to the user so they can pay in the browser. After payment, credits appear on get_credit_balance — then retry the generation. Use when get_credit_balance is too low or a tool returns [insufficient_credits] / needsUpgrade.
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": "create_credit_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | Credit pack id (default starter_20: $20 / 400 credits). |