> For the complete documentation index, see [llms.txt](https://help.chatlyai.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.chatlyai.app/products-and-features/ai-images/how-to-use-ai-image-generation.md).

# How to use AI Image Generation?

Chatly’s AI Image Generation feature lets you turn ideas, descriptions, or photos into stunning visuals instantly.

You can:

* Start with a text prompt or reference image.
* Choose from multiple models optimised for generation and editing.
* Adjust the aspect ratio, number of images, style and camera angle.
* Refine and edit results directly using prompt adjustments or model variations.

{% embed url="<https://youtu.be/ZLKTlpOOjZo?si=eYc3aYAF47rFQx3J>" %}

## Step-by-Step guide to AI Image generation

#### **Step 1. Start a Chat**

* On the Chatly home page, click **AI Images** in the **Content Creation** row.

![AI Images in the Content Creation row on the home page](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FeSFi9M4rDOUsIsbGogyf%2Fch-nav-images.webp?alt=media)

* Enter your prompt (e.g., “a modern office with natural light”), and optionally attach reference **images** with **+**.

#### **Step 2. Choose a Model**

* Click the model button (it shows **Auto** by default) and pick a model. The number next to each model is the credits it uses per image.

![The image model menu with credits per image](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2Fi99eTsSqFcMMjpOUGbY4%2Fch-img-model.webp?alt=media)

#### **Step 3. Choose your Settings**

* Click the aspect ratio button under the chat box (it shows **1:1 / 2** by default), and choose the aspect ratio and the number of images (**1**, **2** or **4**).

![Aspect ratio and number of images](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FcGH7SiAEQVfwV1bvm9n2%2Fch-img-settings.webp?alt=media)

#### **Step 4. Pick a Style or Camera Angle (optional)**

* Click **Style** to pick a look, or **Camera** to pick a camera angle.
* Styles include Photorealistic, Anime, Comic, Pixel Art, Sketch, Oil Painting, Flat Illustration, 3D Render and more. Camera angles: Birdseye, Dutch, Low Hero, Medium, Wide.

![The Select Style menu](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2F907e8HEMmZ3i21Tw6rEd%2Fch-img-style.webp?alt=media)

![The Select Camera Angle menu](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FiXz1cPnqMbfq9EDjGvJJ%2Fch-img-camera.webp?alt=media)

#### **Step 5. Or Start from a Template**

* Scroll to **Featured Templates** and **Templates** under the chat box, filter by category (Ad Creatives, Product Shots, Style Transfer, Interior Design, Fashion Shoot, Social Thumbnail) and click **Use Template**.

![The AI Images page with the chat box, settings and templates](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2F6CVM8ybvlwZAHG3464ap%2Fch-start-image.webp?alt=media)

#### **Step 6. Image Agent Generates Results**

* The agent processes your input (prompt + references)
* You’ll receive **1, 2 or 4 generated images** per request, depending on your settings

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FiTMMfI1p3o35XM2MHEjp%2FFrame%202147233165.png?alt=media&#x26;token=46478c4b-a148-4293-bee1-80d9df5c6811" alt=""><figcaption></figcaption></figure>

#### **Step 7. Edit or Refine**

* In **conversational view**, you can request edits on the **latest generated images.**
* In **full view**, you can focus on a single image and edit that specific one.
* You can also upload your own image to edit.

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FGKer7nLRi4fAAvOkl23L%2FFrame%202147233164.png?alt=media&#x26;token=5e7d5f90-1be2-4894-9d3b-40838f827942" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FVNz1TIsN7YRl5C6FUIRV%2FGroup%202147224889.png?alt=media&#x26;token=67265bf4-a4e9-4ee7-b31e-b3f5a72616f4" alt=""><figcaption></figcaption></figure>

#### **Step 8. Continue the Conversation (Image agent)**

* Ask follow-up questions (e.g., “make the lighting warmer” or “add plants”)
* The image agent may ask clarifying questions if your prompt is unclear

#### **Step 9. Edit Image**

* Preview results in full view.
* Describe your edits in the prompt box under the image to change that specific image.
* You can choose to apply the following enhancements to the image:
  * **Upscale:** Increase the resolution of the image and add more richness.
  * **Background Remove:** Choose to remove the background from the generated image.
  * **Adjust:** Fine tune images with controls for tint, saturation, shadows, highlights, exposure, contrast, and temperature etc.
  * **Edit Image:** Chat to edit the image.

**Note**

* For enhancements such as **Upscale** and **Background Removal**, tokens are deducted separately from standard image generation. Each enhancement is counted as a new request with its own token cost.

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2F1TRRVN2LJHYvY9bIuIQA%2FGroup%202147224887.png?alt=media&#x26;token=e7897b96-5b61-441d-968d-c980f4971166" alt=""><figcaption></figcaption></figure>

#### **Step 10. View & Download**

* Preview results in full view.
* Download the preferred generated image, add it to your prompt as a reference, or share it.

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FHnAyjSCDNLmXZCBaAe5E%2FGroup%202147224885.png?alt=media&#x26;token=e73a3a03-da54-4469-ae90-a3069ed47792" alt=""><figcaption></figcaption></figure>

#### Step 11. History

* Your image chats are saved like any other chat. To find one, click the search icon at the top of the left sidebar (or press **⌘K**, **Ctrl+K** on Windows) and type its name, or click **Show all** under **Recent chats** to open **My Chats**. Recent chats are also listed under **Recents** in the sidebar.
* Open a chat to continue from the same point, with its context, and generate new images.

![The search panel with Show all under Recent chats](https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FG8VRKWScRh3WF0RaLu6x%2Fch-search-panel.webp?alt=media)

#### **Tips for Best Results**

* **Be descriptive**: Instead of “a cat,” try “a fluffy orange cat sitting by a sunny window.”
* **Use aspect ratios**: Pick the shape that fits where the image will be used (e.g., 16:9 for landscapes, 9:16 for stories).
* **Leverage references**: Attach reference images to influence style, composition, or subject.
* **Iterate with edits**: Start broad, then refine (e.g., generate a cityscape → edit to add neon lights → refine to make it night-time).
* **Model choice matters**: Different models have strengths. Try switching if you want a different style or detail level.
* **Keep prompts natural**: Write in plain language — the system is designed to understand conversational instructions.

#### **How many images can I make?**

Divide your credits by the credits per image of the model you use. For example, 7,000 credits with Nano Banana 2 (28 credits per image) make about 250 images; with Z-Image Turbo (5 credits per image) about 1,400. Credits per plan are listed in [Payments Plans](https://help.chatlyai.app/subscription-and-billing/payments-plans.md), and your balance is in **Settings** > **Plan & Billing**.

#### **FAQs**

**Q: What’s the difference between Conversational view and full view?**

* **Conversational View**: Conversational mode where you see the latest generated images in context with the chat.
* **Full View**: Focused mode where you preview a single image in isolation and can edit that specific one.

**Q: Can I edit my images?**

Yes! You can edit your images by attaching them in the prompt box as a reference. You can edit the latest images generated in the chat. If you’d like to edit an older image, simply open it in full view or download it first, then reattach it as an input.

**Q: How are credits counted?**

* Credits are based on the **model** used, and apply equally to generation and editing
* Total credits = *credits per image × number of images in the request*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.chatlyai.app/products-and-features/ai-images/how-to-use-ai-image-generation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
