2 of the best ASX artificial intelligence shares to buy

These two businesses give investors very different ways to gain exposure to growing AI infrastructure demand.

Artificial intelligence (AI) is creating opportunities well beyond companies like OpenAI that are developing generative AI models.

These are two ASX shares I would buy for AI exposure.

Couple using their digital tablet together.

Image source: Getty Images

NEXTDC Ltd (ASX: NXT)

NEXTDC is one of my preferred ways to gain exposure to the physical infrastructure needed for AI.

The company operates data centres across Australia and other parts of the Asia-Pacific region.

AI workloads require enormous amounts of computing power, but that also means they require electricity, cooling, and specialist facilities capable of housing increasingly powerful hardware.

That is where NEXTDC comes in. What I like is that the company is not simply building data centres and hoping customers eventually arrive.

The ASX artificial intelligence share has accumulated a substantial amount of contracted capacity and a large forward order book. To me, that provides evidence that customers are already committing to future infrastructure.

If AI continues driving demand for computing capacity, NEXTDC could have years of expansion ahead as it develops new facilities and brings contracted capacity online.

The main risk is the amount of capital required to fund that growth. Data centres are expensive to build, and projects can face delays around power, construction, and approvals.

Even so, I think NEXTDC is well placed to benefit as demand for digital infrastructure keeps growing.

Megaport Ltd (ASX: MP1)

Megaport is an ASX tech share that provides investors with a different type of artificial intelligence exposure.

Rather than owning the data centres themselves, Megaport helps businesses connect data centres, cloud providers, and other digital infrastructure through its software-defined network.

I think that becomes increasingly valuable as computing becomes more complex.

A business running AI workloads may use infrastructure across several locations and cloud platforms rather than keeping everything in one place. Those systems need fast and flexible connections between them.

Megaport allows customers to set up that connectivity without relying entirely on traditional physical network arrangements.

That gives the company an opportunity to benefit as businesses use more cloud infrastructure and move larger amounts of data between different locations.

I also like that Megaport can expand without needing to fund the same level of physical infrastructure as a data centre operator.

There will still be competition, and the company needs to keep growing customers and usage.

But I think greater demand for cloud and AI connectivity gives Megaport an attractive long-term opportunity.

Foolish takeaway

I think NEXTDC and Megaport offer two different ways to invest in the infrastructure supporting AI.

NEXTDC provides the physical space, power, and cooling needed for computing capacity, while Megaport helps connect that infrastructure together.

For me, both ASX shares could have plenty of growth ahead if artificial intelligence investment continues expanding over the coming years.

Motley Fool contributor Grace Alvino has no position in any of the stocks mentioned. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has positions in and has recommended Megaport. The Motley Fool Australia has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy. This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.

More on AI Stocks

View of a row of blue and black server racks in a data centre.
AI Stocks

What does Anthropic's $32b Queensland data centre mean for ASX AI shares?

These stocks could be set to benefit.

Read more »

Two smiling colleagues looking at a tablet in a data centre.
AI Stocks

How to target the different layers of the artificial intelligence buildout

Here are some of the best AI ETFs right now.

Read more »

IT technician works on a laptop in big data centre full of rack servers.
Broker Notes

Down 32%: 3 reasons to buy the BIG dip in NextDC shares today

A leading expert forecasts better days ahead for NextDC’s beaten-down shares. But why?

Read more »

Two smiling colleagues looking at a tablet in a data centre.
AI Stocks

You don't need to own Nvidia to invest in AI – Here are the best Aussie artificial intelligence shares

There's still ways to target AI here in Australia.

Read more »

Woman and AI robot working together in the office.
AI Stocks

Why this ASX AI stock could rise 50%

A top broker believes this share could have major upside potential.

Read more »

Processor chip on circuit board with copy space for design.
AI Stocks

NextDC shares have fallen 14% in a month. Is the AI data centre boom over?

Contracted capacity tripled. The shares fell anyway.

Read more »

Engineer in sterile coverall holds microchip.
AI Stocks

How much could $10,000 invested in these AI focussed ETFs be worth in a year?

Which AI fund is performing best?

Read more »

IT specialist using laptop in data centre full of server racks.
AI Stocks

This ASX stock could be a surprise winner of the AI boom

This stock could be set for further growth.

Read more »