Considering the specific wind and photovoltaic power characteristics of a certain region, this study investigates the optimal ratio of Alkaline Electrolysis Cells (AEL) to Proton Exchange Membrane (PEM) electrolyzers in a hybrid electrolysis system for hydrogen production. A flexible model for configuring the hybrid electrolysis system is proposed, based on a copula function for joint wind and solar power modeling. This model generates wind and photovoltaic power generation scenarios using the copula function, incorporating a selection mechanism to ensure that the output scenarios are more representative of the actual data characteristics of wind and photovoltaic power output. Consequently, considering both the fluctuation and amplitude, the wind and photovoltaic power data are decomposed using the Ensemble empirical mode decomposition method. The decomposed components are then allocated to the two types of electrolyzers. Furthermore, the optimal configuration of the hybrid electrolysis system is determined by minimizing the costs associated with wasted power, electricity purchases, and other expenses. Finally, a case study of a 100 MW wind farm and a 50 MW photovoltaic power station in Northwest China is presented, concluding that the optimal configuration ratio of AEL to PEM electrolyzers is 2:1. In a Matlab/Simulink platform, the performance metrics of the hybrid electrolysis system were validated. It was found that the hydrogen production rate of the hybrid electrolyzer is comparable to that of the PEM electrolyzer, but with a lower required cost. Additionally, the hydrogen production rate and volume of the optimal configuration for the hybrid electrolyzer determined by the model proposed in this paper are higher than those obtained through the optimization algorithm's optimal configuration.