Gamma-ray bursts from synchrotron self-Compton emission