Apple briefly surpassed Microsoft on Wednesday to become the most valuable company in the world, after it announced its push into artificial intelligence during its developers’ conference keynote on Monday.
However, Apple had a market cap of $3.3 trillion as of about 10:45 a.m. ET, edging out Microsoft’s market cap of $3.2 trillion.
That did not hold until the close, however, with Microsoft finishing ahead at the closing bell.
Investors, after digesting Apple’s expansive plans for artificial intelligence across its family of devices, sent shares surging more than 7% to a record high on Tuesday.
That enthusiasm continued into Wednesday’s session with shares rising another 2.8%.
Apple announced it would weave generative AI technology across its native apps and its latest devices, with features ranging from writing-assistance technology to generative AI-generated emojis.
Morgan Stanley, Evercore and Bank of America analysts said in notes to investors this week that Apple’s new AI features, called Apple Intelligence, would drive users to buy new iPhones.
“Restricting Apple Intelligence to iPhones sold within the last year adds to our conviction that AI can help kick off an iPhone super cycle,” Evercore analysts wrote.
There is a battle for the top.
Microsoft had surpassed Apple’s market cap earlier this year. Earlier this month, Nvidia passed Apple and briefly became the second-most valuable public U.S. company.
Microsoft is also likely to be a beneficiary of Apple’s AI ambitions.
Read more: iOS 18 Release Date: See When Its Coming Out
The iPhone maker announced that it would include OpenAI’s large-language models as an available feature for its users, with other models to come over time.
Microsoft is one of OpenAI’s largest investors, and its Azure cloud services have seen recent growth fueled by the widespread adoption of OpenAI’s models.