Phosphate homeostasis is essential for cells to survive. In this publication, the phosphate exporter XPR1 is structurally characterized using cryo electron microscopy. The importance of the second messenger InsP8 to structurally fix the regulatory SPX domain is demonstrated.