# Roboflow Inference - API problem

**URL:** <https://discuss.roboflow.com/t/roboflow-inference-api-problem/9193>\
**Category:** 🤝  Community Help\
**Created:** [March 25, 2025, 1:03am UTC](https://discuss.roboflow.com/t/roboflow-inference-api-problem/9193 "2025-03-25T01:03:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Larry](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Larry](https://discuss.roboflow.com/u/Larry)\
**Post date:** [March 25, 2025, 8:57am UTC](https://discuss.roboflow.com/t/roboflow-inference-api-problem/9193/2 "2025-03-25T08:57:45Z")

</div>

I made a bit of progress by simply moving the API key within get\_model() as suggested in [this post](https://discuss.roboflow.com/t/all-models-run-on-your-own-hardware-or-not/8037). However, updating/amending my code snippet to ..

```auto
import inference
model = inference.get_model(model_id="yard-wildlife/1", api_key="my_api_key")
results = model.infer(image="my_test_image")

print(results[0])

```

.. to run inference on a test image unleashes a torrent of dependencies warnings (?) and no apparent inference (on an image that works fine when just using Roboflow browser).

 ![output](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/9e7ebb8a945f183adaad54cdb583ba999953a3b3.png)

So, one step forward, one step back ..

Larry

---

_[View the full topic](https://discuss.roboflow.com/t/roboflow-inference-api-problem/9193)._
