> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.dorik.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Generate images with AI

# Getting Started

You can create your perfect images or illustrations directly within Dorik using prompts. This article will guide you through the whole process.


---

# How to Generate Images with AI

Follow these steps to generate an image with AI:

1. Add an **image element** and open the element editor.
 
![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/gif-recording-2024-02-22-at-12_6atut5.gif)   
 
    
2. Click on the **sparkle icon** (✨) next to the **Image field.**

![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_ztw6na.png)
    

    
3. From the image generate prompt modal, choose the type of image you want: **photo or illustration**.

![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_5n1gis.png)


    
4. Provide details about your image preferences in the **command field**.


![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_1ujvn0r.png)
    
    
5. Choose the desired photo size from the dropdown like **Landscape, Portrait, and Square.**

![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_ufx904.png)    
    

    
6. Click on the `Generate` button.

![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_1l4h29x.png) 
    

    
7. Once the image is generated, either `insert` it into the element or save it to the `library`.


![](https://storage.crisp.chat/users/helpdesk/website/cf1fc9cc00911000/image_15jwodk.png)
    

---

# Related Article


[Create Page with AI](/en/article/create-page-with-ai-aod6vi/)

[AI Quick Style](/en/article/ai-quick-style-1cefo88/)