Ape is not a scientific taxonomic definition.
FYI (you might find a different classification schema and nomenclature elsewhere, especially if more than a few years old):
The Hominoidea are the ape superfamily, or hominoids. Remove the lesser apes (gibbons and siamangs) and what remains is the family of great apes, the Hominidae, or hominids. Remove the pongids (subfamily Ponginae, or orangutans) and what remains is the subfamily Homininae (hominines) - the gorillas, chimps, bonobos and man. Remove tribe Gorillini and what remains is tribe Hominini (hominans?), then separate these into the subtribe Panina (chimps and bonomos) and the subtribe Hominina (or hominins = austrlopithecoids and genus Homo).
Here it is graphically:
Superfamily HOMINOIDEA ("hominoids") the apes -> lesser apes (Family HYLOBATIDAE) Gibbons and siamangs
↓
Family HOMINIDAE ("hominids") great apes -> (Subfamily PONGINAE) Orangutans
↓
Subfamily HOMININAE ("hominines") Gorilla, Pan and Homo -> Tribe GORILLINI
↓
Tribe HOMININI ("hominans?") Pan (chimps, bonobos) and Homo -> Subtribe PANINA
↓
Subtribe HOMININA ("hominins") Homo and Australopithecoids -> Austrlopithecoids (Australopithecus, Ardipithicus, Paranthropus)
↓
Genus Homo