Converts L-DOPA to cyclo-DOPA in the betalain pathway. Provides the cyclo-DOPA moiety of all red betacyanins. Pigment biosynthesis; betalain biosynthesis. Regulated by MYB1. A frameshift mutant replacing 108 native amino acids with 27 new residues followed by a stop codon results in an inactive protein (AC P0DKI2) and a yellow mutant phenotype. Belongs to the cytochrome P450 family.