Mint API Key or Top Up Prepaid Credits
topup_creditsDeposit prepaid credits into an API key or mint a new one ($1-$500 USD) when credits run out or a new session needs credentials. Returns updated balance and key details.
Instructions
Deposit prepaid credits into an existing API key or mint a new key ($1.00 USD minimum, $500.00 max). State-mutating operation that creates or updates database credentials. Requires no prior authentication. Pass 'api_key' to top up an existing key, or omit 'api_key' to mint a fresh key. Returns generated or updated key details and balance in USD. WHEN TO USE: Use when an existing key has exhausted credits, or when a new agent session requires dedicated credentials. WHEN NOT TO USE: Do not use solely to inspect an existing balance without depositing funds; use 'check_balance' instead. ALTERNATIVES: Use 'check_balance' for read-only balance verification without adding credits.
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": {
"amount_usd": "<amount_usd>"
},
"name": "topup_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional existing 'fc_live_...' key to top up. If omitted, mints and returns a fresh API key. | |
| amount_usd | Yes | Amount to deposit in USD (minimum 1.00, maximum 500.00, e.g. 5.00). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The newly minted API key (only present when creating a new key) | |
| message | Yes | Status confirmation message | |
| success | No | Whether the credit top-up succeeded | |
| balance_usd | Yes | Updated credit balance in USD |