Edit request containing the source image, prompt, and optional mask.
Generation result with the edited image(s).
When the provider is not initialised.
When the Stability API returns an HTTP error status.
Upscales an image using the Stability AI upscale endpoint.
Uses /v2beta/stable-image/upscale/conservative which takes an image
and a target width to produce a higher-resolution version.
Upscale request with the source image and desired dimensions.
Generation result with the upscaled image.
When the provider is not initialised.
When the Stability API returns an HTTP error status.
https://platform.stability.ai/docs/api-reference#tag/Upscale
Readonly providerOptional default
Edits an image using the Stability AI image-to-image endpoint.
Routes to different endpoints depending on the edit mode:
'img2img'(default) —/v2beta/stable-image/generate/sd3withimageandstrength.'inpaint'— same endpoint but additionally includesmask_image.'outpaint'— currently treated identically toimg2img(provider does not expose a dedicated outpainting endpoint in the v2beta surface).