> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-landing-pages/ai-landing-pages-generating-images-and-updating-elements.md).

# AI Landing Pages - Generating Images and Updating Elements

## Fixing/Editing elements with AI

When selecting an element inside the builder and clicking on **Modify Element with AI**, just describe in the prompt the desired change for that specific item. Some common changes are: adjust 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 the AI editing 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 on **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, the OpenAI integration must be 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
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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
