Does he appear to be gasping? If so, its probably a water quality issue. I would recommend doing a water change if thats the problem.
Otherwise he may have gill flukes. I can't remember what medicines can be used for that. I think its either Clout or the maroxies. It may just be nothing so keep an eye on it before you diagnose your betta.
Alexa