Abstract-This paper presents a stochastic model of the Tuberculosis(TB) infection with treatment in a population composed of four individuals compartments: susceptible individuals, latent infected individuals, active infected individuals and recovered individuals after the therapy. A preliminary survey of the model is performed on the stability before approaching the crucial left of the topic. The aim in this paper is to control the treatment frequency in a stochastic model of the TB infection while minimizing the cost of the measures. Then, we formulate an optimal control problem that consists in minimizing the relative cost of the dynamics of TB-model in order to reduce the prevalence and the mortality due to this infection. The optimal problem is solved by applying the Projection Stochastic Gradient Method in order to find the optimal numerical solution. Finally, we provide some numerical simulations of the controlled model.