> For the complete documentation index, see [llms.txt](https://xfigura.gitbook.io/xfigura-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xfigura.gitbook.io/xfigura-docs/learning-hub/prompting-tutorial.md).

# Prompting Tutorial

Learn how to structure prompts, preserve geometry, use references, and diagnose common image-generation failures.

A prompt is the text instruction you give to a model. It can describe what to generate from scratch or explain how an existing image should be changed.

<a href="https://xfigura.ai/designer?presistentid=f6bedb1e-2f2f-4eaa-b4ac-de65b8e45135" class="button primary">Open the Prompting Basics Board</a>

<div data-with-frame="true"><figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2F8GWpsC83GsjAoXzTsEMT%2Fimage.png?alt=media&#x26;token=de470381-cba5-4328-94eb-a6a43c3c7176" alt=""><figcaption></figcaption></figure></div>

## Build a clear prompt

Structure the prompt around three parts:

1. **Subject**: the building, space, object, or environment.
2. **Design language**: style, materials, lighting, and atmosphere.
3. **Technical setup**: perspective, camera angle, lens, or output medium.

**Example components**

* Subject: *Modular concrete tower with stacked volumes*
* Design language: *Brutalist concrete, vertical wooden louvers, integrated greenery*
* Technical setup: *Warm interior lighting, street-level perspective at dusk, high-resolution render*

**Combined prompt**

*Modular concrete tower with stacked volumes, brutalist concrete, vertical wooden louvers, integrated greenery, warm interior lighting, street-level perspective at dusk, high-resolution render.*

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FLLRn9yNvBRzOCbaq5dfZ%2Fxfigura_image_freepik-upscale_1x1_uydy%202.png?alt=media&#x26;token=46f563c2-49a9-463d-9d4e-dfe31a12b376" alt=""><figcaption></figcaption></figure>

## Describe the camera and presentation

Camera and presentation terms help define how the subject should be framed.

{% columns %}
{% column %}

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FeXO0FsHzJhTQRjP0nH1l%2Ftmp61w5d7zw%204.png?alt=media&#x26;token=41b6bae5-7fc6-4ca2-99c8-6cf4697c817a" alt=""><figcaption></figcaption></figure>

Cinematic shot

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FvMrJ4TFlZcfzuTwOoUSF%2Ftmp61w5d7zw%207.png?alt=media&#x26;token=d38202cb-a94f-46d3-8083-685426f72383" alt=""><figcaption></figcaption></figure>

Drone shot
{% endcolumn %}

{% column %}

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FFh37MwCUzJBksLVTu7sf%2Ftmp61w5d7zw%208.png?alt=media&#x26;token=ed1ab83d-bc15-4be2-898b-8546af0f209e" alt=""><figcaption></figcaption></figure>

50 mm lens

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FpDJIJuCT5grcFtr4FPTi%2Ftmp61w5d7zw%206.png?alt=media&#x26;token=0c1e93bc-e24e-41f3-95c4-366c00e0ac14" alt=""><figcaption></figcaption></figure>

Long exposure
{% endcolumn %}

{% column %}

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FgI3Nc9A9rICwr8fjDV8D%2Ftmp61w5d7zw%203.png?alt=media&#x26;token=48a2336a-d331-456e-95a2-b5529891f337" alt=""><figcaption></figcaption></figure>

Artistic photo

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FRbPfcy89rxWzgl694Y1Q%2Ftmp61w5d7zw%201.png?alt=media&#x26;token=32dfa4e2-32fc-40d5-9b01-591f58da1d38" alt=""><figcaption></figcaption></figure>

DSLR
{% endcolumn %}

{% column %}

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FSTJB7zj0o2mVHE8FhAUy%2Ftmp61w5d7zw%202.png?alt=media&#x26;token=e5dc7de5-48c3-488e-95fd-de657f8cd37f" alt=""><figcaption></figcaption></figure>

Wide angle
{% endcolumn %}
{% endcolumns %}

## Preserve existing geometry

Image models can reinterpret geometry. State what must remain unchanged, then compare the output with the source. Prompt instructions alone do not guarantee exact geometry.

Use this block to describe the intended constraints:

> Preserve the original architectural geometry exactly.\
> Do not change walls, openings, ceiling heights, proportions, camera position, or spatial layout.\
> No redesign, no deformation, and no added or removed architectural elements.\
> Only refine materials, lighting, atmosphere, and realism.

Add more specific constraints when needed:

* **Lock the camera**: “Keep the exact camera lens and perspective.”
* **Lock furniture**: “Do not move furniture or objects.”
* **Lock the facade rhythm**: “Do not move any element on the facade.”
* **Name visible features**: “Keep all 6 floors, the L-shaped footprint, and the cantilevered east volume.”

> The more clearly you identify the existing features that must remain, the less room the model has to reinterpret them.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2Fim3ML7Mrjc6hYywNPPOX%2FFrame%20220.png?alt=media&#x26;token=1008c6c4-3533-460b-b315-77fe884bf298" alt=""><figcaption></figcaption></figure>

## Change one thing at a time

For controlled edits, name the single element to change and state that everything else should remain unchanged.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FTPt9UrYseibX2mZJCGwL%2FFrame%20221.png?alt=media&#x26;token=5243f034-584e-4968-a3e5-61f5dc21438d" alt=""><figcaption></figcaption></figure>

## Use multiple reference images

When the selected model and workflow support multiple references, upload the images and explain the role of each one. Label every image by number so the model can distinguish the base design, materials, style, lighting, and site context.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FtzeJWKKvCAhUKr2m6G3y%2FFrame%20222.png?alt=media&#x26;token=c6117bc0-f99e-4f12-a89b-eadac6698b78" alt=""><figcaption></figcaption></figure>

### Two-image example: building and material

“Use Image 1 as the base building. Keep its geometry, proportions, and camera angle exactly the same. Apply the facade material from Image 2 to the upper floors. Keep the ground floor as board-formed concrete.”

### Four-image example: full composite

“Image 1 is the building. Keep exact geometry. Use Image 2 for the facade material. Match the mood and lighting from Image 3. Place the building onto the site shown in Image 4, matching perspective and shadow direction.”

## Add a design to a site context

Use a site image, such as a Google Earth screenshot, together with a massing model or design reference.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FSUWHiFfbqdG5FrEdlgC3%2FFrame%20223.png?alt=media&#x26;token=9ce91570-a179-4cd6-a64a-66de6fd2caaf" alt=""><figcaption></figcaption></figure>

### Site-insert example

“Image 1 is the site photo. Image 2 is the planting reference. Add the native planting palette from Image 2 to the landscape areas visible in Image 1. Keep all existing buildings and hardscape unchanged. Match the season and light.”

### Massing-study example

“Image 1 is the site context. Generate a 6-story mixed-use building on the empty corner lot, matching the brick and limestone materiality of neighboring buildings. Street-level view, 35 mm, overcast daylight.”

## Re-render or swap materials

Transform materials, lighting, or atmosphere in separate passes so each change is easier to evaluate.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FdzirSySEW95yY4c5SxAl%2FFrame%20224.png?alt=media&#x26;token=686b404c-b175-4b21-b72d-675e075602aa" alt=""><figcaption></figcaption></figure>

### Material change

“Keep all geometry identical. Change the facade from painted stucco to weathered zinc standing-seam cladding with visible joints. Keep window positions and floor lines.”

### Lighting change

“Keep everything from the previous edit. Change the time of day to late afternoon golden hour, sun from the southwest. Add long shadows across the plaza.”

## Combine style and material references

Use a reference image to transfer material, lighting, or visual treatment while identifying which elements of the base image must remain.

<figure><img src="https://1105741269-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FezPs4sBq27l9GhXqMswu%2Fuploads%2FCovKMv4h34F7Eg9hUJe4%2FFrame%20225.png?alt=media&#x26;token=c8eb835e-6d28-452c-b421-5c291c117089" alt=""><figcaption></figcaption></figure>

### Material transfer

“Apply the facade material from Image 2 to the upper floors of the building in Image 1.”

### Mood and lighting transfer

“Match the lighting, atmosphere, and color grading from Image 2.”

### Full style transfer

“Keep my building's geometry, but render it in the architectural style and materiality shown in Image 2.”

## Prevent common unwanted changes

Append constraints that describe what the model should not alter:

* No redesign.
* No warped geometry.
* No change to the camera perspective.
* No painterly style.
* No exaggerated cinematic effects.
* No heavy fog or smoke.
* No grain or noise.

### When an exterior looks too cinematic

Add:

* “architectural photography”
* “controlled perspective”
* “neutral lens”
* “physically accurate sunlight”

Remove:

* “cinematic”
* “dramatic”
* “epic”
* “film still”
* “moody”

### Geometry drift

**Check:** Review whether the prompt clearly identifies the camera, layout, and key features.\
**Try:** Add the geometry-preservation block and name the floor count, plan shape, and defining features. Compare the result with the source; geometry can still change.

### Over-cinematic results

**Check:** Look for dramatic or cinematic terms in the prompt.\
**Try:** Use architectural-photography language and define a controlled perspective and neutral lens.

## Nano Banana Pro - Tips

Use these prompting practices to organize edits and review the result after each pass.

### Break complex edits into stages

For complex changes, try separate passes for material, lighting, context, and final adjustments. Review each result before continuing.

### Start with high-resolution source images

Use a clear source image with the details you want to preserve. Check the selected model's input limits before uploading.

### Describe the intended lighting

When lighting should remain consistent, state it in the prompt. Example: “match warm late-afternoon light; maintain soft directional shadows.” Review the result for unintended changes.

### Check the model and workflow

Use the [Nano Banana Pro model card](/xfigura-docs/models/image-models/nano-banana-pro.md) to review the documented inputs and example uses. Check the available settings and estimate in xFigura before generating.

### One variable per pass

When iterating, change one instruction at a time and compare the result. This makes it easier to review the effect of each edit.

### Write a clear creative brief

Write prompts like a creative brief: “weathered cedar slats with visible grain catching late-afternoon raking light” instead of “4k masterpiece trending realistic ultra HD.”
