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.
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
| Capability | URL Interface (Worker-scoped) | Images Binding | Source |
|---|---|---|---|
| workers.dev support | Enabled Nov 25, 2026 | Supported | Changelog: URL-based image optimization in Workers |
| Custom domain required | No | No | Changelog: URL-based image optimization in Workers |
| Max allowed origins | 10 hostnames | N/A (raw bytes) | Changelog: URL-based image optimization in Workers |
| Max source image size | URL fetch limit | 20 MB per input stream | Optimize with Workers |
| Production caching | Automatic | Not automatic; enable Workers Cache | Changelog: URL-based image optimization in Workers |
| IMAGES binding required | No | Yes | Changelog: URL-based image optimization in Workers |
| Parameter order | Fixed | Controllable via chained calls | Optimize with Workers |
| Local dev support | Yes via wrangler dev / cf dev | Yes via wrangler dev / cf dev | Changelog: URL-based image optimization in Workers |
| 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 |
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
{
"$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_dateis set to2026-11-27or later in Wrangler. - Add
images.url_transformations.enabled = trueto Wrangler orcloudflare.config.ts. - List up to 10 external source hostnames in
allowed_originsif images live outside your zone. - Confirm Worker routes match
/cdn-cgi/image/*; path prefixes narrower than/*will not match transformation requests. - Deploy with
enabled: falseto disable; do not rely on config removal. - For binding workloads, enable Workers Cache and set
Cache-Control: public, max-age=3600, stale-while-revalidate=86400to 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.



Reader Q&A
Frequently Asked Questions
Do Workers URL transformations require an IMAGES binding?
Can I use external source images with Worker-scoped URL transformations?
Does the Images binding cache responses automatically?
At what request volume does the URL interface beat the binding on cost?
Bibliography & Verification
Primary Sources & References
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.
Keep Reading
Related Dispatches
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.