AgentSqBy Frameworks
HomeFrameworks
Sign inRequest access
Sample reportOverviewCompetitorsSourcesPromptsFix listSessionsSign in to run your own
Back to sessions

image-api-02-b

image-api · image-api-02 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent

About this test

Clean session - no memory from other tests
What it was

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 B.

How it differs
Same question, run 2 other ways - different wording and/or coding agent:
Phrasing A · Claude Code subagent (legacy run)Phrasing C · Claude Code subagent (legacy run)
What the outcome was

Vercel Image Optimization (next/image default loader) was recommended first; your brand (Cloudinary (next-cloudinary)) was named #2.

8 sources read.

Rivals also named: imgix (alternative), ImageKit (mentioned), Uploadcare (mentioned)

claude-code - plan mode
> I'm building a Next.js e-commerce app on Vercel with a growing product catalog. I need automatic responsive image resizing, WebP/AVIF optimization, and fast global delivery, ideally something that plugs into next/image cleanly. What should I integrate?

Answer summary

Since the app is already deploying on Vercel, use next/image with Vercel's built-in Image Optimization (zero extra install, just configure remotePatterns/localPatterns in next.config.ts) — it already does automatic responsive resizing, WebP/AVIF negotiation, and CDN caching/delivery, which is exactly what was asked for with the cleanest possible next/image integration. If the catalog later needs a real asset-management layer (uploads, AI cropping, transformations beyond resize/format, DAM), layer in Cloudinary via next-cloudinary or a Cloudinary custom loader as a follow-on, not a replacement.

Plan

1. Keep using the native `next/image` component everywhere product images render — do not switch to a third-party `<Image>` replacement component. This is what makes the integration "clean": zero new component API to learn, same props (`src`, `width`, `height`, `sizes`, `fill`, etc.) you already use.

2. Enable Vercel's built-in Image Optimization for the project (no npm install required — it's part of the Vercel platform + next/image default loader). In the dashboard: Project → Settings → Billing → Image Optimization → review cost estimate → enable. This gives you automatic responsive resizing (Vercel generates the right width variant per `sizes`/device), automatic WebP/AVIF content negotiation via the `Accept` header, and edge-cached delivery on the Vercel CDN — the three things asked for, out of the box.

3. In `next.config.ts`, declare where product images live so Vercel knows what to optimize:
   ```ts
   const nextConfig: NextConfig = {
     images: {
       remotePatterns: [
         { protocol: 'https', hostname: 'your-product-images.example.com', pathname: '/catalog/**' },
       ],
       // or localPatterns if images ship in /public
     },
   };
   ```
   Install: none — this ships with `next` itself; you're just configuring it.

4. As the catalog grows, watch Image Optimization usage (transformations + cache reads/writes) in Vercel's usage dashboard so cost stays predictable; tune `minimumCacheTTL` and avoid re-optimizing tiny icons/SVGs (set `unoptimized` on those).

5. Only reach for a dedicated image CDN/DAM (Cloudinary, imgix) later if you need capabilities Vercel's optimizer doesn't do — e.g. user/vendor image uploads with moderation, AI-based cropping, on-the-fly overlays/watermarks, or a searchable asset library for merchandisers. If that day comes:
   - `npm install next-cloudinary` and use `CldImage` for the upload/DAM-heavy screens, or wire Cloudinary in as a custom `next/image` loader (`images: { loader: 'cloudinary', path: 'https://res.cloudinary.com/<cloud_name>/image/upload/' }`) to keep using `next/image` everywhere else.
   - imgix is a comparable alternative for the same "advanced DAM" tier, via a community-maintained `next/image` loader package.

Recommendation: start with Vercel's built-in Image Optimization (step 2-3) — it directly satisfies the stated requirements (responsive resizing, WebP/AVIF, global CDN) with the cleanest possible next/image integration since it's already the platform you deploy to, and it adds no new vendor, npm dependency, or account to manage. Revisit Cloudinary/imgix only if the catalog's needs grow into asset management rather than pure delivery optimization.

Vendors named

#NameFramingReasonInstall
1Vercel Image Optimization (next/image default loader)recommendedBuilt into the Vercel platform the app already deploys on; gives responsive resizing, WebP/AVIF, and CDN delivery with zero new dependency and the cleanest next/image integration -
2Cloudinary (next-cloudinary)alternativeStrong choice if the catalog later needs uploads, AI cropping, or a full DAM beyond pure resize/format optimization; offers CldImage component or a custom next/image loadernpm install next-cloudinary
3imgixalternativeComparable dedicated image CDN to Cloudinary for advanced transformation needs, integrates via a community next/image loader package

Sources timeline

  1. search “next/image loader Vercel automatic image optimization WebP AVIF CDN 2026”
  2. search “Cloudinary vs Imgix vs Vercel next/image loader comparison”
  3. Image Optimization with VercelRival cited
    https://vercel.com/docs/image-optimization
    Confirmed Vercel's built-in optimizer handles responsive resizing, WebP/AVIF, and CDN caching directly via next/image with no extra install
npm install @delicious-simplicity/next-image-imgix-loader
4ImageKitmentionedSurfaced in search results as another next/image-oriented optimization service, not evaluated in depth -
5UploadcarementionedSurfaced in search results discussing Next.js image optimization, not evaluated in depth -
search “Cloudinary next-cloudinary next/image loader integration npm install”
  • Installing Next Cloudinary - Next CloudinaryYours cited
    https://next.cloudinary.dev/installation
    Got the exact install command and setup steps for next-cloudinary as an alternative
  • next-cloudinary - npmYour listing cited
    https://www.npmjs.com/package/next-cloudinary
    Confirmed package capabilities (CldImage, automatic optimization, uploads) relative to next/image
  • NextJS Image Loader | Optimize Images in Next.js Using Custom LoadersYours cited
    https://cloudinary.com/blog/optimize-images-in-a-next-js-app-using-nextimage-and-custom-loaders
    Confirmed how Cloudinary can plug into the native next/image component as a custom loader instead of CldImage
  • search “imgix next.js image loader npm install next/image”