Skip to content
AI Edit
QGIS
Tutorial

AI Edit for QGIS: The Complete Guide

Suburban block with infill housing added (after)
Suburban block with infill housing added (before)
BeforeAfter
Drag to compare
Add infill housing to a suburban block, from one prompt. Drag the handle to compare.

Turn the aerial imagery in your canvas into edits, clean maps, and vector data, all from plain-language prompts. Outline a zone, describe the change, and the result drops back onto the map, perfectly aligned. This guide walks through the whole tool: your first edit, the prompt library, Mark up, Vectorize, and reference images.

Examples

Drag the slider on any example: the original aerial image is on the left, the AI result on the right. Each caption is the kind of prompt that produced it.

Install in QGIS

Install AI Edit from the QGIS Plugin Repository: open Plugins -> Manage and Install Plugins, search for AI Edit, and click Install. It runs on QGIS 3 and 4, on Windows, macOS, and Linux, and is powered by the Nano Banana 2 model.

Then open the panel and click Sign in / Sign up. Your browser opens, you create an account (email, Google, or Microsoft), and the plugin connects itself, no credit card, with free edits to start.

0:00 / 0:00
Sign in from the panel, confirm in the browser, and the plugin connects itself.

Your first edit

Launch and draw your zone

Click the green Launch AI Edit button, then draw your zone directly on the map, point by point, around the area you want to change. Close the polygon by clicking your first point again: the zone is set.

0:00 / 0:00
Click Launch AI Edit, then outline your zone point by point.

Describe the change

Type a prompt, or open the Library for a ready-made one.

0:00 / 0:00
Type your prompt, or pick one from the Library.

Pick the output detail

DetailResolutionPlan
Standard1KFree
Detailed2KPro
Maximum4KPro

Standard (1K) is plenty for trying things out. Switch to Detailed or Maximum when the result matters: the model reads and renders more pixels, so fine details survive. The full picture is in Free vs Pro, further down.

Generate

Click Generate. A few seconds later the result is added as a new georeferenced raster, exactly over your zone.

0:00 / 0:00
Click Generate: the edit runs and lands right on your zone.

The panel keeps every version (Original, V1, V2, and so on). Pick one as the base, prompt again, and generate to refine.

0:00 / 0:00
Every run lands as a new version in the strip. Pick any one as the base, prompt again, and generate.

The Before / after button slides between input and output, right on the map.

0:00 / 0:00
Before / after slides between the input and the result, right on the map.

The prompt library

Click Library to browse ready-made templates, each with a before/after preview and an editable prompt. They are grouped by theme: Cartography, Urban, Segment, Land cover, Cleanup, Forestry, Agriculture, Climate, Energy, and more.

0:00 / 0:00
Top picks to get started, categories to browse, and My prompts, where your own prompts and recent runs are kept.

Mark up

Mark up lets you draw on your zone to tell the AI where to act. Your marks guide the edit and are removed from the result. Use it for a change in one specific place, not across the whole image.

Open Mark up and pick a tool

With a zone drawn, click the Mark up button, then choose a tool (pencil, line, arrow, circle) and a color.

The Mark up button

The tool picker: pencil, line, arrow, circle

Draw on the map

Sketch your mark right on the imagery: an outline, an arrow, a circle.

Prompt and generate

Name that color in the prompt, then generate.

0:00 / 0:00
Pick a tool and a color, draw on the map, then name that color in the prompt. Here a pink outline turns one block into a park.

The prompt that produced the result below:

Plant trees inside the pink outline. Keep everything outside untouched.

A bare field with a pink outline, then the same field with trees planted inside the outline (after)
A bare field with a pink outline, then the same field with trees planted inside the outline (before)
BeforeAfter
Drag to compare
Trees planted only inside the pink outline, the markup removed from the result. Drag the handle to compare.

Vectorize

AI Edit has two main use cases. The first is simulation: changing a few details of an existing image while keeping its colors and level of detail. The second is classification: detecting the features in the image, by segmenting or classifying it. Vectorize exists for that second case: it turns the flat-colored zones of an AI result (buildings, land-cover classes, parcels) into real vector polygons you can select, measure, style, and export. Detection and classification work best at local scale. To cover large areas, switch to our AI Segmentation plugin.

Run a segmentation, then click Vectorize

Start by generating a segmentation: just ask for it in the prompt ("segment all buildings"), or pick a template from the Segment category in the Library. On the result (buildings in red), click Vectorize this result.

The Vectorize this result button on the result

Confirm the color

The panel pre-fills the color to extract, or use Pick on map to sample a different one.

The Vectorize panel with the detected classes

Refine live

Adjust tolerance, despeckle, simplify outlines, and round corners: every change re-runs instantly on the same layer.

0:00 / 0:00
From a Segment result to 105 polygons across 2 classes, refined live before Finish.

Each feature carries a clean attribute set (feature_id, class_name, class_color, and a geodesic area_m2) and is saved to a GeoPackage in your output folder, ready for analysis.

The attribute table

Reference images and layers

