Free to us, perhaps, but the real cost is about 5,000,000,000Kg of hydrogen the sun comsumes per second.
You could start an interesting philosophical point on this though, given our capacity to perceive the suns energy as free can only occur because it's energy created the human race in the first place