An axial flux machine, comprising a stator and a rotor having a central axis in axial direction corresponding to the rotational axis of the axial flux machine, and the rotor comprising a first rotor disk being axially separated from the stator by an air gap, wherein - the stator comprises a plurality of stator elements enclosed by a stator housing, any of the stator elements comprising a coil wound around a core; - the first rotor disk comprises magnets, of which the magnet surfaces are located in an annular zone on the rotor disk side facing the air gap, and wherein the stator comprises: - one or more spraying elements, each of the spraying elements comprising at least one exit hole, any of the spraying elements being adapted to eject cooling fluid towards the annular magnet zone, such that during operation with rotating rotor, the magnets are cooled by cooling fluid sprayed directly on the respective magnet surfaces, and - one or more cooling channels adapted to guide a cooling fluid under pressure to the one or more respective spraying elements, any of the one or more cooling channels comprising a radial portion adapted to guide cooling fluid from the outer towards the inner circumference of the stator, and an end portion ending in the spraying element, the end portion being in fluid communication with the radial portion, CHARACTERIZED IN THAT: - the stator housing comprises a first cover, the first cover having an internal side facing the upper side of the coils and an external side facing the air gap, wherein the one or more spraying elements are provided on the first cover, - the end portion is provided as a channel through the material of the first cover, and the radial portion is provided as a channel running through the material of the first cover or running through the material of a wall, the wall positioned between adjacent stator elements. - the stator comprises a plurality of stator elements enclosed by a stator housing, any of the stator elements comprising a coil wound around a core; - the first rotor disk comprises magnets, of which the magnet surfaces are located in an annular zone on the rotor disk side facing the air gap, and wherein the stator comprises: - one or more spraying elements, each of the spraying elements comprising at least one exit hole, any of the spraying elements being adapted to eject cooling fluid towards the annular magnet zone, such that during operation with rotating rotor, the magnets are cooled by cooling fluid sprayed directly on the respective magnet surfaces, and - one or more cooling channels adapted to guide a cooling fluid under pressure to the one or more respective spraying elements, any of the one or more cooling channels comprising a radial portion adapted to guide cooling fluid from the outer towards the inner circumference of the stator, and an end portion ending in the spraying element, the end portion being in fluid communication with the radial portion, - one or more spraying elements, each of the spraying elements comprising at least one exit hole, any of the spraying elements being adapted to eject cooling fluid towards the annular magnet zone, such that during operation with rotating rotor, the magnets are cooled by cooling fluid sprayed directly on the respective magnet surfaces, and - one or more cooling channels adapted to guide a cooling fluid under pressure to the one or more respective spraying elements, any of the one or more cooling channels comprising a radial portion adapted to guide cooling fluid from the outer towards the inner circumference of the stator, and an end portion ending in the spraying element, the end portion being in fluid communication with the radial portion, CHARACTERIZED IN THAT: - the stator housing comprises a first cover, the first cover having an internal side facing the upper side of the coils and an external side facing the air gap, wherein the one or more spraying elements are provided on the first cover, - the end portion is provided as a channel through the material of the first cover, and the radial portion is provided as a channel running through the material of the first cover or running through the material of a wall, the wall positioned between adjacent stator elements. - the stator housing comprises a first cover, the first cover having an internal side facing the upper side of the coils and an external side facing the air gap, wherein the one or more spraying elements are provided on the first cover, - the end portion is provided as a channel through the material of the first cover, and the radial portion is provided as a channel running through the material of the first cover or running through the material of a wall, the wall positioned between adjacent stator elements.