Skip to main content
The source-fidelity code uses DalleTools, whose supported DALL-E models are deprecated. Migrate the image path to GPT Image 2 before use.
DALL-E models are deprecated. This source-fidelity example is preserved for reference and should not be run as written. Use Image Generation Agent with GPT Image 2.
generate_images.py

Current Alternative

Follow Image Generation Agent to generate images with GPT Image 2. Full source: cookbook/90_models/openai/chat/generate_images.py