[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

# Increased bundle size after upgrading AI SDK to v5

120 views · 2 likes · 4 posts


Rohit (@cipherohit) · 2025-09-22

Is anyone else also facing the problem of increasing bundle size after upgrading vercel AI SDK to v5?


Anshuman Bhardwaj (@anshumanb) · 2025-10-03

Hi @cipherohit, welcome to the Vercel Community!

Can you share some before and after measurements of your bundle size? There's a minimal change in the size:

ai@v5:
https://bundlephobia.com/package/ai@5.0.59 - 67.5kB
ai@v4
https://bundlephobia.com/package/ai@4.3.19 - 53.8kB

Looking forward to hearing from you.


Pauline P. Narvas (@pawlean) · 2025-10-10 · ♥ 1

In case this is helpful:

https://github.com/vercel/ai/issues/9287


Rohit (@cipherohit) · 2025-10-22 · ♥ 1

Unfortunately I don’t have the exact number now. But  as far as I remember, It increased the bundle size by \~600kB