AimsStress hyperglycemia ratio (SHR), an emerging indicator of critical illness, exhibits a significant association with adverse cardiovascular outcomes. The primary aim of this research endeavor is to evaluate the association between fasting SHR and contrast-induced acute kidney injury (CI-AKI).MethodsThis cross-sectional study comprised 3,137 patients who underwent coronary angiography (CAG) or percutaneous coronary intervention (PCI). The calculation of fasting SHR involved dividing the admission fasting blood glucose by the estimated mean glucose obtained from glycosylated hemoglobin. CI-AKI was assessed based on elevated serum creatinine (Scr) levels. To investigate the relationship between fasting SHR and the proportion of SCr elevation, piecewise linear regression analysis was conducted. Modified Poisson’s regression analysis was implemented to evaluate the correlation between fasting SHR and CI-AKI. Subgroup analysis and sensitivity analysis were conducted to explore result stability.ResultsAmong the total population, 482 (15.4%) patients experienced CI-AKI. Piecewise linear regression analysis revealed significant associations between the proportion of SCr elevation and fasting SHR on both sides (≤ 0.8 and > 0.8) [β = -12.651, 95% CI (−23.281 to −2.022), P = 0.020; β = 8.274, 95% CI (4.176 to 12.372), P < 0.001]. The Modified Poisson’s regression analysis demonstrated a statistically significant correlation between both the lowest and highest levels of fasting SHR and an increased incidence of CI-AKI [(SHR < 0.7 vs. 0.7 ≤ SHR < 0.9) β = 1.828, 95% CI (1.345 to 2.486), P < 0.001; (SHR ≥ 1.3 vs. 0.7 ≤ SHR < 0.9) β = 2.896, 95% CI (2.087 to 4.019), P < 0.001], which was further validated through subgroup and sensitivity analyses.ConclusionIn populations undergoing CAG or PCI, both lowest and highest levels of fasting SHR were significantly associated with an increased occurrence of CI-AKI.