Buy credits
credits_buyStarts a card payment for amountUsd of generation credit and returns a hosted checkout URL for a person to open. The credit lands once the payment clears, usually within seconds of paying. 412 while card purchases aren't open (purchasesEnabled is false on credits.me).
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": {
"amountUsd": "<amountUsd>"
},
"name": "credits_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountUsd | Yes | Whole dollars of credit to buy, 5–500. One dollar paid is one dollar of credit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |