# Segmentation Model (dental\_project-xcawb/1) Returns Empty Predictions via API Despite Working in Web Interface

**URL:** <https://discuss.roboflow.com/t/segmentation-model-dental-project-xcawb-1-returns-empty-predictions-via-api-despite-working-in-web-interface/9513>\
**Category:** 🤝  Community Help\
**Created:** [April 18, 2025, 4:38pm UTC](https://discuss.roboflow.com/t/segmentation-model-dental-project-xcawb-1-returns-empty-predictions-via-api-despite-working-in-web-interface/9513 "2025-04-18T16:38:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amisha\_Choudhary](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/amisha_choudhary/32/6236_2.png) [@Amisha\_Choudhary](https://discuss.roboflow.com/u/Amisha_Choudhary)\
**Post date:** [April 18, 2025, 4:38pm UTC](https://discuss.roboflow.com/t/segmentation-model-dental-project-xcawb-1-returns-empty-predictions-via-api-despite-working-in-web-interface/9513/1 "2025-04-18T16:38:39Z")

</div>

Hello,

I’m encountering an issue with one of my segmentation models (`dental_project-xcawb/1`) when using the Roboflow Inference API in my Streamlit application. The model is designed to segment Teeth anomalies.

Project Type: Segmentation, Classification (Disease Identification)  
Operating System & Browser:MacOs/ Google Chrome  
Setup:

API Endpoint:I am using the serverless inference endpoint: `https://serverless.roboflow.com`.  
Inference SDK:I am using the `inference_sdk` in Python.  
Authentication: I am using my correct API key.  
Classification Model:I am also using a classification model (`sinistroodonto/1`) which correctly identifies the images as containing a mouth ulcer with high confidence (e.g., 87.7%).  
Code Snippet:

 ![Screenshot 2025-04-18 at 10.06.13 PM](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/cd3d4654f6a6a7a18b0cc4cb2736e0a3640dcf7c.png)

Observed Behavior:

The classification API call correctly identifies the “Mouth Ulcer”.  
The segmentation API call completes without errors.  
The `Raw Segmentation Result` consistently shows `'predictions': []`.  
This happens across multiple different images of mouth ulcers that work correctly in the Roboflow web interface tester for the same model.

My Question:

Has anyone else experienced a similar issue where a segmentation model works in the Roboflow web interface but returns empty predictions via the API? Are there any specific considerations or parameters I might be missing when making the API call for segmentation? Any insights or suggestions on how to resolve this would be greatly appreciated.

Thank you for your time and help!

---

<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:** [May 9, 2025, 4:39pm UTC](https://discuss.roboflow.com/t/segmentation-model-dental-project-xcawb-1-returns-empty-predictions-via-api-despite-working-in-web-interface/9513/2 "2025-05-09T16:39:27Z")

</div>

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