Image processing

Predict on images

Run image prediction models on product images

GET
/images/predict

Query Parameters

barcodeinteger

The barcode of the product

server_type?string

The server type (=project) to use, such as 'off' (Open Food Facts), 'obf' (Open Beauty Facts),...

Default"off"
Value in"off" | "obf" | "opff" | "opf" | "off_pro"
models?string

Comma-separated list of model names to run

output_image_id?string

Image ID to store predictions for

Response Body

curl -X GET "https://robotoff.openfoodfacts.org/api/v1/images/predict?barcode=5410041040807&server_type=off&models=nutrition-table%2Cuniversal-logo-detector&output_image_id=string"
{
  "predictions": [
    {}
  ]
}