This medication is used to treat certain types of blood cell cancer (acute myeloid leukemia-AML, myelodysplastic syndromes-MDS). Ivosidenib works by helping your bone marrow grow normal blood cells so you will need fewer blood transfusions. Ivosidenib is also used to treat bile duct cancer.