> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/crop-models/crop.md).

# Crop Model Overview

## Use Cases

Process different documents sent on the same page (usually a photo). The result has both the location (page and coordinates) and the class for each document identified, allowing for complex workflows.

A file sent to the Crop Model may have any number of pages, [within limits](/integrations/technical-limitations.md#file-limits). Use the page index in the results to identify on which page the document was found.

Some common examples:

* Single photo of a bunch of receipts on the table
* Front and back of an ID card, each on the same PDF page
* Remove the background from all documents in a multi-page PDF

## Create a Crop Model

Crop models are always custom, there are no templates available in the Catalog.\
This keeps Crop models flexible for different documents and workflows.

Each Crop model gets its own unique model ID when you create it.

1. To create a Crop model, click on **Models**, and then click on **Create your document AI model**.
2. Scroll to the **Document Utilities** section, click on **Crop.**
3. A pop-up will appear, allowing you to enter the classes you want. Each class corresponds to a document type possibly present in the pages you want to process.\
   \
   For example, if the files you are processing contain ID cards and passports, set the classes as:\
   &#x20;`ID Card Front`, `ID Card Back`, `Passport`.

{% hint style="info" icon="lightbulb" %}
Add the class `OTHER` if you need the model to identify documents that are not one of the explicitly defined classes.
{% endhint %}

<figure><img src="/files/mqlmQ4dW25gx3mtyChv8" alt="" width="375"><figcaption></figcaption></figure>

4. Once ready, click on **Create Utility** to create your custom Crop Model.\
   This step will also generate the model's unique ID.
5. You can now use the **Live Test** tab to process documents, and the **Utility Configuration** to update your classes.<br>

Your utility is now available in your **Models** tab:

<figure><img src="/files/vPKFNVaYq2bfTtlCByhi" alt=""><figcaption></figcaption></figure>

Here is a step-by-step tutorial that shows you how to properly create a Crop Utility :

{% @supademo/embed url="<https://app.supademo.com/demo/cmlrtp7mk0u531189vkn2azqr>" demoId="cmlrtp7mk0u531189vkn2azqr" %}

## Integration

{% hint style="info" %}
Class names will be returned exactly as defined on the platform in the return, spaces and capitalization included.

If the class names are changed on the platform, the change in the API return will be immediate for all new files sent.
{% endhint %}

Once your Crop model is created and tested, integration documentation is provided in the "Documentation" page.


---

# 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.mindee.com/crop-models/crop.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.
