To find the initial value of \( g \) in the equation \( g = 50x + 1,000 \), we need to evaluate the equation at \( x = 0 \), which represents the time of sunrise.
Substituting \( x = 0 \) into the equation:
\[ g = 50(0) + 1,000 = 1,000 \]
Thus, the initial value of \( g \) is 1,000 gallons.