This article focuses principally on the comparison baseline and the optimized flow efficiency of the final stage of an axial turbine operating on a gas–steam mixture by applying a hybrid Nelder–Mead and the particle swarm optimization method. Optimization algorithms are combined with CFD calculations to determine the flowpaths and thermodynamic parameters. The working fluid in this study is a mixture of steam and gas produced in a wet combustion chamber, therefore the new turbine type is currently undergoing theoretical research. The purpose of this work is to redesign and examine the last stage of the gas–steam turbine’s flow characteristics. Among the optimized variables, there are parameters characterizing the shape of the endwall contours within the rotor domain. The values of the maximized objective function, which is the isentropic efficiency of the turbine stage, are found from the 3D RANS computation of the flowpath geometry changing during the improvement scheme. The optimization process allows the stage efficiency to be increased by almost 4 percentage points. To achieve high-quality results, a mesh of over 20 million elements is used, where the percentage error in efficiency between the previous and current mesh sizes drops below 0.05%.