Stenocereus queretaroensis (F.A.C.Weber ex Mathes.) Buxb is a cactus that has long been used as a source food in central and northern México. Its fruits, commonly called pitayas, biosynthesize high amounts of betalains. These molecules are water-soluble nitrogenous compounds; that compared to other pigments, such as anthocyanins or carotenoids, stand out for their physicochemical stability in industrial processes. Due to genetic and environmental factors involved in the biosynthesis and accumulation of secondary metabolites in plants, we tested different stress-inducing agents (elicitor, osmotic, salt, and temperature) to induce betalains accumulation in cell culture from fruits of Stenocereus queretaroensis. This work aimed to understand stress conditions that induce the metabolic pathways required for the accumulation of betalains. The results show how betacyanin concentration increases under high sugar conditions, thus affecting the expression of L-DOPA 4, 5 dioxygenase resulting in a strong dark red coloration. This suggests this enzyme is part of a rate-limiting step in betalain production. In addition, we found that betalains accumulation occurs under particular stress conditions. Cells that have a high level of betacyanins show better resistance to stress in the cell culture, as well as an overall different behavior including cell aggregation and alterations in nuclear size. Together the results shown here may provide new strategies to manipulate and mass produce the pigments from Stenocereus queretaroensis in cell culture.