# AI Landing Pages - Generating Images and Updating Elements

## Correcting/Changing elements with AI

When selecting an element inside the builder and clicking **Modify Element with AI**, just provide in the prompt the desired change for that specific item. Some common changes are: change size, layout orientation, text properties, color and others. The other elements on the page will not be affected.&#x20;

The prompt can be described in plain language — for example: *“Paint this background light blue”* — or in technical CSS terms, such as: *“Change the background color to #add8e6”*.

<figure><img src="/files/c32ec9e4f6a2b6c51ee91ed244ab3ad49a70f773" alt=""><figcaption><p><em>Identifying the element to be modified.</em></p></figcaption></figure>

<figure><img src="/files/65e8f42d9168c6f82c3919047f3cce527ccfebd9" alt=""><figcaption><p><em>Entering AI edit prompt.</em></p></figcaption></figure>

<figure><img src="/files/f072c0e67ab6497ac73b84fecd7479e19fe1fb6d" alt=""><figcaption><p><em>Update completed.</em></p></figcaption></figure>

## Generating images

When selecting an image element (`<img>`) in the builder and clicking **Generate Image with AI**, just describe in the prompt how the image should be and include the necessary details.

{% hint style="info" %}
To use this feature, you must have the OpenAI integration previously configured.
{% endhint %}

<figure><img src="/files/4c4b46f660a8a7ba84d7e5f8753a76131ab0f159" alt=""><figcaption><p><em>Selecting image with placeholder.</em></p></figcaption></figure>

<figure><img src="/files/f4a898b50d747dfc5d70515e5064a1a1c5343d96" alt=""><figcaption><p><em>Generate Image with AI modal.</em></p></figcaption></figure>

<figure><img src="/files/e35ad4fb7eee901efcbc57b0fd7ee8d8b7e75162" alt=""><figcaption><p><em>Image generated successfully.</em></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-landing-pages/ai-landing-pages-generating-images-and-updating-elements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
