Initially optically thick (with τ = 3⋅107) spherically symmetric outflow consisting of electron-positron pairs and photons is considered. We do not assume thermal equilibrium, and include the two-body processes that occur in such plasma: Möller and Bhabha scattering of pairs, Compton scattering, two-photon pair annihilation, two-photon pair production, together with their radiative three-body variants: bremsstrahlung, double Compton scattering, and three-photon pair annihilation, with their inverse processes. We solve numerically the relativistic Boltzmann equations in spherically symmetric case for distribution functions of pairs and photons. Three epochs are considered in details: a) the thermalization, which brings initially nonequilibrium plasma to thermal equilibrium; b) the self-accelerated expansion, which we find in agreement with previous hydrodynamic studies and c) decoupling of photons from the expanding electron-positron plasma. Photon spectra are computed, and appear to be non thermal near the peak of the luminosity. In particular, the low energy part of the spectrum contain more power with respect to the black body one.