# Step 7. Make inferences with our model

After having deployed our project, we should  have received the **REST API** **Web Service URL** to use along with an **access token** .  Such pieces of information can be copied and pasted by clicking on the copy icon. Those are the compulsory data we need to submit in order to call the AI model's Web Service. &#x20;

A dialog box notifies that they have been generated successfully. Just click on **OK** and proceed by                                                                                                                     switching to the **Monitor** tab from where you can always retrieve it later.   &#x20;

![Click on the 'Copy' icon to copy the URL address into clipboard.](/files/-LyyOVy6KOa6E_MV9tcY)

## Using Postman to make our first inference

That is it. We have already reached the last stage of our modeling project which is the testing part.&#x20;

In fact, just like any program , our model needs to be checked in order to evaluate if it duly functions as expected. For the purpose, we are going to use the[ ‘Postman’](https://www.getpostman.com/downloads/) software which is a popular choice among the coders' community.

1. Let us begin by downloading it from its official link : <https://www.getpostman.com/downloads/>
2. To learn how to perform API testing using Postman, check this [interesting tutorial](https://www.softwaretestinghelp.com/api-testing-using-postman/) .
3. Complete the installation by following every step. Once the software installed, open [**Postman**](https://www.getpostman.com/downloads/) 's GUI.&#x20;

![Postman's GUI](/files/-LytvPV8h_hkyPie5VR5)

{% hint style="info" %}
For testing the code generated by SmartPredict through Postman, proceed just like for any automated test.&#x20;

Collect the **active URL** by copying it from the link provided by SmartPredict then paste it into Postman.
{% endhint %}

2\.  Afterwards,  click on ‘*New collection*’ from the collection menu,. Let us for instance name it : SmartPredict\_Iris collection. Click on create.

A project folder  named “SmartPredict\_Iris” has just appeared on the right .                                                 Click on the menu (the three dots). A sub-menu spreads out .                                                                                       Click on ‘Add request’.

![Adding a request.](/files/-LyyS8erFOhX3xrQZLdw)

\
3\.  Fulfill the blank fields as described:                                                                               Set for **request name** : ‘Test Iris classification ’.                                                                                                    Click on the button **‘Save to (the project folder)’**. here ‘SmartPredict\_Iris’                                                                           Get back to the project folder >> Click on it , then on the freshly created Test Iris classification request file.

![Saving the request .](/files/-LyySIiH779D4ML8K25H)

4\.  In Postman’s workspace, change **GET** to **POST** by selecting it in the drop-down list.

* **In the Headers part :**&#x20;

1. Complete the field *Key* with: **Content-Type**
2. Complete the field *Value* with: **application/json**

&#x20; \>  Notice the tick box being checked

![](/files/-LytvhIdExHnoeffCubC)

* **In Body :**

1. Among the radio buttons, choose **‘raw’**.
2. From the drop down list, choose the **‘Json’** format.

```
{
   "input":{
      "petal.length":4.5,
      "petal.width":5.4,
      "sepal.length":0.0,
      "sepal.width":0.8
   },
   "access_token":""
}
```

> **Paste the access token** copied before into the field intended for it within Postman.

> > Running the test, we obtain the output ‘*Setosa’* for the test set. This means that the model works well.

<br>

![The result of the classification of the iris flower is 'Setosa'. ](https://lh6.googleusercontent.com/rbUU_pYuUuBy__Keu9zEfqKRmyWSXpaXlWxkqmxscNWekp9fm2wkk0umNbrlPKWrFmUXfzGjeTYuAfG2eUMwHrTEzgBXmIdyucteoZZHgQT31HWvDnQJzTZ7ElANLQu_9cevKzjh4Nw)

<br>


---

# 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://smartpredict.gitbook.io/smartpredict-ai/getting-started/getting-started-part1-iris-classification-project/step-7-test-deploy.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.
