A device for a system for producing food includes a movable nozzle which is configured to expel a printable mass in various positions, in order to produce a spatial configuration of the printable mass for food. A movable heating unit is configured to supply thermal energy to the printable mass which has been expelled from the nozzle. A control unit is configured to determine a recipe for producing food. The recipe indicates position data with a plurality of positions at which the printable mass is to be expelled from the nozzle, in order to produce the spatial configuration of the printable mass for the food. In addition, the control unit is configured to move the movable nozzle and the movable heating unit in accordance with the position data.