The present invention relates to the technical field of printing equipment, in particular to a 3D printer, comprising an underframe, a power device and a printing device are provided on the top of the underframe, the printing device includes a booster, and a bottom of the booster is provided with A heater, the bottom of the heater is provided with a spray head, the top of the booster is connected with a feed port, the inside of the feed port is slidably connected with a material pipe, and the outer surface of the spray head is evenly arrayed with a plurality of A coolant tank, a fan-shaped fan is arranged between the adjacent coolant tanks. The device cooperates with fan fan, coolant tank, ring box, solenoid valve and heat-resistant elastic end to jointly solve the problems of high temperature, fan vibration, fixed-point cooling and increased printing wall thickness in the device. The material is cooled quickly and efficiently at a fixed point, and the opening shape and size of the heat-resistant elastic end can be changed according to the change of the wall thickness to adapt to the printing thickness, and the rapid cooling position and efficiency can be changed according to the printing thickness adaptation.