← All articles · May 6, 2026 · og.hjlabs.in

Cloudflare Workers vs Vercel OG 2026 — 10x Faster, 7x Cheaper

If you are choosing between Cloudflare Workers and Vercel OG (Satori) for your OG image generator, the marketing pages will not give you straight answers. This is a hands-on benchmark of both — cold start, p99, throughput, cost — across realistic loads.

The two approaches in one paragraph

Cloudflare Workers + SVG strings — concatenate an SVG template, return as image/svg+xml. No image library, no rasterization. Tiny bundle.

Vercel OG / Satori — render React JSX to SVG with Satori, optionally rasterize to PNG with resvg-wasm. Larger bundle, more flexible.

Test setup

Latency results

MetricCF Workers SVGVercel OG (PNG)Vercel OG (SVG-only)
p5011ms187ms94ms
p9528ms312ms156ms
p9954ms521ms241ms
Cold start22ms1,840ms1,420ms

Cloudflare Workers SVG is 10-20x faster on every metric. The Satori library (a few hundred KB of WASM) has to be loaded and warmed; SVG concatenation is plain JavaScript.

Throughput

For high-volume sites (1M+ shares/month), this matters. Vercel OG queues requests and you pay for compute time.

Cost per million requests

Both platforms have generous free tiers, but the per-unit economics diverge as you scale.

ProviderFree tierCost per 1M (after free)Compute time
Cloudflare Workers100K req/day free$0.30 per 1MCounts CPU only (10-20ms/req)
Vercel Edge Functions500K invocations/mo$2.00 per 1MCounts wall time (200ms/req)

For 5M OG image requests per month, Cloudflare costs ~$1.50, Vercel costs ~$10.

Bundle size

StackCompiled bundle
CF Workers SVG (raw)~12KB
CF Workers + Satori + resvg~3.2MB (just under Workers limit)
Vercel OG (Satori)~2.8MB

The Workers free tier limits scripts to 1MB compressed; the paid tier allows 10MB. SVG-only approach uses 1% of the limit.

Output quality

Where Vercel OG wins:

Where SVG approach wins:

The hybrid approach

The pattern og.hjlabs.in uses: SVG-first for instant response, with optional ?format=png that rasterizes via Resvg-WASM only when needed. The vast majority of social platform crawlers accept SVG; only Facebook and iMessage occasionally need PNG.

When to choose Vercel OG

When to choose Cloudflare Workers

The hosted middle path

Don't want to run either? Use a hosted service. og.hjlabs.in runs the Cloudflare Workers SVG approach for you — free, no signup, latency 10-30ms globally. The hosted route saves you the maintenance and gets you 90% of the value.

Bottom line

For raw performance and cost: Cloudflare Workers + SVG wins by 10x. For developer experience: Vercel OG wins for Next.js shops. For minimum-effort: a hosted service like og.hjlabs.in wins for everyone else. Pick based on your constraints, not the loudest marketing.

Generate your OG images and favicons

Free. URL-based API. Edge-cached. No signup.

Open the generator →

More from the blog