# Image Inference Error

**URL:** <https://discuss.roboflow.com/t/image-inference-error/6966>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [September 4, 2024, 9:13pm UTC](https://discuss.roboflow.com/t/image-inference-error/6966 "2024-09-04T21:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Malte\_Robert](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/malte_robert/32/5401_2.png) [@Malte\_Robert](https://discuss.roboflow.com/u/Malte_Robert)\
**Post date:** [September 5, 2024, 6:12am UTC](https://discuss.roboflow.com/t/image-inference-error/6966/2 "2024-09-05T06:12:18Z")

</div>

I have the exact same problem but haven’t found a good solution, if you use roboflow==0.2.23 it will instead download the json\_response file with another error. However I found that by doing the image recognition online it seams to work if that is viable to you? Check out my post to see if you find anything of help and please let me know if you solve it! [Roboflow Post](https://discuss.roboflow.com/t/error-when-trying-to-use-costum-yolov8-model-on-raspberry-pi-5/6964)

Here is a way to run It online:

Install inference.

```auto
pip install inference

```

If you have an NVIDIA GPU that supports CUDA

```auto
pip install inference-gpu

```

Add your Roboflow API Key as an environment variable or in a `.env` file. Just run it in the terminal basically

```auto
export ROBOFLOW_API_KEY="YOUR_PRIVATE_API_KEY"

```

Use it in your python project.

```auto
import inference
model = inference.get_model("Project_ID/Version number") #It should be in one sentence like this (untilted-asfg/1) where untilted-asfg is the model ID and 1 is the version
results = model.infer(image="YOUR_IMAGE.jpg")
print(results)

please let me know if that works for you! If my "tutorial" is uncomprehendable you can just find it under model-> deployments -> Self Hosted Reference (native Python)

```

---

_[View the full topic](https://discuss.roboflow.com/t/image-inference-error/6966)._
