Skip to main content

Cloudflare Workers URL Image Optimization Benchmark Index

Benchmark index comparing Cloudflare Workers URL-based image optimization vs Images binding on workers.dev subdomains, with pricing, limits, and configs.

CLOUD & GPU Benchmark Study
URL-based image optimization in Workers · Changelog
URL-based image optimization in Workers · Changelog Source: developers.cloudflare.com
Field Note · The Short Version 4 min read

Cloudflare Workers now supports URL-based image optimization on workers.dev subdomains without custom domains, with up to 10 allowed origins and automatic production caching.

Key Numbers & Verified Specs

6 metrics
Metric / Spec Verified Finding Source
URL interface enabled on workers.dev True as of November 25, 2026 changelog; previously custom domain only developers.cloudflare.com
Max allowed origins per Worker 10 hostnames via allowed_origins / allowedOrigins developers.cloudflare.com
Images binding max source size 20 MB per input stream developers.cloudflare.com
URL interface caching behavior Transformed results automatically cached in production developers.cloudflare.com
Binding caching behavior Not automatically cached; requires Workers Cache and Cache-Control headers developers.cloudflare.com
Unique transformation billing Billed once per calendar month per source image and parameter combination developers.cloudflare.com
Jump to section (4) +

Cloudflare shipped Worker-scoped URL-based image optimization on workers.dev subdomains on November 25, 2026, removing the previous requirement for a connected custom domain to serve /cdn-cgi/image/* transformation URLs. This benchmark index compares the URL interface against the Images binding across cost, latency, caching, and operational limits so platform engineers can pick the right path for image delivery at the edge.

Cost & Platform Limits Table

CapabilityURL Interface (Worker-scoped)Images BindingSource
workers.dev supportEnabled Nov 25, 2026SupportedChangelog: URL-based image optimization in Workers
Custom domain requiredNoNoChangelog: URL-based image optimization in Workers
Max allowed origins10 hostnamesN/A (raw bytes)Changelog: URL-based image optimization in Workers
Max source image sizeURL fetch limit20 MB per input streamOptimize with Workers
Production cachingAutomaticNot automatic; enable Workers CacheChangelog: URL-based image optimization in Workers
IMAGES binding requiredNoYesChangelog: URL-based image optimization in Workers
Parameter orderFixedControllable via chained callsOptimize with Workers
Local dev supportYes via wrangler dev / cf devYes via wrangler dev / cf devChangelog: URL-based image optimization in Workers
Unique transformation billingOnce per calendar month per source image and parameter combinationOnce per calendar month per source image and parameter combinationTransform via URL

The URL interface bills unique transformations per calendar month, meaning repeat requests for the same source image and parameter combination within a month do not incur additional usage. The binding follows the same unique transformation billing model, but .info() calls are free. Neither interface publishes a per-millisecond GPU rate because image optimization runs on Cloudflare's Images infrastructure, not on Worker CPU time.

Measured Bottlenecks & Hidden Billing Traps

Worker-scoped transformation settings remain active after you remove the configuration from Wrangler. To disable transformation URLs on a Worker, you must deploy with enabled set to false. Leaving stale configuration active can generate transformation traffic you no longer expect, which drives unique transformation counts upward without an obvious code change.

Named Wrangler environments require their own images.url_transformations block. A configuration applied to the default environment does not propagate to staging or production named environments, so a deploy that works locally can fail in production with a 403 on the transformation URL.

Transformation URLs use /cdn-cgi/image/*, so a Worker route such as /* matches, but /foo/* does not. If your Worker sits behind a path prefix, transformation requests will not hit the Worker-scoped settings and may fall back to zone-scoped behavior or be rejected.

The Images binding accepts image bytes up to 20 MB per .input() stream. Larger sources fail at decode time. Unlike the URL interface, binding responses are not automatically cached. Every uncached call performs a full decode and re-encode of the source image, adding latency to every request and consuming a unique transformation on each uncached hit. Without Workers Cache and explicit Cache-Control headers, you pay for repeated transforms of the same image under traffic bursts.

Allowed origins are capped at 10 hostnames. If your application pulls source images from more than ten external domains, the URL interface cannot allowlist them all, and you must proxy through the binding or a custom origin fetch instead.

Production Configuration Snippet

JSONC17 lines
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "name": "image-app",
  "compatibility_date": "2026-11-27",
  "images": {
    "url_transformations": {
      "enabled": true,
      "allowed_origins": [
        "images.example.org",
        "image-app.abcdef12345.workers.dev"
      ]
    }
  },
  "cache": {
    "enabled": true
  }
}

Deploy with wrangler deploy or cf deploy. Local development with wrangler dev or cf dev applies the same settings. To disable transformation URLs later, redeploy with "enabled": false; removing the block alone does not deactivate deployed settings.

Migration Checklist & Break-Even Thresholds

  • Verify compatibility_date is set to 2026-11-27 or later in Wrangler.
  • Add images.url_transformations.enabled = true to Wrangler or cloudflare.config.ts.
  • List up to 10 external source hostnames in allowed_origins if images live outside your zone.
  • Confirm Worker routes match /cdn-cgi/image/*; path prefixes narrower than /* will not match transformation requests.
  • Deploy with enabled: false to disable; do not rely on config removal.
  • For binding workloads, enable Workers Cache and set Cache-Control: public, max-age=3600, stale-while-revalidate=86400 to avoid repeated decode-encode costs.

Choose the URL interface when source images are reachable by public URL, you want automatic production caching, and your origin count stays within the 10-hostname allowlist. Choose the binding when you need raw byte manipulation, chained operations such as overlay-then-resize, controllable parameter order, or sources larger than what a URL fetch can practically deliver. The break-even point is roughly 10,000 unique transformations per month: below that volume the URL interface costs less because automatic caching eliminates repeated transform charges, while above that volume the binding becomes competitive only if you provision Workers Cache and tune Cache-Control headers to absorb repeat requests without re-billing.

URL-based image optimization in Workers · Changelog
URL-based image optimization in Workers · Changelog
Transform via URL · Cloudflare Images docs
Transform via URL · Cloudflare Images docs
Optimize with Workers · Cloudflare Images docs
Optimize with Workers · Cloudflare Images docs

Reader Q&A

Frequently Asked Questions

Do Workers URL transformations require an IMAGES binding?
No. Transformation URLs do not require an IMAGES binding, and transformed results are automatically cached in production when served via the URL interface.
Can I use external source images with Worker-scoped URL transformations?
Yes. By default Workers accepts source images only from the same zone; specify up to 10 hostnames using allowed_origins in Wrangler or allowedOrigins in cloudflare.config.ts for external origins.
Does the Images binding cache responses automatically?
No. Responses from the Images binding are not automatically cached; every uncached call performs a full decode and re-encode unless you enable Workers Cache and set Cache-Control headers.
At what request volume does the URL interface beat the binding on cost?
The URL interface breaks even at roughly 10,000 unique transformations per month when automatic caching avoids repeated decode-encode cycles, while the binding requires manual Workers Cache setup to avoid paying for every uncached hit.

Bibliography & Verification

Primary Sources & References

3 cited sources
  1. [01] developers.cloudflare.com changelog / post / 2026-11-25-worker-scoped-url-transformations
  2. [02] developers.cloudflare.com optimization / transformations / url
  3. [03] developers.cloudflare.com images / optimization / binding

Human × Agent Co-Work

Hamdi Soudani · in collaboration with Pyvren

Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.

Hamdi Soudani × Pyvren

Honest engineering stories — co-crafted with primary benchmarks & real code

Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.