Do you really mean a flip as in "backflip" or "frontflip"? Is the Mavic Air supposed to be capable of performing such flips?
If you're flying in Manual mode (as opposed to Atti mode or P/S modes) you should be able to do all kinds of turns, flips, rolls, and loops.
It goes without saying that it is not as easy as flying in Atti or Sport mode.
Neither the Mavic 2 Pro nor the Mavic Air is designed to do any sort of aerobatics (rolls, loops, etc). There is no standard mode (P, S, F etc...) that allows any such maneuvers. The Mavic does it's best to always maintain it's orientation, and only tilts to the degree necessary to move in any given direction.
There are parameters you can play with in the developer mode to get beyond those safe limits but it really is not recommended.