What is nitric oxide? Nitric oxide is a gas that is inhaled. It works by relaxing smooth muscle to widen (dilate) blood vessels, especially in the lungs. Nitric oxide is used together with a breathing machine (ventilator) to treat respiratory failure in premature babies. Your baby will receive this medication in a neonatal intensive care unit (NICU) or similar hospital setting.