A silver nitrate (AgNO3) gel was developed and evaluated as a dosimeter for synchrotron X-ray-based studies in microbeam radiation therapy (MRT) and FLASH radiation therapy. The gel was irradiated at the European Synchrotron Radiation Facility (ID17 Biomedical beamline) with a continuous X-ray spectrum in the 50-600 keV range and a dose rate of 11.6kGy/s. The spectrophotometric response after irradiation at this beamline was compared with the response at a conventional 60Co γ-ray source providing a dose rate of 0.27 Gy/s. Ag+ ions in the gel dosimeter undergo reduction to Ago nanoparticles, as detected at 450 nm, which is a surface plasmon resonance band. The intensity of this band increased linearly with increasing absorbed dose up to 100 Gy, and improved with the addition of glycerol. The gel dosimeter exhibited the lowest detectable dose (LDD) of 75.9% lower and a dose deposition of 76% higher for ID17 beamline irradiation than for 60Co irradiation. The theoretical relative response HQ,Qo for the gel irradiated at the synchrotron was 1.70, which is in close agreement with the experimental relative response FQ,Qo = 1.76. These results confirm the dose enhancement in the gel irradiated with orthovoltage X-rays. The good properties of the silver nitrate gel, together with its increased sensitivity to orthovoltage X-ray irradiation and modest overall uncertainty of 5.8% (2σ), confirm that the gel is a valid dosimeter for measurements at ultrahigh dose rates for synchrotron radiotherapy. The dosimeter is also a promising candidate for dose enhancement factor measurements in nanoparticle-based radiotherapy techniques.