Mask Flow API