> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/developer/rest-api/model-evaluations/per-image-predictions.md).

# Per-Image Predictions

Returns per-image prediction records - TP/FP/FN counts, per-image precision/recall/F1, the image's cluster id and 2D embedding, and the raw confusion entries. Paginated.

This is the data the **per-image predictions** panel in the app reads.

```url
https://api.roboflow.com/:workspace/model-evals/:evalId/image-predictions
```

```bash
curl "https://api.roboflow.com/my-workspace/model-evals/$EVAL_ID/image-predictions?api_key=$ROBOFLOW_API_KEY&split=test&limit=50"
```

## Query parameters

| Parameter    | Type    | Description                                                                                          |
| ------------ | ------- | ---------------------------------------------------------------------------------------------------- |
| `split`      | enum    | One of `train`, `valid`, `test`, or `all`. Default `all`.                                            |
| `confidence` | integer | Confidence-threshold percentage in `[0, 100]` (selects which per-confidence report variant to read). |
| `limit`      | integer | Page size; default `200`, max `1000`.                                                                |
| `offset`     | integer | Skip this many records before returning. Default `0`.                                                |

## Response

```json
{
    "split": "test",
    "confidenceThreshold": 0.2,
    "totalImages": 192,
    "offset": 0,
    "limit": 50,
    "images": [
        {
            "imageId": "1QKLCUsfAzFiCIb6YCJj",
            "imageName": "abc.jpg",
            "split": "test",
            "augmentations": 2,
            "cluster": {
                "id": 4,
                "embedding2D": [7.494518280029297, -5.143994331359863]
            },
            "stats": {
                "truePositives": 2,
                "falsePositives": 7,
                "falseNegatives": 0,
                "precision": 0.222,
                "recall": 1.0,
                "f1": 0.364
            },
            "confusion": [
                [0, 0, 2],
                [2, 0, 7]
            ]
        }
    ]
}
```

## Notes

* `imageId` is the Roboflow source image id - useful for cross-referencing with other Roboflow APIs.
* `confusion` entries are `[actualClassIdx, predictedClassIdx, count]` triples; class indices reference the same array as [Confusion Matrix](/developer/rest-api/model-evaluations/confusion-matrix.md)'s `classes`.
* `embedding2D` is the UMAP-projected 2D coordinate used in the [Vector Analysis](/developer/rest-api/model-evaluations/vector-analysis.md) plot.
* Different `confidence` values return different stats - predictions change with the threshold. Note that probing arbitrary `confidence` values will only succeed for thresholds the eval pipeline materialized; unmaterialized variants return `404 report_not_found`.
* **Pagination cost**: each page re-reads the full `model_eval_results.json` file from storage and slices it server-side. For evals with very large `image_results` arrays, prefer larger `limit` values (up to `1000`) over many small pages to minimize the per-page fixed cost.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.roboflow.com/developer/rest-api/model-evaluations/per-image-predictions.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.
