Contents

sourceImage

An image to use as source input for generating the new image.

Declaration

@MainActor @objc @preconcurrency var sourceImage: UIImage? { get set }
@MainActor @objc @preconcurrency var sourceImage: NSImage? { get set }

Discussion

If you have an existing image that you want to use as a starting point for the new image, add it to this property. If you don’t supply a source image, the system creates the new image from the prompt text you provide.

Typically, you provide an image big enough to fit the device’s display. The expected minimum size is 384 x 384 pixels, and the recommended maximum size is 4096 x 4096 pixels.

See Also

Specifying the source content