The exchange of OXYGEN and CARBON DIOXIDE between alveolar air and pulmonary capillary blood that occurs across the BLOOD-AIR BARRIER.