How did a Roman Slave actually buy his/her freedom?

by Cormag778

I've read a few accounts of Roman slaves saving money and buying their freedom. How did that work? I assume slaves generally didn't get paid for their activities, so how did they save enough? Likewise, how was their price decided upon. I assume a master could refuse to "sell" their slave and give them their freedom.

Dinocrocodile