Tesla CEO Elon Musk announced on Sunday that the EV maker has made over three million cars and congratulated the Shanghai factory for its production.

"Congrats Giga Shanghai on making millionth car! Total Teslas made now over 3M," Musk tweeted.

Tesla began production of its first car model in 2009. The Roadster sports cars initially cost about $109,000. A Tesla in 2022 can be purchased for around $58,000.

The Shanghai factory opened in 2019. It has helped lower production costs for the U.S. automaker.

But the factory has dealt with a recent lockdown in China, which made parts harder to access.

Tesla also has factories in Fremont, California and Austin, Texas. In July, Musk said the Fremont factory made two million cars.

In March, Tesla opened a roughly $5 billion "gigafactory" near Berlin, Germany. The opening of the plant, Tesla's first in Europe, was delayed for eight months. The German plant can produce 500,000 cars annually if run at full capacity.

Tesla has seen a sharp jump in production. The company said in July that it delivered 254,695 vehicles in the second quarter -- a 26.5% gain from the 201,250 vehicles in the second quarter of 2021.