Azure OpenAI Image Generation and Editing
Azure OpenAI offers powerful AI models for generating and editing images based on text prompts. Dify has integrated tools leveraging these capabilities for general image generation/editing functions. This document outlines the steps to configure and use these Azure OpenAI image tools in Dify.
Please apply for an API Key on the Azure OpenAI Platform. This key will be used for all Azure OpenAI image tools.
In addition to the API Key, you will also need the following information to configure the plugin:
The Azure OpenAI image tools (e.g., GPT IMAGE) can be found in the Plugin Marketplace.
Please install the tools you need.
On the Dify navigation page, click and fill in the required fields.
If you have multiple Azure OpenAI deployments, repeat this for each deployment.
The following fields are available for configuration:
You can use the Azure OpenAI Image tools in the following application types:
Both Chatflow and Workflow applications support nodes for the installed Azure OpenAI Image tools (e.g., ). After adding a node, you need to fill in the necessary inputs (like "Prompt") with variables referencing user input or previous node outputs. Finally, use the variable to reference the image output by the tool in the "End" node or subsequent nodes.
Add the desired Azure OpenAI Image tools in the Agent application settings. Then, send a relevant prompt (e.g., an image description for generation, or an image and edit instruction) in the dialog box to call the appropriate tool.