Virtual power plants (VPPs) have emerged as an innovative solution for modern power systems, particularly for integrating renewable energy sources. This study proposes a novel prediction approach combining improved K-means clustering with Time Convolutional Networks (TCNs), a Bi-directional Gated Recurrent Unit (BiGRU), and an attention mechanism to enhance the forecasting accuracy of wind and photovoltaic power generation in VPPs. The proposed TCN-BiGRU-Attention model demonstrates superior predictive performance compared to traditional models, achieving high accuracy and robustness. These results provide a reliable basis for optimizing VPP operations and integrating renewable energy sources effectively.