- Provide a text prompt describing the scene, style, or concept you want to visualize.
- Supply an image prompt to create variations, overlays, or edits of an existing picture.

Key DALL-E 2 APIs
DALL-E 2 provides three core RESTful endpoints for image creation and manipulation:
1. Image Generation
Create brand-new visuals by sending a textual description:2. Image Editing
Modify a specific region of an existing image by supplying:image: the original image filemask: a black-and-white mask highlighting the edit areaprompt: text describing what to place in the masked region
Ensure your mask file aligns exactly with the dimensions of the source image. Mismatched sizes will result in API errors.
3. Image Variation
Generate several stylistic renditions of an existing image:DALL-E 2 supports three output resolutions: 256×256, 512×512, and 1024×1024. Square images tend to produce the best results, but feel free to experiment with other aspect ratios.
