A non-conformally invariant coupling between the inflaton and the photon in the minimal Lorentz-violating standard model extension is analyzed. For specific forms of the Lorentz-violating background tensor, the strong-coupling and back-reaction problems of magnetogenesis in de Sitter inflation with scale similar to 10(16) GeV are evaded, the electromagnetic-induced primordial spectra of (Gaussian and non-Gaussian) scalar and tensor curvature perturbations are compatible with cosmic microwave background observations, and the inflation-produced magnetic field directly accounts for cosmic magnetic fields.