Using data samples with an integrated luminosity of 4.5 fb−1 collected by the BESIII detector at center-of-mass energies ranging from 4.66 GeV to 4.95 GeV, we study the processes of e+e−→ωX(3872) and e+e−→γX(3872). With the e+e−→ωX(3872) process, the branching fraction ratio R≡B(X(3872)→γJ/ψ)B(X(3872)→π+π−J/ψ) is measured to be 0.38±0.20stat±0.01syst (R<0.83 at 90% confidence level). In addition, we measure the ratio of the average cross section of e+e−→ωX(3872) to e+e−→ωχc1(ωχc2) to be σωX(3872)/σωχc1(σωX(3872)/σωχc2)=5.2±1.0stat±1.9syst(5.5±1.1stat±2.4syst). Finally, we search for the process of e+e−→γX(3872), and no obvious signal is observed. The upper limit on the ratio of the average cross section of e+e−→γX(3872) to e+e−→ωX(3872) is set as σγX(3872)/σωX(3872)<0.23 at 90% confidence level. Published by the American Physical Society 2024