# Uncertainty score

The API returns a confidence score of the cutout through the HTTP header `x-uncertainty-score`.

The uncertainty score is a number between `0` and `1`:

* `0` means the model is very confident that the cutout is accurate
* `1` means the model is unsure.

For instance, shoes on a shoe box might give a higher uncertainty score as the model is unsure what to segment (shoes, box or both):

<table data-header-hidden data-full-width="false"><thead><tr><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center"><img src="/files/l5IekPXt67O4VY6kYoek" alt=""></td><td align="center"><img src="/files/6b66XigZS4tU43MjwdSc" alt=""></td></tr><tr><td align="center">High uncertainty score: between 0.6 and 1</td><td align="center">Low uncertainty score: between 0 and 0.3</td></tr></tbody></table>

{% hint style="warning" %}
Please note that the uncertainty score is not guaranteed to be stable over time: the same image might yield a different uncertainty score in the future.
{% endhint %}

In some cases, we might not be able to able to return an uncertainty score (e.g. if an image contains humans), in that case the value `-1` will be returned.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.photoroom.com/image-editing-api-plus-plan/uncertainty-score.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
