optimize
Convert format and/or compress an image. $0.005 per call. Input: an image via source URL. Params: format (webp|avif|jpeg|png|gif); quality (1-100, default 85 — lower is smaller). At least one of format/quality is required. Output: the optimized image as a short-lived signed URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| source | Yes | Public https:// URL of the source image to process. |