# Im am Unable to detect more than 300 objects using REST API

**URL:** <https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246>\
**Category:** 🤝  Community Help\
**Created:** [January 14, 2025, 2:14pm UTC](https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246 "2025-01-14T14:14:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_VIEUX](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/valentin_vieux/32/6195_2.png) [@Valentin\_VIEUX](https://discuss.roboflow.com/u/Valentin_VIEUX)\
**Post date:** [January 14, 2025, 2:14pm UTC](https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246/1 "2025-01-14T14:14:13Z")

</div>

When trying to call my model from my applications using roboflow API (model.predict()), it seems there is no parameter max\_det, max\_detections or maximum\_detections ton increase maximum detections.

---

<div class="post-metadata">

**Author:** ![Grzegorz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/grzegorz/32/2877_2.png) [@Grzegorz](https://discuss.roboflow.com/u/Grzegorz)\
**Post date:** [January 14, 2025, 3:02pm UTC](https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246/2 "2025-01-14T15:02:05Z")

</div>

Hi @Valentin_VIEUX ,

I guess you tried to run inference using `roboflow` python package.

Can you try to use [inference](https://inference.roboflow.com/) package? It’s equally simple - you install it by running `pip install inference` (if you have CUDA then `pip install inference-gpu`), once installed you can run inference by simply:

```python
from inference import get_model

model = get_model(model_id="your-model-id", api_key="your-api-key")

res = model.infer("/path/to/your/image.jpeg")

print(res)

```

If you prefer to make requests, you can make use of [inference-sdk](https://inference.roboflow.com/inference_helpers/inference_sdk/)

---

<div class="post-metadata">

**Author:** ![Valentin\_VIEUX](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/valentin_vieux/32/6195_2.png) [@Valentin\_VIEUX](https://discuss.roboflow.com/u/Valentin_VIEUX)\
**Post date:** [January 16, 2025, 1:27am UTC](https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246/3 "2025-01-16T01:27:54Z")

</div>

Thanks a lot ! I used inference-sdk instead 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [February 6, 2025, 1:28am UTC](https://discuss.roboflow.com/t/im-am-unable-to-detect-more-than-300-objects-using-rest-api/8246/4 "2025-02-06T01:28:46Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
