The light-by-light contribution from the lightest neutral pseudoscalar and scalar mesons to the anomalous magnetic moment of muon is calculated in the framework nonlocal quark model. The model is based on a four-quark interaction of the Nambu-Jona-Lasinio type and t?Hooft six-quark interaction. Full kinematic dependencies of vertices with off-shell mesons in the light-by-light scattering amplitude is taken into account.