Optional providerProvider name (e.g. "stability", "replicate", "stable-diffusion-local").
When omitted, auto-detection via env vars is attempted.
Optional modelModel identifier. Most upscale providers use a fixed model so this is usually left unset.
Source image as a base64 data URL, raw base64 string, Buffer,
local file path, or HTTP/HTTPS URL.
Optional scaleInteger scale factor. 2 doubles each dimension; 4 quadruples them.
When both scale and width/height are provided, explicit dimensions
take precedence.
2
Optional widthTarget width in pixels (alternative to scale).
Optional heightTarget height in pixels (alternative to scale).
Optional apiOverride the provider API key instead of reading from env vars.
Optional baseOverride the provider base URL.
Optional providerArbitrary provider-specific options.
Optional usageOptional usage ledger configuration.
Options for an upscaleImage call.
Example