The main temple area is free to visit. But, you will need to pay for entry to some of the surrounding caves.