In this study, the Giant Trevally Optimizer (GTO) is employed to solve the probabilistic optimum power flow (P-OPF) issue, considering Renewable Energy Source (RES) uncertainties, achieving notable cost reduction. The objective function is established to minimize the overall generation cost, including the RES cost, which significantly surpassing existing solutions. The uncertain nature of the RES is represented through the employment of a Monte Carlo Simulation (MCS), strengthened by the K-means Clustering approach and the Elbow technique. Various cases are investigated, including various combinations of PV systems, WE systems, and both fixed and fluctuating loads. The study demonstrates that while considering the costs of solar, wind, or both might slightly increase the total generation cost, the cumulative generation cost remains significantly less than the scenario that does not consider the cost of RESs. The superior outcomes presented in this research underline the importance of considering RES costs, providing a more accurate representation of real-world system dynamics and enabling more effective decision making.