Power extraction problem in the gasdynamic lasers is studied by developing a quasi-one-dimensional model. Flow variables and characteristic parameters of the 16 μm output beam are obtained by numerical calculations. It is shown numerically that this type of the gasdynamic lasers can deliver a large amount of energy in high repetition rate. Based on this model, the output energy of the laser is optimized by employing the variational method. The most important parameter, the optimal nozzle-shape, is obtained by defining the family of optimal shapes. It is shown that the supersonic part of each member of this family consists of an acceleration part, an uniformization part which is a curved surface and is smoothly connected to the first part, and a relaxation duct. Finally, numerical optimization with respect to several parameters is carried out.