The mechanism that requires energy from the options provided is exocytosis.
Exocytosis is an active process that involves the transport of materials out of a cell through the fusion of vesicles with the plasma membrane, which requires energy in the form of ATP.
In contrast, diffusion (including the diffusion of ions and gases like oxygen) and osmosis are passive processes that do not require energy.