Corydoras catfish can live with bettas but they need to be kept in a well filtered tank.
Corys naturally occur in schools so you should try to keep a group of them. The minimum size tank for 4-6 corys and a betta would be about 10gallons or 40litres.