In this paper, an enhanced 0.5 kW Z-source inverter (ZSI) model is used in the design of a wind energy generating system (WEGS) that uses a 1.2 kW wind turbine to overcome the operating restrictions of the traditional ZSI model. To achieve a constant line-to-line voltage with varying loads at the output side of the WEGS, a closed-loop control technique is applied at the load side. A proportional-integral (PI) controller is utilised with the ZSI for closed-loop control since it is the least complicated in terms of tuning and operation. Also, ZSI systems have nonlinear behaviour, which precludes direct application of the PI controller technique to them. As a result, the novelty of this article is the optimisation of stabilised PI coefficients (Kp, Ki) with a modified ZSI model. Particle swarm optimisation (PSO), sine-cosine algorithm (SCA), and whale optimisation algorithm (WOA)-based optimisation techniques are used to handle PI tuning for closed-loop modified ZSI. In terms of the stability of the closed-loop modified ZSI with WEGS, the WOA performs better. The outcomes show that the suggested controller can control the variation in AC output voltage of ZSI with variable load exactly.