The purpose of the study is to demonstrate the safety and efficacy of ZTI-01 (IV fosfomycin) as non-inferior to piperacillin/tazobactam in overall success (clinical cure and microbiologic eradication) for the treatment of hospitalized patients with complicated urinary tract infections (cUTI) or acute pyelonephritis (AP).