Seismic modelling of the β Cephei stars promises major advances in our understanding of the physics of early B-type stars on (or close to) the main sequence. However, a precise knowledge of their physical parameters and metallicity is a prerequisite for correct mode identification and inferences regarding their internal structure. Here we present the results of a detailed NLTE abundance study of nine prime targets for theoretical modelling: γ Peg, δ Cet, ν Eri, β CMa, ξ 1 CMa, V836 Cen, V2052 Oph, β Cep and DD (12) Lac (hereafter 12 Lac). The following chemical elements are considered: He, C, N, O, Mg, Al, Si, S and Fe. Our curve-of-growth abundance analysis is based on a large number of time-resolved, high-resolution optical spectra covering in most cases the entire oscillation cycle of the stars. Nitrogen is found to be enhanced by up to 0.6 dex in four stars, three of which have severe constraints on their equatorial rotational velocity, ΩR, from seismic or line-profile variation studies: β Cep (ΩR ∼ 26 km s −1 ), V2052 Oph (ΩR ∼ 56 km s −1 ), δ Cet (ΩR < 28 km s −1 ) and ξ 1 CMa (ΩR sin i < ∼ 10 km s −1 ). The existence of core-processed material at the surface of such largely unevolved, slowly-rotating objects is not predicted by current evolutionary models including rotation. We draw attention to the fact that three stars in this subsample have a detected magnetic field and briefly discuss recent theoretical work pointing to the occurrence of diffusion effects in β Cephei stars possibly capable of altering the nitrogen surface abundance. On the other hand, the abundances of all the other chemical elements considered are, within the errors, indistinguishable from the values found for OB dwarfs in the solar neighbourhood. Despite the mild nitrogen excess observed in some objects, we thus find no evidence for a significantly higher photospheric metal content in the studied β Cephei stars compared to non-pulsating B-type stars of similar characteristics.