As the company supplying 80% of the necessary training chips, Nvidia was arguably the biggest winner in 2023's artificial intelligence (AI) boom. That said, it makes sense for investors to diversify their holdings to target different sides of the long-term opportunity. Let's look at why Alphabet (GOOG 9.96%) (GOOGL 10.22%) and Meta Platforms (META 0.43%) could also have a place in your portfolio in 2024 and beyond.

1. Alphabet

With a market cap of $1.79 trillion, Alphabet is already the fourth-largest company in the world, and it will take a lot of momentum to power continued expansion. But AI may be able to do the trick. The tech giant is heavily incorporating AI infrastructure into its cloud-computing platform, which could generate much-needed diversification and long-term growth.

Among AI companies, Nvidia is particularly successful because it targets the "picks and shovels" side of the opportunity, minimizing competition while maximizing the total addressable market for its products. Google is developing a similar strategy (albeit higher on the value chain) by turning Google Cloud into a one-stop shop for all its enterprise clients' data-management and AI training needs. And while Google isn't the only cloud-service provider employing this strategy, it has some key advantages.

Person with tablet considering investment decisions.

Image source: Getty Images.

According to CEO Sundar Pichai, 70% of generative AI start-up unicorns use Google's infrastructure to train and run their models. This is a big vote of confidence in the platform's quality and price point. And Google plans to build on this advantage with proprietary AI chips (called tensor processing units), which can bring down costs through vertical integration and reduce the company's reliance on third-party suppliers like Nvidia.

Alphabet's low valuation is icing on the cake for investors. With a forward price-to-earnings (P/E) multiple of just 22, the stock is significantly cheaper than the NASDAQ 100's estimate of 29.

2. Meta Platforms

Following the release of ChatGPT in late 2022, Meta's share price has been on a tear, jumping a substantial 174% in the last 12 months alone. Investors are optimistic about the company's decision to pivot away from metaverse development to focus more on generative AI, which could optimize its advertising and improve its consumer-facing platforms.

At first glance, Meta has some clear advantages in its AI efforts. The social media giant's business model has always involved gathering and monetizing huge amounts of data. And generative AI opens another avenue for this strategy through large language models (LLMs), which are algorithms designed to create content out of trained datasets.

Meta is also adding conversational AI experiences across its popular apps, introducing features ranging from more responsive image editing on Instagram to conversational chatbots with distinct personalities on WhatsApp. These efforts probably won't immediately impact Meta's operational performance, but they could help maintain its platforms' user engagement and generate valuable customer data.

On the operational side, Meta is bouncing back from the challenges it faced in 2022. Third-quarter (2023) revenue jumped by 23% year over year to $34.15 billion, while net income jumped 164% to $11.58 billion, helped by aggressive cost cutting and layoffs. And with a forward P/E of just 22, it isn't too late for investors to bet on the company's long-term potential.

An increasingly competitive landscape

In 2024 and beyond, investors should expect the AI landscape to become increasingly competitive, especially on the software side of the market. With that in mind, it makes sense to bet on companies with potential economic moats. Alphabet and Meta Platforms fit the bill because of their treasure troves of user data, which can be used to train and refine LLMs. Both companies look poised for market-beating growth.