In the work the computer model of a cell of a system for generating fluxes of therapeutic beams of delayed neutrons, based on the use of delayed fission neutrons, was developed in the Geant 4 environment. The principle of such a neutron source is that when a powerful electron beam interacts with a combined tungsten target and a target containing fissile material, a fission reaction occurs; as a result of which neutrons are emitted. If we move a target activated in this way several tens of meters into a neutron flux generation system consisting of a heater, protection, collimator and reflector, we will obtain a compact neutron source for nuclear medicine. A significant advantage of such a neutron source is the absence of gamma background from the electron accelerator and the combined target, and a bulky protection system is not required. In the Geant 4 environment, the geometry of this cell was developed and a series of experiments were carried out with 107 neutrons. The QGSP BIC HP physical sheet was used. A study of neutron energy spectra showed that more than half of the neutrons whose fluxes are formed using such a cell of the formation system have an energy <100 keV, which is suitable for use for therapeutic purposes. Analysis of the data obtained in a computer experiment made it possible to develop a modified cell of the system for generating streams of therapeutic beams of delayed neutrons, which differs from the basic one by the presence of a solid polyethylene moderator with holes for activated targets and a graphite reflector. Analysis of the data obtained showed that in this case the number of thermal neutrons hitting the detector increases 10 times compared to the base cell, and the energy of 80% of the particles does not exceed 5 keV, which is much better suited for therapeutic purposes.