The invention relates to a device and method for filling a container with material, and provides a device and method for metal filling, in order to solve the metal filling problem of a single-port thin pipe and ensure a good filling effect. The device for metal filling comprises a storage tank, a filling pipeline, a vacuumizing pipeline, an air inlet pipe, an air inlet valve, an exhaust valve and a vacuumizing valve, wherein a heating module is arranged at the outer part of the storage tank; a heating wire is arranged at the outer part of the filling pipeline. The method for metal filling comprises the following steps: (1), pouring metal into the storage tank and solidifying; (2), connecting a single-port thin pipe to be filled; (3), heating the corresponding structure to above the melting point of the metal to be poured; (4), feeding inert gas to pour the metal. According to the device and the method for metal filling, the metal filling problem of the single-port thin pipe can be solved, in the filling process, the metal is prevented from being oxidized and polluted, and no air column and bubble is generated, quantitative filling is easy to implement, the filling accuracy is high, the repeatability is excellent, and a higher cost of adopting a special valve is avoided.