References give the AI extra context that is cropped to your zone but never shown on the canvas. Use them to control style, match a color legend, or feed real data. The free tier allows one reference. Pro allows several.

A reference image

Attach an image from disk: a style sample, a target look, or a color legend. This is the tool for people who want more control, and one of the most powerful levers in AI Edit: a reference constrains the model far more than a prompt alone, and gets you to the result you have in mind much faster. Click Ref image, pick the file, and it rides along with your prompt.

0:00 / 0:00
Ref image attaches a picture from your disk. Here a photo of a roundabout, with a prompt asking for the intersection to look exactly like it.

Another common use is a land-use map with your exact legend, paired with a prompt like:

Transform into a land use map in the style of the reference.

The output then matches your palette every time.

Reference legend, aerial image input, and the land use map result at 4K
Left: the reference legend. Middle: the aerial image input. Right: the result at 4K (Pro), reproducing the legend's residential, commercial, industrial, agriculture, forest, and water colors.

A QGIS layer as reference

The AI works from two things: the image visible on your canvas (the input it edits) and the references you hand it on the side. Any QGIS layer can be a reference: drag it onto the prompt box (or use Ref image). It is cropped to your exact zone and sent separately, never drawn into the input.

To attach a layer from your project, click Reference, then From the project, and pick the layer.

The Reference menu: From the project, listing the project layers

Here, the input is the aerial imagery of Vaison-la-Romaine (France). The reference is a digital terrain model (DTM) of the same area, hidden in the project: black and purple are the low points (the bed of the Ouvèze river), orange and light yellow the high ones.

The digital terrain model of the same area, black and purple lows along the river, orange and yellow highs
The reference: the DTM of the same area. Black and purple = low, orange and yellow = high.

The prompt, leaning on that reference:

The reference is the terrain of the same area: black and purple = low, orange and yellow = high. Simulate a major flood: muddy water rises from the riverbed and floods only the black and purple zones, stopping dead where the terrain turns orange or yellow. Do not remove buildings, roads or trees: where the water rises, they are only partly submerged.

Aerial view of Vaison-la-Romaine, then the same view with a major flood filling only the low areas (after)
Aerial view of Vaison-la-Romaine, then the same view with a major flood filling only the low areas (before)
BeforeAfter
Drag to compare
The simulated flood follows the terrain: the water fills only the low zones of the DTM, and the hilltop old town stays dry. Drag the handle to compare.

To see how closely the water hugs the reference, compare the DTM with the result:

The DTM, then the flood result: the water matches the low zones of the terrain (after)
The DTM, then the flood result: the water matches the low zones of the terrain (before)
BeforeAfter
Drag to compare
The DTM on one side, the result on the other: the water fills exactly the black and purple zones. Drag the handle to compare.

The same prompt, without the DTM as a reference: the AI no longer knows the terrain, and the water drowns almost everything, slopes included. That is the whole value of a reference layer: it constrains the model with real data.

The result without the reference, then the result with the DTM as reference (after)
The result without the reference, then the result with the DTM as reference (before)
BeforeAfter
Drag to compare
Same prompt without the DTM on the left, with it on the right: without the reference, the water ignores the terrain. Drag the handle to compare.

Every reference is co-located, cropped to the same zone and aligned to the same ground as your input. So you can stack several and the model reads them as one synchronized scene: a DEM or 3D terrain for elevation, several aerial or satellite captures of the same place, contour, water, or land-use layers. Each extra layer is one more aligned source of context, and the more the model has to work with, the better aligned its result.

Free vs Pro

The full prompt library, Mark up, Vectorize, and references all work on the free tier. Pro raises the limits: higher resolution, several reference images per edit, and a larger monthly allowance.

Resolution is the one that changes the output itself. A higher setting raises the pixel count on both sides, the input image the model reads and the result it returns, so it resolves detail that is not there at 1K and comes back sharper and better aligned.

1KStandard

~1024 px · ~1 MP

Draft and explore

Free
2KDetailed

~2048 px · ~4 MP

Sharper, cleaner edges

Pro
4KMaximum

~4096 px · ~16 MP

Finest detail, best aligned

Pro

Each square stands for a block of pixels. A higher tier packs in more of them on both sides: a larger input image the model reads, and a larger result it generates, so finer detail survives.

The same shadow-removal edit on a Barcelona block generated at 1K, 2K and 4K, zoomed to the same spot, showing the 1K result soft and the 4K crisp
A real run: the same edit (remove shadows) on the same Barcelona block at each resolution, zoomed to the same spot. 1K comes back soft, 4K resolves every rooftop, car and tree.

See plans and pricing

Tips

  • Set your basemap and zoom before drawing: the visible pixels are the input.
  • Keep zones modest in size for the sharpest results.
  • For flat-color maps you plan to Vectorize, ask for solid fills and clean edges.
  • Keep reference layers hidden.

The ? menu in the panel holds the tutorial and the terms, and reaches us if something goes wrong.

Written byYvann Barbot
·11 min read
Contact