1. Receive image generation request with prompt and parameters.
2. Select the appropriate OpenAI image model based on the request.
3. Validate parameters against the selected model's capabilities.
4. Generate images using the OpenAI Images API.
5. Create an HTML gallery to display the generated images.
6. Save images, prompts, and the HTML gallery to the output directory.
7. Log the process and any errors.