A metered dose inhaler, or MDI, is a small aerosol canister that holds medicine. A mouthpiece is attached to the canister. The inhaler is small enough to fit inside a pocket. Some MDIs release the medicine when you push the canister into the mouthpiece. Other MDIs release it when you inhale.