In the past decade Kirkpatrick-Baez (KB) mirrors have been established as powerful focusing systems in hard X-ray microscopy applications. Here a ptychographic characterization of the KB focus in the dedicated nano-imaging setup GINIX (Göttingen Instrument for Nano-Imaging with X-rays) at the P10 coherence beamline of the PETRA III synchrotron at HASLYLAB/DESY, Germany, is reported. More specifically, it is shown how aberrations in the KB beam, caused by imperfections in the height profile of the focusing mirrors, can be eliminated using a pinhole as a spatial filter near the focal plane. A combination of different pinhole sizes and illumination conditions of the KB setup makes the prepared optical setup well suited not only for high-resolution ptychographic coherent X-ray diffractive imaging but also for moderate-resolution/large-field-of-view propagation imaging in the divergent KB beam.