In the rapidly evolving landscape of electrical power systems, optimal power flow (OPF) has become a key factor for efficient energy management, especially with the expanding integration of renewable energy sources (RESs) and Flexible AC Transmission System (FACTS) devices. These elements introduce significant challenges in managing OPF in power grids. Their inherent variability and complexity demand advanced optimization methods to determine the optimal settings that maintain efficient and stable power system operation. This paper introduces a multi-objective version of the Kepler optimization algorithm (KOA) based on the non-dominated sorting (NS) principle referred to as NSKOA to deal with the optimal power flow (OPF) optimization in the IEEE 57-bus power system. The methodology incorporates RES integration alongside multiple types of FACTS devices. The model offers flexibility in determining the size and optimal location of the static var compensator (SVC) and thyristor-controlled series capacitor (TCSC), considering the associated investment costs. Further enhancements were observed when combining the integration of FACTS devices and RESs to the network, achieving a reduction of 6.49% of power production cost and 1.31% from the total cost when considering their investment cost. Moreover, there is a reduction of 9.05% in real power losses (RPLs) and 69.5% in voltage deviations (TVD), while enhancing the voltage stability index (VSI) by approximately 26.80%. In addition to network performance improvement, emissions are reduced by 22.76%. Through extensive simulations and comparative analyses, the findings illustrate that the proposed approach effectively enhances system performance across a variety of operational conditions. The results underscore the significance of employing advanced techniques in modern power systems enhance overall grid resilience and stability.