One of the primary objectives of sustainable manufacturing is to minimize energy consumption in its manufacturing processes. A strategy of energy saving is to adapt new materials or new processes; but its implementation requires radical changes of the manufacturing system and usually a heavy initial investment. The other strategy is to optimize existing manufacturing processes from the perspective of energy saving. However, an explicit relational model between machining parameters and energy cost is required; while most of the works in this field treat the manufacturing processes as black or gray boxes. In this paper, analytical energy modeling for the explicit relations of machining parameters and energy consumption is investigated, and the modeling method is based on the kinematic and dynamic behaviors of chosen machine tools. The developed model is applied to optimize the machine setup for energy saving. A new parallel kinematic machine Exechon is used to demonstrate the procedure of energy modeling. The simulation results indicate that the optimization can result in 67% energy saving for the specific drilling operation of the given machine tool. This approach can be extended and applied to other machines to establish their energy models for sustainable manufacturing.