Cefotaxime is usually administered via intravenous (IV) or intramuscular (IM) injection. The dosage and duration depend on the severity of the infection, the patient's age, weight, and renal function. For instance, in treating severe PID, a common dosage might be 1-2 grams every 8 hours.