image-api · image-api-02 · phrasing C · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: image-api buyer question - Next.js e-commerce product image pipeline, phrased as variant C.
ImageKit was recommended first; your brand was not mentioned in this session.
6 sources read.
Rivals also named: Vercel Image Optimization (next/image) (alternative)
> compare Vercel's built-in Image Optimization vs ImageKit for a Next.js storefront's product imagesRecommend ImageKit over Vercel's built-in Image Optimization for this storefront. Product catalogs are dynamic, CMS/DAM-driven media that outlive any single hosting choice, and ImageKit gives predictable bandwidth-based pricing, native AVIF, and ecommerce-specific transforms (smart/face-aware crop, background removal) that next/image doesn't offer, versus Vercel's per-transformation + cache-read/write billing that scales unpredictably with traffic and locks optimization to the Vercel platform. Vercel's built-in optimizer remains the better fit for smaller, mostly-static image sets that don't need an external CDN.
1. Install the ImageKit Next.js SDK: `npm install @imagekit/next`
2. Create an ImageKit account and URL endpoint; either upload product images to ImageKit's media library/DAM or point ImageKit's origin at the existing product image source (S3/CMS) so it proxies and caches on first request.
3. Wrap the root layout in `<ImageKitProvider urlEndpoint="...">` so every image component inherits the endpoint.
4. Swap `import Image from 'next/image'` to `import { Image } from '@imagekit/next'` across product listing, PDP gallery, and cart components — props stay compatible, so this is largely a find-and-replace.
5. Add ImageKit transformation params per use case: small square crops for grid thumbnails (with smart/face-aware crop for apparel), larger `format=auto`/AVIF variants for the PDP hero and zoom image, and a low-quality placeholder for blur-up loading.
6. (Optional, ecommerce-specific) Turn on ImageKit's background-removal/generative-fill extensions for hero product shots to standardize backgrounds without a design tool round-trip.
7. Set a bandwidth budget alert in the ImageKit dashboard against the Lite ($9/mo, 40GB) or Pro ($89/mo, 225GB) plan based on expected traffic, and remove any now-redundant `next/image` remote-pattern config for the swapped images.
8. Keep `next/image` (no extra install) for any purely local, static, non-product assets (logo, icons, marketing banners baked into the repo) where Vercel's built-in optimizer already suffices and an external CDN adds no value.| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | ImageKit | recommended | Dedicated image CDN with predictable bandwidth pricing, native AVIF, and ecommerce-relevant transforms (smart crop, background removal) that fit a dynamic, growing product catalog better than usage-billed platform optimization | npm install @imagekit/next |
| 2 | Vercel Image Optimization (next/image) | alternative | Good default for local/static images on Vercel, but bills per transformation plus cache reads/writes, which scales unpredictably with storefront traffic and ties optimization to the Vercel platform | - |