Even though fry are small, they produce quite a lot of waste, as they're growing; more than an adult fish of the same size. I really wouldn't recommend anything less than a ten gallon.
You could use something like a five gallon, but you'd probably need to be doing daily water changes. Livebearer fry produce hormones that stunt the fish's growth once it reaches a certain concentration, so the more water volume, and the more water changes you do, the better the fry will grow.