<!--
{
  "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/extracted(from:title:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB7ConceptV9extracted4from5titleACSS_SSSgtFZ"
  },
  "title" : "extracted(from:title:)"
}
-->

# extracted(from:title:)

Creates a concept structure from a long-form string and a title that
guides the extraction of concepts from that string.

```
static func extracted(from text: String, title: String? = nil) -> ImagePlaygroundConcept
```

## Parameters

`text`

A long text description, such as a paragraph or document. You
can specify any length string you want. For strings above a minimum
length, the system extracts important or interesting concepts using
the contents of `title` as a guide. It converts the concepts it extracts
into a separate input prompts for the diffusion model. For strings
below the minimum length, the system passes the entire string to the model.

`title`

A concise summary of the text you pass in the `text` parameter.
The system uses this string as a guide to extract concepts from the `text` parameter.

## Return Value

A concept object that encapsulates the concepts from the specified text.

## Discussion

Call this method when you want to use long-form text to generate an image. The
method extracts relevant details from the text and uses them to create the returned object.

---

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)