The invention relates to a filling station, in particular a hydrogen-filling station, for filling vehicles with a gaseous and/or liquid medium, in particular gaseous and liquid hydrogen, comprising: a) a storage device (S), It is used to store the liquefied medium, b) the liquid medium output unit (F), to which the liquefied medium can be delivered from the storage device (S), c) the compressor (V), connected in front of the compressor The evaporator (E), the heater (C) connected behind the compressor (V) and the intermediate storage device (Z) connected behind the heater (C), the intermediate storage device is used to temporarily store the compressed The gaseous medium, d) the gaseous medium output unit (G) connected behind the intermediate storage device (Z), e) the fuel cell (B), the gaseous medium can be taken from the storage device (S) and/or the intermediate storage device (Z ) to the fuel cell (8, 9) and the fuel cell provides energy to the compressor (V), f) a control unit (L) powered by the fuel cell (B) for controlling the compressor (V ), a gaseous medium output unit (G) and/or a liquid medium output unit (F).