Catalyzes the reversible transfer of the terminal phosphate group between ATP and AMP. Exhibits nucleoside diphosphate kinase activity, catalyzing the production of ATP, CTP, GTP, UTP, dATP, dCTP, dGTP and dTTP from the corresponding diphosphate substrates with either ATP or GTP as phosphate donor.