Buy Fermi credits
buy_creditsCost: charges the saved card $0.50 per credit (see GET /api/v1/billing/pricing).
Purchase credits using a saved payment method (off-session).
Requires a prior Stripe Checkout session to have saved a card.
Credits are $0.50 each. Use GET /api/v1/billing/pricing to confirm
the current price.
Args:
credits: Number of credits to purchase (minimum 1).
api_key: Your Fermi API key from POST /api/v1/accounts. Required.
Returns:
Dict with credits_purchased, new_balance, and payment_status, plus
the `billing` block every Fermi tool response carries. Its
`credit_balance` is the POST-purchase balance, and `charged_to` is
"none": this call spends money, not credits.
Raises:
ToolError: if authentication fails, no payment method is on file,
or the card is declined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| credits | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||