Inverse Flow and Consistency Models