The present invention pertains to a device (1) for ventilating a patient, including an invasive mechanical ventilator (2) for periodically providing a breathing gas to an invasive patient interface (20), wherein a gas injector (4) for injecting nitric oxide supplied by a source of nitric oxide (3) into the breathing gas supplied by the invasive mechanical ventilator (2) is provided.La présente invention concerne un dispositif (1) destiné à ventiler un patient, comprenant un ventilateur mécanique invasif (2) pour la fourniture périodique dun gaz respiratoire à une interface patient invasive (20), un injecteur de gaz (4) pour linjection doxyde nitrique fourni par une source doxyde nitrique (3) dans le gaz respiratoire fourni par le ventilateur mécanique invasif (2) étant prévu.