# DALL-E Variants

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2F8bYjStLYLfpGiYV7JBqm%2Fimage.png?alt=media&#x26;token=5820369e-ad50-4619-8ce5-40fc60694c39" alt=""><figcaption></figcaption></figure>

## Description

The OpenAI component allows you to integrate OpenAI DALL-E image generation into your flows. In particular, the following versions are supported:

* *DALL-E 3*

The OpenAI component has the identifier of opa-**X**, where **X** represents the instance number of the OpenAI component.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FtgmiEFlBuhukBHhB8G3f%2Fimage.png?alt=media&#x26;token=e578d7dd-ac81-424e-bc94-656bb8a83dfc" alt=""><figcaption></figcaption></figure>

## Inputs

The OpenAI component has the following input connections.

| Input Name        | Description                                                                                     | Constraints                                                                                                      |
| ----------------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| From Data Loaders | This input connection represents the context information for the OpenAI model.                  | Must originate from a Data Loader component.                                                                     |
| From Input/LLM    | This input connection represents the natural language textual description of the desired image. | Must originate from a component that generates a text string as output such as a Python or Text Input component. |

## Component settings

| Parameter Name | Description                                                                                                                                                                                        |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Model          | <p>This parameter specifies the version of OpenAI that the component should use. Available values:<br>  <em>-  DALL-E 3</em></p>                                                                   |
| Quantity       | Specifies the number of images to generate.                                                                                                                                                        |
| Size           | Specify the output image dimensions.                                                                                                                                                               |
| Prompt         | Describes how you want the OpenAI model to respond. For example, you can specify the role, manner and rules that OpenAI should adhere to. Also mention the component ID to connect the components. |

## Advanced configurations

This OpenAI component has no advanced configurations.

## Outputs

The OpenAI component has the following output connections.

| Output Name | Description                                                                   | Constraints                                                    |
| ----------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------- |
| Image       | This output connection contains the graphical result of the OpenAI component. | Can be connected to any component that accepts a string input. |

## Use case

Here is a simple use case of the OpenAI component, where the OpenAI component is being used with the DALL-E 3 model, in order to generate an image described with natural language.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FYnRwctc3ESafI5FgPAKf%2Fimage.png?alt=media&#x26;token=f0dd49c7-100d-4264-ba03-8763ccd8f4e4" alt=""><figcaption></figcaption></figure>
