The mechanism that requires energy is exocytosis.
In exocytosis, cells transport molecules out of the cell via vesicles that fuse with the plasma membrane, a process that requires cellular energy (ATP).
The other mechanisms mentioned—diffusion of oxygen into a red blood cell, diffusion of ions through a potassium channel, and osmosis—are passive processes that do not require energy.