<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "macOS: 15.1.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundConcept/image(_:)-2s44c",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB7ConceptV5imageyACSg10Foundation3URLVFZ"
  },
  "title" : "image(_:)"
}
-->

# image(_:)

Creates a concept structure from the image at the specified URL.

```
static func image(_ url: URL) -> ImagePlaygroundConcept?
```

## Parameters

`url`

The URL of a local file that contains the image you want to
pass to the diffusion model.

## Discussion

Call this method when you want to use an image as the basis for generating
a new image. Typically, you include other text-based concept structures in
addition to this one. Include at most one image among the collection of
concepts. Including more than one image yields unpredictable image results.

---

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)