# Defining a Model

## From an Existing Model

Chances are, there is already a model that at least partly fits your needs.

Click on Catalog to check the prebuilt models, and when clicking on one of them, you'll be able to create a copy to "My Models".

You now have a model with a **prebuilt** data schema that you can modify, using the "Data Schema" tab as explained in more detail in [Models Overview](/models/models-overview.md#modifying-your-data-schema).

For instance, here is a demo of how to create a model from the Invoice Pre-built model:

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

## From Scratch

If you don't find something that matches your needs in the catalog, you also have the possibility to click on **Create Custom Model.**\
\
You'll have two possibilities :

* upload a sample document
* write the document type

Our AI Agent will then create a custom model for you.\
\
You now have a model with a **custom** schema that you can modify, using the "Data Schema" tab as explained in more detail in [Models Overview](/models/models-overview.md#modifying-your-data-schema).\
\
Here is a tutorial that shows how to create a custom model by filling in the document type and by uploading a sample doc.

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


---

# Agent Instructions: 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:

```
GET https://docs.mindee.com/getting-started/defining-a-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
