Ambien (zolpidem) is a medication commonly prescribed for insomnia. Its half-life is about 2 to 3 hours, and it generally... moreAmbien (zolpidem) is a medication commonly prescribed for insomnia. Its half-life is about 2 to 3 hours, and it generally takes around 15 hours for the drug to be mostly eliminated from the body. Detection times vary by testing method; Urine Tests detect 1 to 2 days, Blood Tests Up to 24 hours, Saliva Tests up to 1 to 2 days, Hair Tests Up to 90 days.