Contents

ImageCreator

Generates images programmatically from the description and style information you specify.

Declaration

final class ImageCreator

Overview

Use an ImageCreator object to generate images programmatically from your app on devices that support the capability. You provide a description of the image content, as a text string or as a combination of text and images. The system’s generative models use that information to generate one or more images and return them to your code.

Create an ImageCreator object and use its images(for:style:limit:) method to start the image generation process. Image generation occurs asynchronously, delivering results back to your code using an AsyncSequence object.

Topics

Creating the object

Generating images

Instance Methods