Corporal punishment in prisons is not legal in the US[1][2][3].
Prolonged solitary confinement is being used for people who do not refuse to work as well, even for people who have not been convicted[1]. You may think it's inhumane, but it not slavery.