In the early construction of an underground gas storage facility in an oil and gas field in southwest China, the increasing gas injection volume led to a continuous rise in energy consumption, which affects the economic sustainability of gas injection and extraction. In order to improve efficiency and reduce energy consumption, optimization of the pressurization process was carried out. An optimization model for the process of pressurization in underground gas storage has been established. Based on the model, a joint optimization approach is applied, where MATLAB is responsible for the iterative process of finding the optimal parameter combinations and HYSYS is responsible for the establishment of the process and calculation of the results of the process parameters. The key parameters include the outlet parameters of the compressor and the air cooler, which are critical in determining the overall energy consumption and operational performance of the system. Accordingly, the results related to the optimal parameter combinations for two-stage compression and three-stage compression were obtained in the case study. Compared with one-stage compression, two-stage and three-stage compression can diminish energy consumption by 1,464,789 kJ/h and 2,177,319 kJ/h, respectively. The reduced rate of energy consumption of three-stage compression was 16.10%, which was higher than that of two-stage compression by 10.83%. Although the construction costs of three-stage compression were higher than those of two-stage compression, from the perspective of long-term operation, three-stage compression had lower operating costs and superior economy and applicable value. The research results provided scientific references and new ideas for the optimization and adjustment of the pressurization process in underground gas storage.