Edit request with source image, prompt, and optional mask.
Generation result with the edited image(s).
When the provider is not initialised or the API fails.
Upscales an image using a Replicate upscaling model.
Defaults to nightmareai/real-esrgan which supports 2x and 4x upscaling
via the scale input parameter.
Upscale request with source image and desired scale factor.
Generation result with the upscaled image.
When the provider is not initialised or the API fails.
Readonly providerOptional default
Edits an image using a Replicate model that supports image-to-image input.
Uses
black-forest-labs/flux-fillfor inpainting (when a mask is provided) or falls back tostability-ai/sdxlfor generic img2img transforms. The source image is passed as a base64 data URL in the model input.