Apparatus for shaping one or more conductor pieces arranged in a stator core, the conductor piece preferably being a hairpin having two elongate legs and a connection portion connecting these two legs, a plurality of conductor pieces being arranged in the stator core, which conductor pieces are arranged on a plurality of circular paths extending in a circumferential direction, in rows extending in a radial direction, the shaping taking place at a free end of the conductor piece that projects from the stator core, the apparatus comprising: a receptacle for the stator core in a provided operating position in which the conductor pieces to be shaped are arranged in an initial configuration (before shaping) in such a way that the conductor pieces projecting from the stator core project from the stator core extending in a longitudinal direction, a forming unit having a gripper which is designed to releasably clamp the conductor piece to be shaped between at least two clamping elements, characterized in that the gripper can be moved in the apparatus in a gripper longitudinal direction which, in an initial state of the gripper, extends in parallel with the longitudinal direction, and the gripper can be further pivoted in the apparatus in a plane spanned by the longitudinal direction and the radial direction such that the gripper longitudinal direction is inclined relative to the longitudinal direction in the pivoted state, the apparatus in particular comprising a counter-bearing device which is movably arranged in such a way that a counter-bearing portion can be placed against the conductor piece in order to define a first bending point. a plurality of conductor pieces being arranged in the stator core, which conductor pieces are arranged on a plurality of circular paths extending in a circumferential direction, in rows extending in a radial direction, the shaping taking place at a free end of the conductor piece that projects from the stator core, the apparatus comprising: a receptacle for the stator core in a provided operating position in which the conductor pieces to be shaped are arranged in an initial configuration (before shaping) in such a way that the conductor pieces projecting from the stator core project from the stator core extending in a longitudinal direction, a forming unit having a gripper which is designed to releasably clamp the conductor piece to be shaped between at least two clamping elements, characterized in that the gripper can be moved in the apparatus in a gripper longitudinal direction which, in an initial state of the gripper, extends in parallel with the longitudinal direction, and the gripper can be further pivoted in the apparatus in a plane spanned by the longitudinal direction and the radial direction such that the gripper longitudinal direction is inclined relative to the longitudinal direction in the pivoted state, the apparatus in particular comprising a counter-bearing device which is movably arranged in such a way that a counter-bearing portion can be placed against the conductor piece in order to define a first bending point. a receptacle for the stator core in a provided operating position in which the conductor pieces to be shaped are arranged in an initial configuration (before shaping) in such a way that the conductor pieces projecting from the stator core project from the stator core extending in a longitudinal direction, a forming unit having a gripper which is designed to releasably clamp the conductor piece to be shaped between at least two clamping elements, characterized in that the gripper can be moved in the apparatus in a gripper longitudinal direction which, in an initial state of the gripper, extends in parallel with the longitudinal direction, and the gripper can be further pivoted in the apparatus in a plane spanned by the longitudinal direction and the radial direction such that the gripper longitudinal direction is inclined relative to the longitudinal direction in the pivoted state, the apparatus in particular comprising a counter-bearing device which is movably arranged in such a way that a counter-bearing portion can be placed against the conductor piece in order to define a first bending point.