---
title: "text(_:)"
framework: imageplayground
role: symbol
role_heading: Type Method
path: "imageplayground/imageplaygroundconcept/text(_:)"
---

# text(_:)

Creates a concept structure that includes a short text description.

## Declaration

```swift
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

Return Value A concept object that encapsulates the specified text.

## Discussion

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.

## See Also

### Describing the image

- [extracted(from:title:)](imageplayground/imageplaygroundconcept/extracted(from:title:).md)
- [drawing(_:)](imageplayground/imageplaygroundconcept/drawing(_:).md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-29ora.md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-2s44c.md)
