IV medications are given for a few days for acute pain. This type of medication works quickly, but only lasts for a short period of time. These may also cause nausea and vomiting, which can be controlled with other medications.