Thai King Maha Vajiralongkorn endorsed Paetongtarn Shinawatra as prime minister on Sunday, two days after parliament elected her, paving the way for the formation of a Cabinet in coming weeks.

The king's approval, a formality, was read out by House of Representatives Secretary Apat Sukhanand at a ceremony in Bangkok.

Dressed in official uniform, Paetongtarn got down on her knees and paid homage to a portrait of King Vajiralongkorn before giving a short speech thanking the king and the people's representatives for endorsing her as prime minister.

"As head of the executive branch, I will do my duty together with the legislators with an open heart," she said.

"I will listen to all opinions so together we can take the country forward with stability," she said.

Paetongtarn, 37, becomes Thailand's youngest prime minister just days after ally Srettha Thavisin was dismissed as premier by the Constitutional Court, a judiciary central to Thailand's two decades of intermittent political turmoil.

Daughter of divisive political heavyweight Thaksin Shinawatra, Paetongtarn sailed through a house vote on Friday, winning 319 votes, or nearly two-thirds of the house to become Thailand's second female prime minister and the third Shinawatra to take the premiership after her aunt Yingluck Shinawatra and father Thaksin.

Paetongtarn, who has never served in government previously, will face challenges on multiple fronts, with the economy floundering, and the popularity of her Pheu Thai Party dwindling, having yet to deliver on its flagship digital wallet cash handout program worth 500 billion baht ($14.46 billion).