Compact stellar objects like supernovae and neutron stars are believed to cool by emitting axions predominantly via bremsstrahlung (NN→NNa), pion conversion (π−p+→Na), and photoproduction (γN→Na). In this paper, we study new contributions to the photoproduction channel pertaining to axions. We first point out the impact of anomaly-induced unavoidable Wess-Zumino-Witten term ∝εμναβFμν∂αaωβ in the photoproduction of such axions. We then perform a complementary data-driven study where the rate of photoproduction can be estimated from low-energy pion photoproduction data. We found that for such heavier axions, i.e., ma∼O(100) MeV, photoproduction processes can be dominant compared to the usual emission processes. In addition, the spectrum of these particles emitted in the process is significantly harder than those originating from bremsstrahlung. Published by the American Physical Society 2024