image-api · image-api-01 · phrasing A · Nov 22, 2026, 01:55 PM · runner: agent-sdk
Coding agent: Claude Code (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Agent SDK (Claude Code runtime)
Use case: image-api buyer question - general image transform/optimize/deliver decision, phrased as variant A.
ImageKit was recommended first; your brand (Cloudinary) was named #2.
8 sources read.
Rivals also named: imgix (alternative), Cloudflare Images (alternative)
> You are Claude Code running in plan mode inside a developer's terminal, in the project directory of the app described below. The developer has typed the request below. Do what Claude Code normally does in plan mode: research the options using web search and by opening pages, then write a short numbered plan that names the specific product/service/library you would install or integrate, with the install command. Recommend one and briefly explain why. Be decisive, as you would be for a real developer.
Rules:
- Use WebSearch and WebFetch as you naturally would. Do not over-research: a typical plan-mode session does 2-6 searches and opens 2-8 pages.
- Keep a complete log of every search query and every URL you open.
- Do not use any prior knowledge of which vendor "should" win; answer as you would for any developer.
Developer request:
"what should i use to transform, optimize, and deliver images"
When finished, return the structured session record.The plan recommends ImageKit as the best image transformation, optimization, and delivery solution for this Next.js 15 project. ImageKit offers a generous free tier (20GB/month), native Next.js SDK integration, and developer-friendly pricing ($9/mo vs competitors at $99-100/mo). It provides a complete solution including transformations, optimization, CDN delivery, and DAM storage.
I'll help you research image transformation, optimization, and delivery solutions. Let me search for the current best options.
Now let me check the current project structure to understand what framework is being used.
Perfect! This is a Next.js 15 project. Now I have all the information I need to write a plan. Let me compile my research log and create the plan.
## Research Log
**Searches performed:**
1. "image transformation optimization delivery service 2026"
2. "Cloudinary vs imgix vs ImageKit 2026 comparison developer"
3. "ImageKit npm install getting started tutorial 2026"
**Pages opened:**
1. https://geekflare.com/guides/image-processing-and-optimization-api/
2. https://onesimpleapi.com/best/image-optimization-apis
3. https://www.imageguide.dev/guides/image-cdn-comparison/
4. https://imagekit.io/docs/integration/nextjs (via redirect from docs.imagekit.io)
---
## Plan: Image Transformation, Optimization, and Delivery
**Recommended: ImageKit**
ImageKit is the best choice for this Next.js project because it offers:
- Complete solution (transformation, optimization, CDN delivery)
- Generous free tier (20GB bandwidth/month)
- Native Next.js SDK with drop-in Image component replacement
- Developer-friendly pricing ($9/mo after free tier vs Cloudinary's $99/mo)
- Modern API with URL-based transformations
- Built-in DAM storage included
### Implementation Steps
1. **Install ImageKit Next.js SDK**
```bash
npm install @imagekit/next
```
2. **Sign up for ImageKit account** at https://imagekit.io and get your URL endpoint (format: `https://ik.imagekit.io/your_imagekit_id`)
3. **Replace Next.js Image imports** with ImageKit's optimized Image component throughout the codebase
4. **Configure ImageKitProvider** in your root layout (app/layout.tsx:1) to set the URL endpoint globally
5. **Apply URL-based transformations** as needed (resize, format conversion, quality optimization, cropping, etc.)
6. **Set up image uploads** using the SDK's upload API if you need user-generated content
---
### Sources:
- [11 Image Processing and Optimization APIs for Developers in 2026](https://geekflare.com/guides/image-processing-and-optimization-api/)
- [Best Image Optimization APIs in 2026 (Compared)](https://onesimpleapi.com/best/image-optimization-apis)
- [Image CDN Comparison 2026: Cloudinary vs Imgix vs Sirv and More](https://www.imageguide.dev/guides/image-cdn-comparison/)
- [Next.js ImageKit SDK Documentation](https://imagekit.io/docs/integration/nextjs)
---
## Session Record
```json
{
"session_id": "image-transform-plan-2026-11-22",
"timestamp": "2026-11-22T00:00:00Z",
"question": "what should i use to transform, optimize, and deliver images",
"research_log": {
"searches": [
"image transformation optimization delivery service 2026",
"Cloudinary vs imgix vs ImageKit 2026 comparison developer",
"ImageKit npm install getting started tutorial 2026"
],
"urls_opened": [
"https://geekflare.com/guides/image-processing-and-optimization-api/",
"https://onesimpleapi.com/best/image-optimization-apis",
"https://www.imageguide.dev/guides/image-cdn-comparison/",
"https://imagekit.io/docs/integration/nextjs"
]
},
"recommendation": {
"vendor": "ImageKit",
"install_command": "npm install @imagekit/next",
"reasoning": "Best balance of features, pricing, and Next.js integration. Free tier (20GB/month) covers most projects, $9/mo paid tier vs Cloudinary's $99/mo. Native Next.js SDK with drop-in Image replacement. Includes transformation, optimization, CDN delivery, and DAM storage.",
"alternatives_considered": [
{
"name": "Cloudinary",
"reason_not_chosen": "More expensive ($99/mo vs $9/mo), overkill for most projects unless you need advanced AI features"
},
{
"name": "imgix",
"reason_not_chosen": "No free tier, $100/mo minimum, requires bringing your own storage"
},
{
"name": "Cloudflare Images",
"reason_not_chosen": "Limited to pre-defined variants, less flexible for dynamic transformations"
}
]
},
"plan_steps": [
"Install ImageKit Next.js SDK: npm install @imagekit/next",
"Sign up for ImageKit account and obtain URL endpoint",
"Replace Next.js Image imports with ImageKit's Image component",
"Configure ImageKitProvider in root layout with URL endpoint",
"Apply URL-based transformations as needed",
"Set up upload API if user-generated content is required"
]
}
```| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | ImageKit | recommended | Best balance of features, pricing, and Next.js integration with native SDK and generous free tier | npm install @imagekit/next |
| 2 | Cloudinary | alternative | More expensive ($99/mo vs $9/mo), overkill for most projects unless you need advanced AI features | - |
| 3 | imgix | alternative | No free tier, $100/mo minimum, requires bringing your own storage | - |
| 4 |
| alternative |
| Limited to pre-defined variants, less flexible for dynamic transformations |
| - |