Mimicking the alveolar-capillary interface and subjected to fluid flow and cyclic mechanical strain, the microdevice successfully reproduces the pulmonary edema found in cancer patients undergoing interleukin-2 (IL-2) treatment. Here, IL2 is linked to cancer.