In a method and apparatus for the generation of image data of a moving subject, raw data are initially acquired for a region comprising the subject at different measurement points in time in different movement phases of the subject. A reconstruction then takes place of multiple interim image data sets of the subject from the raw data that are respectively associated with different movement phases of the subject. Deviation data are then determined between the interim image data sets of the different movement phases of the subject, and the reconstruction of image data from raw data of different movement phases then takes place under consideration of the deviation data.