# API More Info Please

**URL:** <https://discuss.roboflow.com/t/api-more-info-please/1004>\
**Category:** 🤝  Community Help\
**Created:** [October 18, 2022, 4:59pm UTC](https://discuss.roboflow.com/t/api-more-info-please/1004 "2022-10-18T16:59:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.riggs](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@l.riggs](https://discuss.roboflow.com/u/l.riggs)\
**Post date:** [October 18, 2022, 4:59pm UTC](https://discuss.roboflow.com/t/api-more-info-please/1004/1 "2022-10-18T16:59:39Z")

</div>

Was curious how the API communicates with traied model data.

I have trained my own detection model and am able to use an OAK-D camera to detect the object it has been trained for.

But, how does my python script, using the sample code for the luxonis oak, use the API to reference the model?

Does it require a network connection? If not, which I suspect it doesn’t because my script works without internet connection, how does the API connect the python script to the model?

What are the pros and cons of using the API rather than downloading and training the model using one of the google colab guides?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [October 21, 2022, 5:43pm UTC](https://discuss.roboflow.com/t/api-more-info-please/1004/2 "2022-10-21T17:43:02Z")

</div>

The pros of using the python package we provide are that you don’t have to fuss with converting weights and maintaining code dependencies for OpenVINO updates, but instead just add the correct model and API keys, and you’re on your way to deploy. Updating a model is as simple as changing the version number.

The model weights are cached to the device for running inference on-device once you begin running your script. The comments in the code here show the response object format for the predictions: [Luxonis OAK (On Device) - Roboflow](https://docs.roboflow.com/inference/luxonis-oak)

You’ll need a network connection just to access the weights with the python package, and then again only after the device is powered off.

> **[How to choose your deployment method](https://blog.roboflow.com/computer-vision-deployment-method/)**
>
> The data you work with will greatly influence how you deploy your model. Selecting the correct deployment method is a simple decision.
