Skip to main content
Crowdfunding
Python + AI for Geeks
Practice

Cost-effective Image Prompt Writing

While Stable Diffusion and Midjourney are popular image generation AIs, this lesson will focus on DALL-E, the image generation AI model used by ChatGPT, specifically the latest model, DALL-E-3.


Aspect Ratios Supported by DALL-E 3

  1. Square (1:1) : 1024 x 1024

  2. Landscape (7:4) : 1792 x 1024

  3. Portrait (4:7) : 1024 x 1792

The default aspect ratio for most image-generating AIs, including DALL-E 3, is 1:1 (Square).

For blog post cover images, which typically use a wider format, it is recommended to specify 7:4 aspect ratio or Landscape in your prompt.


Prompt Comparison

Bad Prompt Example
Blog post cover image depicting the concept of taming ChatGPT through prompt engineering

vs

Good Prompt Example (Including Aspect Ratio)
Blog post cover image depicting the concept of taming ChatGPT through prompt engineering, with a 7:4 aspect ratio

Note that you can use a comma (,) when adding an aspect ratio to the prompt, or you can write it as a narrative sentence without a comma.

These separators, such as commas in a prompt, are commonly referred to as Delimiters.

Using delimiters like commas or periods to structure prompts clearly helps the AI better interpret and meet the requirements, reducing misunderstandings.

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.