In terms of easiness and time, it’s better to do A1 in Pakistan. In terms of cost, it’s almost the same as in Pakistan. In Germany, students and refugees can apply for integration course which is around 400 euros per module (A1, A2, B1) and on completion of B1, you can get half of your money back. So it will cost you around 600 euros for A1,A2 and B1.