I have severe depression and anxiety (and some other issues) to the point that I am on disability for it and cannot work. Mine is about 80% chemical . . . even when things are going wonderfully I can still have major depressive occurrences, but I have also had some major issues in my life that are also a factor. Prayer was not enough to keep my head above water, so I sought professional help and am now on several medications.
A few things to keep in mind when taking the medication route . . . first of all, there's no "test" to see which medication is going to work in your particular instance, so you have to be patient while they may need to try several different ones, and each trial can take a few weeks to see if it is working. Then, when they find one that works, it is not a "magic pill". You are still going to have SOME depressive stages, but they will not be as common, severe, or last as long. But if you have something majorly bad happen in your life then yes, you will still get depressed, even on medication. Finally, there are side effects. They can make you sleepy, they can affect your memory, they can affect your sex drive, and they can affect your concentration. I went from going to college full time with a 4.0 GPA (that's perfect grades here in the US, if you're not familiar with our grading system since I do not know where you are) to having to drop out of school; now I take free classes on Islamic Sciences online, but I can only handle one class at a time, and that over a very prolonged schedule as it takes me a long time to retain it, and my grades are not as good. Keep in mind though that I am on HEAVY medication, including anti-psychotics, so their effect on you may not be nearly as bad depending on what you are prescribed.
Allah protect you . . . depression is a scary thing, but He did give our doctors ways of helping us deal with it. Do not hesitate to use them, you are not a weaker person for going that route.