AbstractIn this manuscript, the inorganic perovskite CsPbI2Br and CsPbIBr2 are investigated as photoactive materials that offer higher stability than the organometal trihalide perovskite materials. The fabrication methods allow anti-solvent processing the CsPbIxBr3−x films, overcoming the poor film quality that always occur in a single-step solution process. The introduced diethyl ether in spin-coating process is demonstrated to be successful, and the effects of the anti-solvent on film quality are studied. The devices fabricated using the methods achieve high-performance, self-powered and the stabilized photodetectors show fast response speed. The results illustrate a great potential of all-inorganic CsPbIxBr3−x perovskites in visible photodetection and provide an effective way to achieve high performance devices with self-powered capability.