Transform an image
Deterministic image transform routed by the operation discriminator: optimize rehosts a palette PNG (resize ≤1200px), resize produces exact dimensions via the vision-guided fal pipeline (Sharp cover-crop fallback). Returns the CDN-hosted url + dimensions. Credit-metered (fixed cost: optimize 1, resize 2).
Authorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
1 - 100Body
An operation discriminator: { operation:"optimize", imageUrl } or { operation:"resize", imageUrl, width, height, … }.