Skip to main content

Overview

Generate images from text prompts using DALL-E and other image generation models.

Python Usage

Basic Image Generation

DALL-E 2 (Faster, Lower Cost)

Save Image to File

Async Usage

Parameters

Result Object

The ImageResult object contains:
  • url: Image URL
  • b64_json: Base64 encoded image (if requested)
  • revised_prompt: DALL-E 3’s revised prompt
  • model: Model used
  • save(path): Method to save image to file