I don't remember the course of treatment off the top of my head, but it is documented on the package/bottle. It is given by mouth. There is no chance of harming them with either of these meds if your birds are not sick.
Sorry for your loss.
Good luck.