# Dall-e

> Tool author @Dify.

{% hint style="warning" %}
"Tools" has been fully upgraded to the "Plugins". For more details, please refer to [Install and Use Plugins](https://docs.dify.ai/plugins/quick-start/install-plugins). The content below has been archived.
{% endhint %}

DALL-E is an AI image generator developed by OpenAI that generates images based on text prompts. Dify has integrated the DALL-E tool, and the following are the steps to configure and use the DALL-E tool in Dify.

## 1. Apply for OpenAI's API Key

Please apply for an API Key at [OpenAI Platform](https://platform.openai.com/), and ensure that your account has sufficient Credits.

## 2. Fill in the configuration in Dify

In the Dify navigation page, click `Tools > DALL-E > Authorize` and fill in the API Key.

![](https://3866086014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRncMhlfeYTrpujwzDIqw%2Fuploads%2Fgit-blob-bd3b03723008d36842c7fd610cf621a5bb0e5fae%2Ftools-dalle.png?alt=media)

## 3. Use the tool

* **Chatflow / Workflow Applications**

Both Chatflow and Workflow applications support the `DALL-E` tool node. After adding it, you need to fill in the "Input Variables → Prompt" in the node with [variables](https://docs.dify.ai/guides/workflow/variables) to reference the user's input prompt or the content generated by the previous node. Finally, use the variable to reference the image output by `DALL-E` in the "End" node.

* **Agent Applications**

Add the `DALL-E` tool in the Agent application, then send a picture description in the dialog box to call the tool to generate an AI image.
