Husband torchering kids and me for divorce

My husband and I were married in 2015 January. We both were working. He is working in Bangalore and I was working in Chennai. After 6 months of marriage I got transferred to Bangalore. Then after our first baby problem started. There was no one to take care of our baby. His mother was not ready to take care of baby. My husband wanted me to work at any cost. Hence I had to leave Bangalore and move to Chennai. I started working in Chennai. Left the kids with my parents. My husband was enjoying like a bachelor and he would visit us on any weekend. Till 2018 it was like this only I started saying him that this is not right and he should come to Chennai and stay with us since he was staying alone in Bangalore . But he was not ready to come to Chennai. He said he will stay in Bangalore but I should not leave the job. Lot of chaos because of that then our second baby was born. When I went through his mobile I saw some women pictures in his mobile when I asked about that he was blabbering. Then I installed a spy app in his mobile and got to know that they were prostitutes and he was enjoying in Bangalore and this is why he was not ready to come to Chennai. Then after big problem I resigned the job and went to Bangalore from then he started torchering me. He would say that I'm sitting at home and eating for free. He beat me once. For no reason he will avoid me. He won't talk to me. He won't get anything for me. I only get all basic things for me. My father use to send money to me till now. Now he started beating for every argument. I should not open my mouth we are like slaves here. He is torturing my kids too. He is rude to them. My kids says let's leave this home. Irony is he asking for divorce he wants me to work or get out of the work. His mother said upfront that she won't take care. Two girl kids are there I don't know what to do. Daily he is torturing us. His motive is either I should run out the house or I should work. Physical, verbal and mental abuse. What can I do, please help. I'm bearing everything for my kids.