We have developed a pulsed magnet system with panoramic access for synchrotron x-ray diffraction in magnetic fields up to 31T and at low temperature down to 1.5 K. The apparatus consists of a split-pair magnet, a liquid nitrogen bath to cool the pulsed coil, and a helium cryostat allowing sample temperatures from 1.5 up to 250 K. Using a 1.15MJ mobile generator, magnetic field pulses of 60 ms length were generated in the magnet, with a rise time of 16.5 ms and a repetition rate of 2 pulses/hour at 31 T. The setup was validated for single crystal diffraction on the ESRF beamline ID06.