Skip to main content
This page preserves the v2.7.2 DalleTools example as a legacy reference.
DALL-E models are deprecated. This DalleTools example is retained as a legacy reference and no longer runs against the current OpenAI API. Use OpenAITools with GPT Image 2 in Image Generation Agent.

Legacy Source

This example expected the openai package and an OPENAI_API_KEY. Its DalleTools calls no longer run against the current OpenAI API.

Current Alternative

Follow Image Generation Agent to generate and save images with OpenAITools and GPT Image 2. For details, see Dalle cookbook.