---
title: "Cloudflare Workers URL Image Optimization Benchmark Index"
slug: "cloudflare-workers-url-image-optimization-benchmark-index"
description: "Benchmark index comparing Cloudflare Workers URL-based image optimization vs Images binding on workers.dev subdomains, with pricing, limits, and configs."
author: "Hamdi Soudani"
category: "cloud-gpu-infra"
archetype: "benchmark-index"
published_at: "2026-11-27T16:05:53.563+00:00"
updated_at: "2026-11-27T16:05:53.631522+00:00"
canonical_url: "https://pyvren.com/blog/cloudflare-workers-url-image-optimization-benchmark-index"
reading_time_minutes: 4
word_count: 758
quality_score: 92
tags: ["cloudflare-workers","image-optimization","workers-dev","cdn-cgi","images-binding"]
keywords: ["cloudflare workers url image optimization","workers.dev cdn-cgi image transformation","cloudflare images binding vs url interface","wrangler url transformations allowed origins","cloudflare images unique transformations billing"]
sources: ["https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/","https://developers.cloudflare.com/images/optimization/transformations/url/","https://developers.cloudflare.com/images/optimization/binding/"]
---

# Cloudflare Workers URL Image Optimization Benchmark Index

> **TL;DR:** 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 Facts

- **URL interface enabled on workers.dev:** True as of November 25, 2026 changelog; previously custom domain only ([source](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/))
- **Max allowed origins per Worker:** 10 hostnames via allowed_origins / allowedOrigins ([source](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/))
- **Images binding max source size:** 20 MB per input stream ([source](https://developers.cloudflare.com/images/optimization/binding/))
- **URL interface caching behavior:** Transformed results automatically cached in production ([source](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/))
- **Binding caching behavior:** Not automatically cached; requires Workers Cache and Cache-Control headers ([source](https://developers.cloudflare.com/images/optimization/binding/))
- **Unique transformation billing:** Billed once per calendar month per source image and parameter combination ([source](https://developers.cloudflare.com/images/optimization/binding/))

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

| Capability | URL Interface (Worker-scoped) | Images Binding | Source |
| --- | --- | --- | --- |
| workers.dev support | Enabled Nov 25, 2026 | Supported | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| Custom domain required | No | No | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| Max allowed origins | 10 hostnames | N/A (raw bytes) | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| Max source image size | URL fetch limit | 20 MB per input stream | [Optimize with Workers](https://developers.cloudflare.com/images/optimization/binding/)
| Production caching | Automatic | Not automatic; enable Workers Cache | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| IMAGES binding required | No | Yes | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| Parameter order | Fixed | Controllable via chained calls | [Optimize with Workers](https://developers.cloudflare.com/images/optimization/binding/)
| Local dev support | Yes via `wrangler dev` / `cf dev` | Yes via `wrangler dev` / `cf dev` | [Changelog: URL-based image optimization in Workers](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)
| Unique transformation billing | Once per calendar month per source image and parameter combination | Once per calendar month per source image and parameter combination | [Transform via URL](https://developers.cloudflare.com/images/optimization/transformations/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

```jsonc
{
  "$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](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/og.png?v=e16165ca0d042f4d)

![Transform via URL · Cloudflare Images docs](https://developers.cloudflare.com/images/optimization/transformations/url/og.png?v=0994888894e80fb0)

![Optimize with Workers · Cloudflare Images docs](https://developers.cloudflare.com/images/optimization/binding/og.png?v=5a088449180af609)

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

## Primary Sources

- https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/
- https://developers.cloudflare.com/images/optimization/transformations/url/
- https://developers.cloudflare.com/images/optimization/binding/
