The invention relates to an automatic intelligent compounding machine for injection medicine, comprising a base, a liquid shaking mechanism capable of shaking the liquid medicine in a vial, a medicine bottle clamping mechanism capable of clamping and fixing the vial, a syringe pumping mechanism, and a mechanism capable of dispensing the vial. The automatic bottle return mechanism for the bottle to exit from the medicine bottle holding mechanism, the electrical part and the mother liquid container holding mechanism, the liquid shaking mechanism is fixedly installed on the top of the base, the medicine bottle holding mechanism is installed on the liquid shaking mechanism, and the needle The cylinder pumping mechanism draws out the infusion base liquid in the mother solution container, and injects it into the vial, after being shaken evenly by the liquid shaking mechanism, the syringe pumping mechanism draws out the drug solution in the vial, and refills it into the mother solution container Inside. The advantages of the present invention are: the size of the equipment is small, it can replace the automatic equipment for manual dispensing by nurses, reduce the labor intensity of nurses, and avoid occupational injuries. The use of electrical control can standardize the dispensing process and improve work efficiency. Each nurse can manage two Up to three machines, saving at least 50% labor.