Previously, the Institute of Thermoelectricity has created Bi 2 Te 3 -based modules with an efficiency of $7% in the temperature range of 30°C to 300°C, with legs that employed homogeneous thermoelectric materials. Herein, we present the results of development of such modules with legs made of inhomogeneous materials. Based on the theory of optimal control and object-oriented computer technology, programs to determine the requirements for material properties in the inhomogeneous legs were created. It was established that introduction of inhomogeneity in the form of continuous and step changes in three-segment n-and p-type legs yields almost identical efficiency increases of about 15%. Use of two segments reduces this value of 10% to 12%. Modules with twosegment legs encapsulated in thin-walled metal cases filled with inert gas have been built, yielding improved efficiency of 7.8% to 8%.