We propose the concept of atom-mediated pair-generation, using the bandgap evanescent modes of a nonlinear periodic waveguide, where spontaneous generation of one photon becomes conditional on the absorption of its pair by a 2-level emitter