Content
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).
post/v1/content/transform
Request
- Base URLhttps://brew.new/api
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
Request body
Response
The operation result.
Changes
No recorded changes to this operation across all 1 revision of this API.