# Create a Custom Model

You can create a custom model (tune a new model) by adding your own data to a model and subsequently prompt the custom model in a workbook. \
\
Go to the [Models](https://lastmileai.dev/models) section on the left-hand navigation bar and click Create Custom Model to get started

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

Follow the steps to add your dataset, make sure to give it a recognizable name.&#x20;

Once you're passed in your data, your new model will be processing for a short amount of time. Refresh the page & wait until you see that the model is "Ready" in the "My Models" tab.&#x20;

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

Once it's ready, you can start a new workbook by clicking the dots and using "Create new workbook".&#x20;

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

Alternatively, after you have created a custom model, you can add it to any workbook. Navigate to your workbook, click on the plus sign and select your model under Text toText models

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


---

# 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://lastmile-ai.gitbook.io/lastmile-ai-docs/models/create-a-custom-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.
