---
title: "Extract nutritional information from an image"
method: GET
path: "/predict/nutrition"
tags: ["Predict"]
---

# Extract nutritional information from an image

`GET /predict/nutrition`

Predict nutritional information from a packaging image using the Nutri-Sight model.

The model takes an image and the OCR result (as a JSON file) obtained from Google Cloud Vision.
For more information about the model, see the
[Nutri-Sight documentation](https://openfoodfacts.github.io/robotoff/references/predictions/nutrient-extraction/).

## Query parameters

- `image_url` string, uri
- `ocr_url` string, uri

## Response `200`

the extracted nutritional information

- object — the extracted nutritional information from the model.
  - `predictions` object[]
    - `nutrients` object — a dictionary mapping nutrient keys in Open Food Facts format (ex: `fat_100g`) to a dictionary containing the detected nutrient value.
    - `entities` object
      - `aggregated` object[]
      - `postprocessed` object[]
      - `raw` object[]

## Other responses

- `400` — An HTTP 400 is returned if the provided parameters are invalid

---

[API](https://skmtc.net/openfoodfacts/apis/api-reference.md) · [All operations](https://skmtc.net/openfoodfacts/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openfoodfacts/api-reference/revisions/23d26c6d55e6/schema)
