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

agentic-media-02-b

agentic-media · agentic-media-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: agentic-media buyer question - exposing image/video transformation as an agent tool-calling function, phrased as variant B.

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

Your brand (Cloudinary) was recommended first.

6 sources read.

Rivals also named: ImageKit (alternative), imgix (mentioned), Cloudflare Images (mentioned), Bunny Optimizer (mentioned)

claude-code - plan mode
> I'm using LangChain to build a content-generation agent that needs a 'transform_image' and 'transform_video' tool it can call with a URL plus parameters, returning a ready-to-use delivery URL. Which API is built for this kind of programmatic, parameter-driven transformation?

Answer summary

Recommend Cloudinary as the backing API for both tools: its transformation model is exactly "URL/asset in, parameter string out, CDN delivery URL out" for both images and video, it has the broadest parameter surface (300+ transformation parameters) of any option surveyed, and it already publishes first-party MCP/agent tooling and Node/Python SDKs that make wrapping it as two LangChain @tool functions a thin layer. ImageKit is noted as a credible alternative with simpler bandwidth-based pricing and solid video transform support; imgix and Cloudflare Images are mentioned but are image-only or feature-limited for the video half of this requirement.

Plan

Plan: back `transform_image` and `transform_video` with the Cloudinary API.

1. Provision Cloudinary (free tier is fine for building/testing) and capture cloud_name, api_key, api_secret as env vars.
2. Install the SDK: `pip install cloudinary` (this is a Python/LangChain agent, so use the Python SDK; `npm install cloudinary` if any part of the stack is Node).
3. Use Cloudinary's `fetch` delivery type so the tools never need to re-host source media: given an arbitrary source URL, Cloudinary can transform-and-deliver it directly (`https://res.cloudinary.com/<cloud>/image/fetch/<transformation>/<source_url>`), or upload once via `cloudinary.uploader.upload(url, ...)` and transform the resulting public_id afterward if you want caching/asset management.
4. Implement `transform_image(url: str, params: dict) -> str` as a LangChain `@tool`: map the params dict (width, height, crop mode, format, quality, effects, overlays, gravity, etc.) onto Cloudinary's transformation string via `cloudinary.CloudinaryImage(...).build_url(**params)`, and return the resulting secure_url. The agent never touches raw bytes -- it just gets back a delivery URL it can drop into generated content.
5. Implement `transform_video(url: str, params: dict) -> str` the same way using `cloudinary.CloudinaryVideo(...).build_url(**params)` -- trim, resize, format/codec conversion, overlays, and thumbnail-from-frame all take the same declarative parameter shape as the image API, so both tools share one mental model and one SDK.
6. Give each tool a tight JSON schema (dimensions, crop, format, quality, start_offset/duration for video, etc.) so the LLM passes structured args instead of raw transformation strings; sign URLs server-side (`sign_url=True`) if the assets are private.
7. If usage-based pricing predictability matters more than breadth, ImageKit is a drop-in-shaped alternative (`tr:w-300,h-300,...` URL params, its own Python/Node SDKs) with comparable image+video transform coverage.

Recommendation: Cloudinary, because the developer needs one consistent "URL + params -> delivery URL" contract that covers both images and video, and Cloudinary is the only service surveyed with a mature, symmetric transformation API for both media types plus documented first-party agent/MCP tooling -- exactly the shape of two LangChain tool calls.

Vendors named

#NameFramingReasonInstall
1CloudinaryrecommendedSymmetric, URL-parameter-driven transformation API for both images and video, 300+ parameters, first-party MCP/agent tooling and Python/Node SDKspip install cloudinary
2ImageKitalternativeClean URL-parameter transformation for both images and video (tr: prefix) with predictable bandwidth-based pricing instead of creditspip install imagekitio
3imgixmentionedStrong URL-parameter image transformation (200+ params) pointed at your own storage, but limited/no video transformation, so it only covers half the requirement

Sources timeline

  1. search “API for programmatic image and video transformation by URL parameters”
  2. search “LangChain agent tool image video transformation API”
  3. search “Cloudinary LangChain agent tool MCP”
  4. Best Image Transformation APIs in 2026 - DEV CommunityPublish here cited
pip install pyimgix
4Cloudflare ImagesmentionedPer-unique-transformation pricing and basic resize/crop/format operations, but images only and a smaller parameter set -
5Bunny OptimizermentionedFlat-rate CDN-attached image optimization, basic operations only, no video transformation -
https://dev.to/iterationlayer/best-image-transformation-apis-in-2026-3nni
Comparative overview of Cloudinary, ImageKit, imgix, Cloudflare Images, and Bunny Optimizer on parameter breadth, pricing model, and URL-transformation approach
  • Cloudinary for AI Agents | CloudinaryYours cited
    https://cloudinary.com/guides/agents/cloudinary-for-ai-agents
    Confirmed Cloudinary's declarative URL-transformation pattern, MCP servers, and SDK upload/return-URL flow map directly onto a LangChain tool implementation
  • Video Transformation | ImageKit.io DocumentationRival cited
    https://imagekit.io/docs/video-transformation
    Verified ImageKit's video transformation API also uses URL parameters and returns a delivery URL, establishing it as the closest alternative covering both media types