Participation in the Apple Beta Software Program is voluntary, and does not cost any money. Apple also offers no compensation to users for feedback regarding pre-release software installations.
An Apple ID is required to join the Apple Beta Software Program, however creating an Apple ID does not require payment.
Any available public beta versions of iOS or OS X can be installed on compatible hardware free of charge.