There are a couple of places in Sakai city, south of Osaka. None in downtown that I know of but you can borrow mine if you're in the neighborhood.
To buy one, you can find them starting from 5000 yen.
Only collapsable bikes can be brought on the trains, apparently.