OpenAI Tools
OpenAI offers powerful AI models for various tasks including image generation, editing, and deep research analysis. Dify has integrated tools leveraging these capabilities, including DALL-E 2, DALL-E 3, GPT-IMAGE-1, and the Deep Research tool. This document outlines the steps to configure and use these OpenAI tools in Dify.
Please apply for an API Key on the OpenAI Platform. This key will be used for all OpenAI image tools.
Important Note for GPT Image-1 Model: If you plan to use the GPT-Image-1 model, your organization must complete verification first. Without organization verification, you'll receive a 403 error. To complete verification, please visit the API Organization Verification guide.
Important Note for Deep Research Tool: The Deep Research tool requires access to OpenAI's specialized research models. Ensure your API key has access to these models and be aware that deep research tasks may consume significant tokens and time.
The OpenAI tools (including DALL-E, GPT IMAGE, and Deep Research) can be found in the Plugin Marketplace. Please install the ones you need.
On the Dify navigation page, click and fill in the API Key. Repeat this for each OpenAI tool you install.
Note: Base URL and Organization ID are optional. The Organization IDs can be found on your Organization settings page.

You can use the OpenAI tools in the following application types:

Both Chatflow and Workflow applications support nodes for the installed OpenAI tools (e.g., , , ). After adding a node, you need to fill in the necessary inputs with variables referencing user input or previous node outputs.
For image tools, use variables to reference the image output in the "End" node or subsequent nodes.
For the Deep Research tool, you can:
The Deep Research tool supports three main actions:


When a research task is started, it will initially show as "queued" status while waiting to be processed.

When a research task is completed, it will return comprehensive reports with numbered citations and reference lists for completed research tasks.
