Lead halide perovskite single crystals have attracted wide interest in the field of X-ray detection due to their excellent photophysical properties. However, their inherent toxicity and high thickness restrict their applications in flexible devices. In this paper, designing a micronanometer-scale X-ray detector based on all-inorganic lead-free CsAg