ParametersSize

Size Parameter

Request logos at exact pixel dimensions with ?size= and understand what’s precomputed vs on-demand.

Size

Use size to request a logo at a specific width and height in pixels.

Quick take: pass a single integer (e.g. 64) to get a square image sized 64x64.

query
sizeinteger

Target size in pixels. A single value returns a square image (for example, 64 means 64x64).

If a size is generated on demand, the response includes X-BrandQL-Generated: true.

curl "https://api.brandql.com/logo/stripe.com?size=64"

What values are supported?

  • Single integer (recommended): 16, 32, 64, 128, 256, 512
  • Square output: a single integer always returns a square image
  • If you pass a size we don’t precompute: we’ll generate it on first request, then cache it

Precomputed vs on‑demand

We generate the most common sizes ahead of time for speed. Everything else is created on first request.

SizeAvailabilityTypical use
16On‑demandFavicons, tiny badges
32PrecomputedLists, tables, menus
64PrecomputedCards, avatars
128PrecomputedProduct pages, profiles
256On‑demandHigh‑DPI thumbnails
512On‑demandFull‑bleed images

Combine with variants

Size works with variant. If the requested variant isn’t available, we fall back to the default logo unless you set fallback=false. See Variant Parameter.

Common sizes, and when to use them

  • 16 — favicons, tiny badges
  • 32 — lists, tables, menus
  • 64 — cards, avatars
  • 128 — product pages, profiles
  • 256 — high‑DPI thumbnails
  • 512 — full‑bleed images

Notes