<!--
{
  "availability" : [
    "iOS: 18.4.0 - 27.0.0",
    "iPadOS: 18.4.0 - 27.0.0",
    "macCatalyst: 18.4.0 - 27.0.0",
    "macOS: 15.4.0 - 27.0.0",
    "visionOS: 2.4.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImageCreator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0A7CreatorC"
  },
  "title" : "ImageCreator"
}
-->

# ImageCreator

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

```
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:)`](/documentation/ImagePlayground/ImageCreator/images(for:style:limit:))
method to start the image generation process. Image generation occurs
asynchronously, delivering results back to your code using an
<doc://com.apple.documentation/documentation/Swift/AsyncSequence> object.

## Topics

### Creating the object

[`init()`](/documentation/ImagePlayground/ImageCreator/init())

Creates a new image creator object for you to use in your app.

### Generating images

[`images(for:style:limit:)`](/documentation/ImagePlayground/ImageCreator/images(for:style:limit:))

Starts the creation of images based on the description and style
information you provide.

[`availableStyles`](/documentation/ImagePlayground/ImageCreator/availableStyles)

The set of styles you can apply to the images you create.

[`ImageCreator.CreatedImage`](/documentation/ImagePlayground/ImageCreator/CreatedImage)

A structure that stores a programmatically generated image.

[`ImageCreator.Error`](/documentation/ImagePlayground/ImageCreator/Error)

Errors that can occur during the image generation process.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)