Rare-earth oxyhydride (ReOxHy) films are novel inorganic photochromic materials that have strong potential for applications in windows and optical sensors. Cations greatly influence many material properties and play an important role in the photochromic performance of ReOxHy. Here we propose a strategy for obtaining Gd1−zYzOxHy films (z = 1, 0.7, 0.5, 0.4, 0.35, 0.25, 0.15, 0) using one-step direct-current (DC) magnetron co-sputtering. Distinct from the mixed anion systems, such material would belong to the class of mixed anion and mixed cation materials. For Gd1−zYzOxHy films, different co-doping ratios can help tune the contrast ratio (that is, the difference between coloration and bleaching transmittance) and cycling degradation, which may be related to the lattice constant. X-ray diffraction (XRD) patterns show that the lattice constant increases from 5.38 Å for YOxHy to 5.51 Å, corresponding to Gd0.75Y0.25OxHy. The contrast ratio, in particular, can be enhanced to 37% from 6.3% by increasing the lattice constant, directly controlled by the co-sputtering power. When the lattice constant decreases, the surface morphology of the sample with the smallest lattice constant is essentially unchanged by testing in air with normal oxidation for 100 days, suggesting great improvement in environment durability. However, the crystal structure cannot be overly compressed, and co-sputtering with Cr gives black opaque films without photochromic properties. Moreover, because the atomic mass of different rare earth elements is different, the critical pressure p* (films deposited at p < p* remain metallic dihydrides) is different, and the preparation window is enlarged. Our work provides insights into innovative photochromic materials that can help to achieve commercial production and application.