We consider the production of baryons containing two heavy quarks via gluon-gluon, photongluon and photon-photon fusion processes in the framework of nonrelativistic heavy quark model and perturbative chromodynamics. We calculate the corresponding cross sections for pp, ep and γγ collisions at the energies of present and future colliders and analyse the uncertainties of theoretical estimations.