MUMBAI, India (AP) — Tom Latham scored his fourth ODI hundred as New Zealand pulled off a stunning six-wicket win against India with an over remaining in the first one-day international on Sunday.

Latham hit an undefeated 103 off 102 balls and added 200 runs with Ross Taylor (95) for the fourth wicket. New Zealand ended on 284-4 in 49 overs in the highest chase in ODI cricket by any team at this ground in Mumbai as the tourists took the lead in the three-match series.

"It was one of the best chases I've seen during my time with the Black Caps," New Zealand captain Kane Williamson said. "The way Tom and Ross controlled the innings was superb."

Earlier, Virat Kohli scored his 31st hundred as India reached 280-8 in 50 overs.

Playing in his 200th ODI, Kohli hit 121 runs off 125 balls as the India innings revolved around its captain thanks to a disciplined bowling effort from New Zealand.

Chasing 281, Martin Guptill (32) and Colin Munro (28) provided a solid start for New Zealand, adding 48 runs for the first wicket. Jasprit Bumrah (1-56) provided the breakthrough as Munro was caught at cover.

Kuldeep Yadav (1-64) got the big wicket as Williamson (6) was caught at extra cover. New Zealand was reduced to 80-3 in the 18th over when Hardik Pandya (1-46) got rid of Guptill, with Dinesh Karthik holding a great catch running in from deep square leg.

This brought Latham and Taylor together and their 50 partnership came off 60 balls as the duo started carefully against the Indian spinners.

Taylor scored his 39th ODI half-century off 58 balls, while Latham reached his half-century off 58 balls too, as they put on 100 off 108. Their 200 partnership came off 187 balls in the Black Caps' highest fourth-wicket stand in ODI cricket.

"Batting after keeping for 50 overs was pretty tough. It was pretty humid out there. The biggest thing is communication, and we were talking regularly between overs," Latham said after putting in a man-of-the-match performance.

Latham reached his hundred off 95 balls, becoming the first New Zealand wicketkeeper to score an ODI century against India.

Taylor just missed out on his century. Henry Nicholls (4 not out) finished up without any bother.

India won the toss and chose to bat.

Tim Southee (3-73) and Trent Boult (4-35) shared seven wickets, while Mitchell Santner (1-41) limited the hosts' scoring.

Boult struck quick double blows early on and dismissed both openers Shikhar Dhawan (9) and Rohit Sharma (20), reducing India to 29-2.

Kohli then put on 42 runs with Kedar Jadhav (12) for the third wicket. Santner had an opportunity to further punish the hosts when he dropped Kohli off Colin de Grandhomme (0-27) in the 19th over when he was on 22.

Jadhav was out against the run of play shortly afterward, with Santner making up for the lost chance and accepting a simple return catch. India crossed 100 in the 22nd over.

Kohli added 73 runs with Dinesh Karthik (37) for the fourth wicket. The skipper reached his half-century off 62 balls.

India kept losing wickets at regular intervals as Karthik holed out to long leg off Southee. It brought Kohli together with MS Dhoni (25) and the duo added 57 runs for the fifth wicket. The total crossed 200 in the 41st over.

Boult returned to account for both Dhoni and Hardik Pandya (16) as India was reduced to 238-6 in the 46th over.

However, Kohli held one end together until close to the finish. He reached his century off 111 balls, a knock that included seven fours and a six.

His ton moved Kohli past Australia's Ricky Ponting, who scored 30 ODI centuries in his career. Only India great Sachin Tendulkar with 49 is now ahead of Kohli in the list.

Kohli provided the final flourish with two more fours and a six as he added 32 runs with Bhuvneshwar Kumar (26) for the seventh wicket but the total wasn't enough.

"When you get a 200-run partnership in ODI cricket, more often than not you end up on the winning side," Kohli said. "We would have liked to have had a better batting performance."

The second ODI is in Pune on Wednesday.