High-temperature (HT) stress significantly affects the quality of rice (Oryza sativa L.), although the underlying the mechanism remains unknown. Therefore, in the present study, we assessed protein components, amino acids, mineral element levels, starch biosynthesis enzyme activity and gene expression of two heat-sensitive and two heat-tolerant genotypes under HT treatment during early (from 1 to 10 days, T1) and mid-filling (from 11 to 20 days, T2) after anthesis. Except for one cultivar, most rice varieties exhibited increased levels of amylose, chalky degree and protein content, along with elevated cracked grains and pasting temperatures and, consequently, suppressed amino acid levels under HT stress. HT treatment also increased protein components, macro- (Mg, K, P and S) and microelements (Cu, Zn, and Mo) in the rice flour. Both HT treatments reduced the activity of ADP-glucose pyrophosphate, ground-bound starch synthase, as well as the relative ratio of amylose to total starch, at the same time increasing starch branch enzyme activity. The expression levels of OsAGPL2, OsSSS1 and OsSBE1 in all varieties exhibited the same trends as enzyme activity under HT treatment. High temperatures negatively affected rice quality during grain filling, which is related to heat tolerance and grain shape. Altered enzymatic activity is crucial to compensate for the lowered enzyme quality under heat stress. © 2024 Society of Chemical Industry.