Mass producing incredibly realistic sex robots is needed to meet booming demand across the globe.

Row upon row of voluptuous silicon bodies hang on production lines at the EXDOLL plant in the northeastern China city of Dalian.

The company makes 400 custom dolls per month, up from 10 in 2009.

It began research into sexbots in mid-2016 and now employs 120 people with plans to expand.

On the factory floor for “traditional” sex dolls, buyers can customize each doll for height, skin tone, breast size, amount of pubic hair, eye color and hair color.

But the most popular dolls have pale skin, huge boobs and are around 5 and a half feet tall.

EXDOLL has ambitions to apply artificial intelligence to make dolls so lifelike that they could cure loneliness among the country’s huge unmarried population.

There are 33.6 million more men than women in the country of 1.4 billion people, which means many frustrated young men get little or no bedroom action.

Seated between two non-robotic silicon companions, one in a short black skirt and a smaller model in a schoolgirl outfit, marketing director Wu Xingliang explained his company’s products could solve this.

He said: “China has a shortage of women, and this is a factor in why there’s this demand, but they’re not just for sex.”

This is because the bots can also have conversations and do some household chores.

The country is estimated to make more than 80 percent of the world’s sex toys, with over a million people employed in the country’s $6.6 billion industry.

In the next year, EXDOLL hopes to roll out more advanced robots featuring artificial intelligence technology, complex facial expressions and body movements, voice-recognition systems and eyes that can follow people’s movements.

A shapely prototype in a racy white dress bows to greet male engineers at the factory.

The programmers pore over 3-D models on computer screens while another one assembles a skeleton with exposed wires and joints.

The machine becomes more lifelike as he gingerly affixes a silicon skin — hand-painted in sultry makeup colors — over its face.

Qiao Wu, chief development officer at EXDOLL, said the goal is to create the most beautiful and most humanlike robot possible.

He said: “There are already good robot technologies developed, so we want to concentrate on having a robot with the most beautiful face, and the hottest body.”

Wu then asked a petite blond prototype sitting on a chair and dressed in a see-through white blouse: “What is your name?”

“My name is Xiaodie but you can also call me baby,” the robot replied. “But if I’m not happy I won’t answer.”

Xiaodie is essentially a sex doll fitted with a Wi-Fi function similar to the iPhone’s Siri application, which can surf the internet and respond to voice commands.

It can turn home appliances that are connected to the WiFi on and off.

Users can control the $4,000 doll with a phone app or by giving it oral instructions — much pricier than the traditional sex dolls that the company sells for as little as $400.