Ederson
No saves to make until a brilliant double effort in the second half, Until then it was all about the surety of his footwork. 7
Kyle Walker
With new competition on the bench, he laid waste to the Hammers' left flank to set up the first goal, and was a real positive. 7
John Stones
Played his way out of his June nightmare for England, looking assured and composed on the ball and strong in defence. 7
Aymeric Laporte
Makes such a difference to City. Refused to be intimidated by towering Haller and won just about everything. 8
Aleks Zinchenko
So sharp in those interchanges which are such an integral art of City going forward - a real asset on the left of the attack. 7
Kevin De Bruyne
Still not at his best, but the driving run and delayed pass which set up Sterling's first goal was classic De Bruyne. 7
Rodri
Early mistake gave City problems but he recovered to run the show from a deep-lying position, breaking up attacks and launching them. 8
David Silva
Still the man to unlock defences with subtle touches and shrewd decisions, even if the legs and lungs don't obey as they used to do. 7
Riyad Mahrez
Shock inclusion after his medication scare, but he justified it with a key role in four goals before winning the late penalty. 9
Gabriel Jesus
Did a fine defensive stint, continually pressuring the defenders - and was perfectly placed for his goal. Denied a perfectly good second. 7
Raheem Sterling
Ordinary first half but his running off the ball gave West Ham untold problems after the break and he was rewarded with a hat-trick. 8
Subs
Sergio Aguero
(for Jesus 68) Awful penalty, great penalty! 6
Ilkay Gundogan
(for De Bruyne 79).
Phil Foden
(for D. Silva 79).
Not used: Bravo, Cancelo, Otamendi, Bernardo