The invention discloses a flat integrated harmonic speed reducer apparatus for a built-in electric motor, and aims to solve the problems of relatively large overall sizes of a speed reducer and a motor, and limited application range caused by the fact that the current motor is externally connected with the harmonic speed reducer generally. The flat integrated harmonic speed reducer apparatus comprises a front end cover, a back end cover, a motor stator, a stator coil, permanent magnetic steel, an integrated cam rotor, a first connecting bearing, a harmonic steel wheel, a flexible bearing, an integrated flexible wheel matched with the front end cover, and a crossed roller bearing, wherein the front end cover comprises an annular cover body, and a hollow connecting shaft connected with the annular cover body. According to the flat integrated harmonic speed reducer apparatus, the speed reducer cam and the motor rotor adopt the integrated design; the cam is directly driven by the motor rotor to turn, so that the equipment structure is effectively simplified, and the equipment cost is lowered; meanwhile, the apparatus adopts the flat design, so that the axial length of the speed reducer is effectively shortened; the phenomenon of insufficient axial installation space of the speed reducer can be solved; and the axial applicability of the product is improved.