> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/workflows/model-stages.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Model stages

Let an AI model label items before people check them.

A **Model** stage sends each item to an AI model. The model's labels are saved on the item, and the item moves on, usually to an annotator or reviewer who checks them. Pre-labeling like this saves annotators from drawing every object by hand.

![Public AI Models catalog with model cards for detection, segmentation, prompt labelling and other tasks](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FRqoZ2mcM2gi56SfvrTs4%2Fai-models.webp?alt=media)

## Common setups

| Setup                                         | When to use it                                                                                                |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Model**, then **Annotate**, then **Review** | The model drafts, a person corrects, a reviewer checks. The safest choice.                                    |
| **Model**, then **Review**                    | The model is good enough that a reviewer can check its work directly. Rejected items go to an Annotate stage. |
| **Annotate** with AI tools, then **Review**   | No Model stage. Annotators use tools like Magic Touch or Find Similar inside the editor.                      |

## Add a Model stage

{% stepper %}
{% step %}

### Add the stage

In **Workflows**, select **Add Stages** and add **Model**. Connect it after **Project** and before the stage where people check the labels.
{% endstep %}

{% step %}

### Pick the data type and model

Choose the **Data type**, then **Select model**. The list shows models from **Public AI Models** and your own **My AI Models** that support that data type.
{% endstep %}

{% step %}

### Tell the model what to find

What you set here depends on the model:

| Model type                                  | What you set                                                                                       |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Fixed classes (for example a COCO detector) | Match each model class to a project class. Use **Copy class** to add a model class to the project. |
| Prompt                                      | One text prompt per project class, such as *"red cup"*.                                            |
| Reference                                   | Example objects that you draw on a few items. The model finds similar ones.                        |
| {% endstep %}                               |                                                                                                    |

{% step %}

### Save and Apply

Items that enter the stage start a model run. Runs use your workspace's AI quota.
{% endstep %}
{% endstepper %}

## While the model runs

The item shows **Processing** in the Task Queue. When the run finishes, the labels are saved and the item moves to the next stage.

If a run fails:

* The item may stay in the Model stage with the status **Error**, for example after a timeout. A manager can select **Retry** in the Task Queue.
* Or it may move on without the model's labels and be marked **Model failed**.

For your own models, managers also see why the run failed.

## Geospatial settings

When **Data type** is **Geospatial** and the model is Unitlab's **Prompt Labelling** or **Find Similar**, two more settings appear:

| Setting         | What it does                                                                                                                                       | Default                             |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| **Tile scale**  | How much ground the model sees at once. **2×** gives the finest detail, **4×** suits cars, **8×** buildings and roofs, **16×** very large objects. | **Auto**, from the image resolution |
| **Auto Refine** | Turns building outlines into clean footprints with straight edges and right angles. Roads, rivers and other shapes keep their traced outline.      | On                                  |

Changes apply to runs that start afterwards. See [Geospatial annotation](https://docs.unitlab.ai/documentation/annotations/geospatial-annotation.md).

## Tips

* Start with a small batch and check the model's labels before sending all items through.
* Model labels still need review. Route them to a person before **Complete**.
* To use your own model, connect it first under **My AI Models**. See [Bring your own models](https://docs.unitlab.ai/documentation/auto-labeling/bring-your-own-models.md).

## Related

[Stages and routes](https://docs.unitlab.ai/documentation/workflows/stages-and-routes.md) · [Agent stage](https://docs.unitlab.ai/documentation/workflows/agent-stage.md) · [Review, rework, and escalation](https://docs.unitlab.ai/documentation/workflows/review-rework-and-escalation.md)
