curl "https://api.magpipe.ai/functions/v1/get-credits-info" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"credits_balance": 45.23,
"credits_used_this_period": 74.77,
"has_payment_method": true,
"auto_recharge_enabled": true,
"auto_recharge_amount": 50.00,
"auto_recharge_threshold": 5.00,
"received_signup_bonus": true
}
Billing
Get Credit Balance
Get current credit balance and billing information
GET
/
get-credits-info
curl "https://api.magpipe.ai/functions/v1/get-credits-info" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"credits_balance": 45.23,
"credits_used_this_period": 74.77,
"has_payment_method": true,
"auto_recharge_enabled": true,
"auto_recharge_amount": 50.00,
"auto_recharge_threshold": 5.00,
"received_signup_bonus": true
}
Retrieve the current user’s credit balance, usage, and auto-recharge settings.
Response
Whether the account received the welcome bonus (discontinued November 2026; always
false for newer accounts)curl "https://api.magpipe.ai/functions/v1/get-credits-info" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"credits_balance": 45.23,
"credits_used_this_period": 74.77,
"has_payment_method": true,
"auto_recharge_enabled": true,
"auto_recharge_amount": 50.00,
"auto_recharge_threshold": 5.00,
"received_signup_bonus": true
}