Optimization of the controller in a generator can improve system performance. The right parameter optimization is needed to get the optimal performance from the controller. The application of the artificial intelligence method as a parameter optimization method is proposed in this study. By using the smart method based on Ant Colony, the optimal PSS-PID parameters are obtained. With optimal tuning, the system gets optimal Single Machine Infinite Bus (SMIB) system frequency and rotor angle response, indicated by the minimum overshot system response. The SMIB system's stability will be tested. A case study of adding and reducing loads is used, with the proposed control method PSS-PID being optimized using Ant Colony. Based on the analysis using the proposed PSS-PID control, we get the minimum overshoot for the frequency response and rotor angle of the SMIB system. When the load changes at 20 seconds, using the PSS-PID control scheme, the minimum overshoot is -4.316e-06 to 7.598e-05 pu with a settling time of 22.01s. For the rotor angle overshoot response, using the PSS-PID control scheme, the minimum overshoot is -0.01113 to -0.009669 pu with a settling time of 22.36s.