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, which also means they need electricity, cooling, and specialised 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 substantial 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 continues to grow.

Megaport Ltd (ASX: MP1)

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

Rather than owning data centres itself, Megaport helps businesses connect to 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 distinct ways to invest in the infrastructure that supports 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

Two woman holding a tablet and clipboard examine a server rack in a data centre.
AI Stocks

The AI share sell-off: 3 ASX stocks I'd buy while investors are nervous

Billions are being spent on AI infrastructure, and I think these businesses could benefit as that investment continues.

Read more »

A concerned man looking at his laptop.
AI Stocks

What on Earth is going on with the NEXTDC share price this year?

Shares have gone from crashing to soaring in a matter of weeks. I've been looking at what comes next.

Read more »

Two woman holding a tablet and clipboard examine a server rack in a data centre.
AI Stocks

Would I buy NEXTDC shares after its 50% jump?

Two major data centre operators have made a surprise move involving NEXTDC. Here's why I think investors should pay attention.

Read more »

IT technician works on a laptop in big data centre full of rack servers.
AI Stocks

5 reasons to buy NEXTDC shares this month

The shares have fallen sharply, but I think the company's contracted demand and growth opportunities could reward patient investors.

Read more »

Man looking at his tablet in a data centre.
AI Stocks

Where could Megaport shares be in 12 months?

The company has secured some enormous contracts, and analysts believe there's plenty more growth to come.

Read more »

IT technician and young female intern walking next to sever racks in a data centre while using a laptop.
AI Stocks

Up 10%! Does today's big news make NEXTDC shares a buy?

After last week's enormous sell-off, I look at whether today's announcement could help restore confidence in the business.

Read more »

Engineer in sterile coverall holds microchip.
AI Stocks

Megaport shares have rocketed 171% since April: Are they still a buy?

I think Megaport shares could climb even higher. But by how much?

Read more »

Woman analysing data.
AI Stocks

Are NextDC shares 'incredibly cheap' after the sell-off?

I take a closer look at whether NEXTDC’s discount to asset value has become too large.

Read more »