- 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:| API | Description | Typical Use Case |
|---|---|---|
| Image Generation | Generate new images from scratch based on a descriptive text prompt. | Concept art, storyboarding, product mockups |
| Image Editing | Edit or extend an existing image by applying a mask and text prompt to specify changes. | Photo retouching, add/remove objects |
| Image Variation | Produce multiple stylistic variations of a source image without any additional text input. | Branding explorations, style testing |

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.
