A deep learning RESTful API for food ingredient image classification and comprehensive nutritional analysis. Explore the available endpoints below.
Uploads a food ingredient image to classify the subject and retrieves the corresponding nutritional data.
| Parameter | Type | Description |
|---|---|---|
filesrequired | formData (image[]) | One or more food ingredient image files to be detected (JPG/PNG). Upload multiple files to get menu recommendations based on all detected ingredients. |
Drop images here or browse
Formats: JPG, PNG • Max 15 files • 1 MB per file
Retrieves the exhaustive list of food classes the machine learning model is trained to recognize. Accesses the core nutritional dataset and supported classifications.
Retrieves all food items from the internal dataset. Optionally pass a limit parameter to cap the number of results.
| Parameter | Type | Description |
|---|---|---|
limitoptional | integer ≥ 1 | Max number of items to return. Omit to get all items. |
Queries the nutrition database by food name. Utilise this endpoint to rapidly search for specific ingredients.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Food name to search (min: 2 chars). |
Computes the Basal Metabolic Rate (BMR) and Total Daily Energy Expenditure (TDEE). Provides dietary utility metrics based on user anthropometric data.
| Parameter | Type | Description |
|---|---|---|
agerequired | integer | User's age (years). |
weightrequired | float | Body weight (kg). |
heightrequired | float | Body height (cm). |
genderrequired | string | Either male or female. |
activity_leveloptional | string | sedentary, light, moderate, active, very_active. |
Retrieves all model files and directories present in the API path. Manages the underlying machine learning infrastructure.
Switches the active machine learning model during runtime without requiring a server restart.
| Parameter | Type | Description |
|---|---|---|
model_namerequired | string | Target model filename (e.g., model_name.keras). |
Send a message to the GiziMeal nutrition chatbot. Currently returns a dummy response — will be integrated with Google AI Studio (Gemini Flash Lite) in the future.
| Parameter | Type | Description |
|---|---|---|
messagerequired | string | User message to the chatbot (1–2000 characters). |
historyoptional | array | Previous conversation history for context. Each item: { role, content }. |
Retrieves the server status, active model load state, and dataset availability metrics.