In laser beam processing, the angle or offset between the auxiliary gas and the laser beam axis have been proved to be two new process optimization parameters for improving cutting speed and quality. However, a traditional electromechanical actuator cannot achieve high-speed and high-precision motion control with a compact structure. This paper proposes a magnetic levitation actuator which could realize the 5-DOF motion control of a lens using six groups of differential electromagnets. At first, the nonlinear characteristic of a magnetic driving force was analyzed by establishing an analytical model and finite element calculation. Then, the dynamic model of the magnetic levitation actuator was established using the Taylor series. And the mathematical relationship between the detected distance and five-degree-of-freedom was determined. Next, the centralized control system based on PID control was designed. Finally, a driving test was carried out to verify the five-degrees-of-freedom motion of the proposed electromagnetic levitation actuator. The results show it can achieve a stable levitation and precision positioning with a desired command motion. It also proves that the proposed magnetic levitation actuator has the potential application in an off-axis laser cutting machine tool.