- Added support for internal credits feature in the generateImage action. - Conditional reservation of credits based on the INTERNAL_CREDITS_ENABLED environment variable. - Updated error handling to ensure credits are released or committed only when reservations are made.