Xanax is a branded version of the generic drug alprazolam, a benzodiazepine prescribed to treat anxiety and panic disorders.