Redeems a specific number of credits from a subscriber’s balance after a valid request.This is typically used by builders after validating a request signature.
// Authorize the user and process the AI request first// Then redeem credits after successful processingconst creditsToRedeem = 5nconst result = await payments.redeemCredits(planId, creditsToRedeem, proof)