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

# text(_:)

Creates a concept structure that includes a short text description.

```
static func text(_ text: String) -> ImagePlaygroundConcept
```

## Parameters

`text`

The text that describes the image. Your text must be relatively
short, so specify single words or brief sentences. If you specify a
string that exceeds the model’s supported maximum string length, the
system tries to extract important or interesting concepts and use those instead.

## Return Value

A concept object that encapsulates the specified text.

## Discussion

Call this method when you want to use short strings to generate an image.
The system passes short strings in their entirety as input to the diffusion
model. If you provide a long string, the system tries to extract only the
relevant details and pass those to the model instead.

---

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)