The NYC Department of Education requires every single high school student to have at least 44 credits in order to graduate. For more detailed requirements see below. (You can click the picture to enlarge it)
In addition to 44 credits listed above, you need to pass a minimum of 5 State Regents exams in order to graduate. For more precise information, see below.