The invention relates to an apparatus for metering a medium comprising a base element provided for fastening to a robot, a metering valve movably supported at the base element, and at least one piezo actuator by which the metering valve is movable relative to the base element.