buy_credits
Start a credit purchase: returns a checkout URL for the user to open and pay in their browser (get tier ids from get_pricing_tiers). Credits never expire. Requires auth.
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": {
"pricing_tier_id": "<pricing_tier_id>"
},
"name": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancel_url | No | Where to send the user if they cancel | |
| success_url | No | Where to send the user after paying (default airgallery.com/credits) | |
| pricing_tier_id | Yes | Tier id from get_pricing_tiers |