We present an extension of the Skirtor AGN module of CIGALE-spec, the spectro-photometric version of the code, including broad and narrow emission lines with minimal additions to the parameter space
Active galactic nuclei, now observed at high redshift with JWST, are key drivers of galaxy evolution. Characterising their properties is challenging, as broad and narrow emission lines carry a substantial fraction of their rest-frame UV and optical flux. Widely used SED-modelling codes like CIGALE only model the AGN continuum, forcing emission lines to be neglected or spuriously attributed to star formation.
We present an extension of the Skirtor AGN module of CIGALE-spec, the spectro-photometric version of the code, including broad and narrow emission lines with minimal additions to the parameter space. Eighteen broad and 111 narrow lines are integrated, with ratios from photoionisation models and normalisations tied to the disk Lyα continuum. Instrument resolution is taken into account efficiently via LSF-broadened pseudo-filters, and an iterative post-fit routine rescales broad Balmer amplitude and width and selects the narrow-line (logU,Z) grid point. We validate the model on 16 targets at z=3.2−7.3 (ten broad-line AGNs and six quiescent controls) with NIRSpec prism spectra and HST and NIRCam photometry. Attributing Balmer and [OIII] emission to the AGN lowers χ2 by a median Δχ2=−77 (12%) for the AGNs, and suppresses spurious featureless AGN continua in the quiescent controls. Accounting for instrumental broadening lowers χ2 by a median 9.4% for AGNs and 2.7% for quiescents. With the standard line ratios, the broad Balmer lines initially show a flux deficit by factors of 1.3-3.0. The post-fit iteration yields a further median Δχ2=−101 (overall ΔBIC=−157 relative to AGN-line-free fits), recovering broad FWHMs matching G395M grating spectra in three of five targets.
This extension enables robust modelling of AGNs, adding only line widths and narrow-line polar extinction to the parameter space. The code is publicly available.

The code is available for downloading at https://gitlab.lam.fr/cigale/cigale/-/tree/spec_AGN_merlin26
Please cite Merlin et al. 2026 (submitted to Open Journal of Astrophysics) if you use the code.